search for: callasm

Displaying 1 result from an estimated 1 matches for "callasm".

Did you mean: callas
2008 Apr 18
0
[LLVMdev] Giving labels to intrinsics and getting the address
...nline asm that emits the desired opcode and prepares register a InlineAsm* asm = InlineAsm::get(asmFuncTy, ".byte 0x0f, 0x36, 0x00", "{ax},~{dirflag},~{fpsr},~{flags},~{memory}", true); // Create call to the inline asm giving "the label" to put in register a CallInst* callAsm = new CallInst(asm, theLabel); // Replace the intrinsic with the call CI->replaceAllUsesWith(callAsm); Actually, now that I think about it, maybe I shouldn't even bother using an intrinsic and directly use this inline asm. Assuming that the following transformation won't cause basic bl...