comparison gen/irstate.h @ 959:7e669954db7d

Implement implicit return after inline asm on x86_64
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 15 Feb 2009 18:04:22 +0100
parents e048e36bc155
children 985104c0f1db
comparison
equal deleted inserted replaced
958:89729c76b8ff 959:7e669954db7d
87 87
88 AsmBlockStatement* asmBlock; 88 AsmBlockStatement* asmBlock;
89 const LLType* retty; 89 const LLType* retty;
90 unsigned retn; 90 unsigned retn;
91 bool retemu; // emulate abi ret with a temporary 91 bool retemu; // emulate abi ret with a temporary
92 92 LLValue* (*retfixup)(IRBuilderHelper b, LLValue* orig); // Modifies retval
93 IRAsmBlock(AsmBlockStatement* b) : asmBlock(b), retty(NULL), retn(0), retemu(false) {} 93
94 IRAsmBlock(AsmBlockStatement* b)
95 : asmBlock(b), retty(NULL), retn(0), retemu(false), retfixup(NULL) {}
94 }; 96 };
95 97
96 // llvm::CallInst and llvm::InvokeInst don't share a common base 98 // llvm::CallInst and llvm::InvokeInst don't share a common base
97 // but share common functionality. to avoid duplicating code for 99 // but share common functionality. to avoid duplicating code for
98 // adjusting these common properties these structs are made 100 // adjusting these common properties these structs are made