[llvm-branch-commits] [clang] [CIR][CUDA] External init for `__device__`, `__constant__` and internalize host shadows (PR #186568)
David Rivera via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Mar 15 04:23:39 PDT 2026
================
@@ -1393,6 +1393,20 @@ class CIR_AST<string name, string prefix, list<Trait> traits = []>
}];
}
+def CIR_ExternallyInitializedAttr : CIR_Attr<
----------------
RiverDave wrote:
Thanks for letting me know, didn't notice you had already worked on this, thanks! this branch is based on a past build - guess I oughta rebase.
> the one in CIRCUDAAttrs.td is specific to CUDA, is it okay to duplicate, or we could just remove the one in CIRCUDAAttrs and replace it with this one ?
Based on some grepping around the codebase, external init is not exclusive to CUDA. So I think renaming it and defining it on `CIRAttrs.td` its the right call.
https://github.com/llvm/llvm-project/pull/186568
More information about the llvm-branch-commits
mailing list