[llvm] [SPIRV] Support for SPV_INTEL_fpga_reg extension (PR #134352)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 00:45:57 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:
I’ll try going ahead with a generic LLVM intrinsic for fpga_reg and have Clang emit it directly. That should keep things cleaner and not tied to the intel/llvm.
If you have any suggestions on the intrinsic definition please let me know.
https://github.com/llvm/llvm-project/pull/134352
More information about the llvm-commits
mailing list