[llvm] [SPIRV] Support for SPV_INTEL_fpga_reg extension (PR #134352)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 01:50:08 PDT 2025
================
@@ -238,6 +238,22 @@ static SmallVector<Metadata *> parseAnnotation(Value *I,
: SmallVector<Metadata *>{};
}
+static bool lowerAnnotation(IntrinsicInst *II) {
+ std::string Anno =
+ getAnnotation(II->getArgOperand(1),
+ 4 < II->arg_size() ? II->getArgOperand(4) : nullptr);
+ if (Anno == "__builtin_intel_fpga_reg") {
----------------
EbinJose2002 wrote:
One question though, I haven't seen any similar intel builtins being handled in clang. So is mapping this builtin to a new intrinsic in clang is the best approach ?
https://github.com/llvm/llvm-project/pull/134352
More information about the llvm-commits
mailing list