Displaying 1 result from an estimated 1 matches for "camus_macro_decision".
2011 Jun 28
1
[LLVMdev] retrieve information from a macro inlined as x86_64 asm in LLVM IR
...at
runtime. (Similar to sending a parameter by reference. )
If I send the address of the Value* lim as a param to the macro, it puts the
hardcoded address (as expected).
std::stringstream out;
out.str(std::string()); out << &lim;
InlineAsm* IA = InlineAsm::get(asmFuncTy, "camus_macro_decision" + out.str()
, "=r", true);
CallInst* cmp = CallInst::Create(IA, ...);
creates the call:
camus_macro_decision 0x7fffdf3172f0
I tried also by creating a pointer to the Value* lim, without any success.
I know this is not the good approach, but can you suggest a solution to...