[LLVMdev] how to define INTRINSIC_W_CHAIN
Hal Finkel
hfinkel at anl.gov
Fri Jul 18 12:11:46 PDT 2014
----- Original Message -----
> From: "kewuzhang" <kewu.zhang at amd.com>
> To: llvmdev at cs.uiuc.edu
> Sent: Friday, July 18, 2014 2:00:07 PM
> Subject: [LLVMdev] how to define INTRINSIC_W_CHAIN
>
> Hi guys,
>
> I am working on an intrinsic function, which will write to a pointer
> argument.
> So I am lowering it and think I need to catch it in
> lowerINTRINSIC_W_CHAIN, but somehow it always fall into
> INTRINSIC_WO_CHAIN category.
>
> I put [IntrReadwriteArgMem] into my Intrinsic class definition, it
> did not help.
> tried put [SDNPHasChain] into intrinsic class definition, cause
> errors” Element type mismatch for list”.
>
> wondering how to flag it to INTRINSIC_W_CHAIN?
Does your intrinsic return a value? If not, it will be a INTRINSIC_VOID (which also has a chain).
-Hal
>
> best
>
> Kevin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
More information about the llvm-dev
mailing list