search for: instr_calls

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

2010 Sep 10
0
[LLVMdev] Problem with a target-specific builtin definition
...e same way as with regular calls (save registers, return address etc), except that this instruction takes just the syscall number as immediate. It returns one int value in a register specified in the ABI for return values. So I have defined this instruction in InstrInfo.td as follows: def SCALL : Instr_Calls<(outs), (ins i32imm:$a), "scall $a", [(int_mt_scall sysnumber:$a)]>; The problem is with defining the intrinsic. If I define it in Clang (and with similar types in LLVM) as follows: BUILTIN(__builtin_mt_scall, "vi", "") I cannot use the return value...