mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-30 08:39:02 +02:00
SWITCHED TO LLVM 2.5 !
Applied patch from ticket #129 to compile against latest LLVM. Thanks Frits van Bommel. Fixed implicit return by asm block at the end of a function on x86-32. Other architectures will produce an error at the moment. Adding support for new targets is fairly simple. Fixed return calling convention for complex numbers, ST and ST(1) were switched around. Added some testcases. I've run a dstress test and there are no regressions. However, the runtime does not seem to compile with symbolic debug information. -O3 -release -inline works well and is what I used for the dstress run. Tango does not compile, a small workaround is needed in tango.io.digest.Digest.Digest.hexDigest. See ticket #206 .
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define LDC_GEN_IRSTATE_H
|
||||
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <sstream>
|
||||
|
||||
@@ -78,11 +79,17 @@ struct IRAsmStmt
|
||||
|
||||
struct IRAsmBlock
|
||||
{
|
||||
std::vector<IRAsmStmt*> s;
|
||||
std::deque<IRAsmStmt*> s;
|
||||
std::set<std::string> clobs;
|
||||
|
||||
// stores the labels within the asm block
|
||||
std::vector<Identifier*> internalLabels;
|
||||
|
||||
AsmBlockStatement* asmBlock;
|
||||
const LLType* retty;
|
||||
unsigned retn;
|
||||
|
||||
IRAsmBlock(AsmBlockStatement* b) : asmBlock(b), retty(NULL), retn(0) {}
|
||||
};
|
||||
|
||||
// llvm::CallInst and llvm::InvokeInst don't share a common base
|
||||
|
||||
Reference in New Issue
Block a user