search for: int_my_intrinsic

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

2012 Jan 20
2
[LLVMdev] Tablegen: How to define a Pattern with multiple result instructions
Hi, I'm trying to create a Pattern that looks something like this: def my_inst : Instruction < let OutOperandList = (outs REG:$dst); let InOperandList = (ins imm:$src); let Uses = [R0]; > def int_my_intrinsic : Intrinsic < [llvm_float_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [] >; def : Pattern < (int_my_intrinsic imm:$a, imm:$b, imm:$c), [(set R0, (MOV_IMM imm:$a)), (my_inst (my_inst $b), $c)] >; When I try to run this through tablegen, I get this error: "Cannot handle...
2016 Jun 13
2
LLVM IR intrinsics placeholder for strings [was Re: Back end with special loop instructions (using LLVM IR intrinsics)]
...:my_intrinsic); myIRBuilder.CreateCall(repeatFunc, "string_that_llc_codegen_should_output_as_assembly"); So my intrinsic would be accepting a general string which will be used at codegen to be output. I guess I would have to define it like this in a .td file: def int_my_intrinsic : Intrinsic<[], [string], []>; The other option that can work but is more complex without any benefit is to define several intrinsics in the .td files, one for EACH possible string: // To put in the Intrinsics_....td file: def int_my_intrinsic1 : Intrinsic<[], [], []&...
2016 May 30
1
Back end with special loop instructions
Hi Alex, You might find it useful to look at how lib/Target/PowerPC/PPCCTRLoops.cpp works. -Hal ----- Original Message ----- > From: "Alex Susu via llvm-dev" <llvm-dev at lists.llvm.org> > To: "llvm-dev" <llvm-dev at lists.llvm.org> > Sent: Monday, May 30, 2016 5:09:37 PM > Subject: [llvm-dev] Back end with special loop instructions > > Hello.