New llvm Intrinsic (original) (raw)
I am trying to implement a new intrinsic for the builtin __builtin_intel_fpga_reg. I was planning to create a new llvm intrinsic and map the builtin to this intrinsic in the clang. But when I looked into this no similar intel builtins were mapped to any intrinsic. So am I looking at this in the correct perspective?
Should I proceed with creating a new intrinsic for this and handle rest of the code generation in the backend?
PS: This is for implementing the extension SPV_INTEL_fpga_reg. So I am not sure whether a new llvm intrinsic just for supporting this extension in SPIRV backend is a good idea or not.
Any input is welcome.