Displaying 3 results from an estimated 3 matches for "test_intinsic_fm".
2014 Jul 18
2
[LLVMdev] how to define INTRINSIC_W_CHAIN
sure!
class TEST_INTINSIC_FM< string asmstr> : Intrinsic
<llvm_i32_ty], [llvm_i32_ty, llvm_ptr_ty],
[IntrReadWriteArgMem],
!strconcat(“llvm.test”, asmstr),”.float”)
>;
tks
On Jul 18, 2014, at 4:06 PM, Tom Stellard <tom at stellard.net> wrote:
> On Fri, Jul 18, 2014 at 03:19:47PM -0400, kewuzhang wro...
2014 Jul 18
2
[LLVMdev] how to define INTRINSIC_W_CHAIN
...HasChain?
Is there any flag set like in typeProfile, Node, instructions? myLoad, mayStore, SDNPHasChain?
-kevin
On Jul 18, 2014, at 4:26 PM, Tom Stellard <tom at stellard.net> wrote:
> On Fri, Jul 18, 2014 at 04:15:45PM -0400, kewuzhang wrote:
>> sure!
>>
>> class TEST_INTINSIC_FM< string asmstr> : Intrinsic
>> <llvm_i32_ty], [llvm_i32_ty, llvm_ptr_ty],
>> [IntrReadWriteArgMem],
>> !strconcat(“llvm.test”, asmstr),”.float”)
>> >;
>
> Have a look at the SelectionDAGBuilder::visitTargetIntrinsic()
> function in lib/CodeGen/Sele...
2014 Jul 18
2
[LLVMdev] how to define INTRINSIC_W_CHAIN
en!
my test is : %r1 = call<float> @test.adddiv( <float> %r0, <float>* %p0).
since
>> but somehow it always fall into INTRINSIC_WO_CHAIN category.
(caught it in lowering..)
I think it doesn’t have chain in initial DAG.
unfortunately the intrinsic “test.adddiv” is defined by me for now. not sure how to make it has a chain.
kevin
On Jul 18, 2014, at 3:06 PM,