search for: blockreturn

Displaying 3 results from an estimated 3 matches for "blockreturn".

2012 May 27
0
[LLVMdev] Help with Values sign
...*derecha = bloques.back().last; StoreInst *s = new StoreInst(derecha, alloc, false, bloques.back().bl); bloques.back().last = alloc; LoadInst* v1 = new LoadInst(bloques.back().last, "r", false, bloques.back().bl); bloques.back().last = v1; BasicBlock* blockReturn = BasicBlock::Create(getGlobalContext(), "Return", Main); Value* last = bloques.back().last; BranchInst::Create(blockReturn, bloques.back().bl); ReturnInst::Create(getGlobalContext(), last, blockReturn); The source code corresponding to the IR representation...
2012 May 27
2
[LLVMdev] Help with Values sign
Hi everyone, I'm having some problems when loading values. Here's a simple example of the IR that my compiler generates to show the problem: define i32 @main() { entry: %a = alloca i32 ; <i32*> [#uses=2] store i32 1, i32* %a %r = load i32* %a ; <i32> [#uses=1] br label %Return Return:
2012 May 27
2
[LLVMdev] Help with Values sign
...ast; > StoreInst *s = new StoreInst(derecha, alloc, false, bloques.back().bl); > bloques.back().last = alloc; > LoadInst* v1 = > new LoadInst(bloques.back().last, "r", false, > bloques.back().bl); > bloques.back().last = v1; > BasicBlock* blockReturn = > BasicBlock::Create(getGlobalContext(), "Return", Main); > Value* last = bloques.back().last; > BranchInst::Create(blockReturn, bloques.back().bl); > ReturnInst::Create(getGlobalContext(), last, blockReturn); > > The source code corresponding t...