Re: Adding an intrinsic that the user can include in source code
Keep in mind that if your intrinsic has an obvious direct mapping to the builtin you're exposing, you can just write your intrinsic in a way that it inherits from GCCBuiltin. That will avoid having to add custom lowering in CGBuiltin.cpp. There should be plenty of examples of that in the include/llvm/IR/IntrinsicsX86.td file that you already modified.
On Tue, Oct 31, 2017 at 11:56 PM, Martin J. O'Riordan via cfe-dev <[hidden email]> wrote:
I suspect that you almost certainly need to also implement a handler for this in the function ‘CodeGenFunction::EmitX86BuiltinExpr’ in:
All the best,
From: cfe-dev [[hidden email]] On Behalf Of Seth Goldstein via cfe-dev Sent: 31 October 2017 22:20 To:[hidden email] Subject: [cfe-dev] Adding an intrinsic that the user can include in source code
I would like to add an intrinsic that the user can put in their code.
The intrinsic is for sending, ala MPI, a value to another processor.