Displaying 2 results from an estimated 2 matches for "resultn".
Did you mean:
result
2013 Jul 25
0
[LLVMdev] Steps to addDestination
...IBI->addDestination((*rit));
> }
This would be creating a block looking something like:
[ Do stuff ]
indirectbr i8* blockaddress(@foo, %result1), [label %result1]
indirectbr i8* blockaddress(@foo, %result2), [label %result2]
[...]
indirectbr i8* blockaddress(@foo, %resultN), [label %resultN]
which isn't valid LLVM IR. Each basic block has to have a single
branch at the end so you need to create the IndirectBrInst outside the
loop.
How do you decide which of the results you want to jump to at
run-time? I think that's the key question you have to answer. You...
2013 Jul 24
2
[LLVMdev] Steps to addDestination
Hi
1-
for(rit=Result.begin();rit!=Result.end();++rit)
{
Value* Address= BlockAddress::get (*rit);
IndirectBrInst *IBI = IndirectBrInst::Create(Address,
Result.size(),i->getTerminator() );
IBI->addDestination((*rit));
}
I tried this code , but the needed destination wasn't added.
2- About LLVM backend
$ llc -march=cpp example_file.ll -o
I think it