[llvm] [IR] Improve check for target extension types disallowed in globals. (PR #116639)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 01:22:35 PST 2024


================
@@ -903,7 +947,7 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
 
   // DirectX resources
   if (Name.starts_with("dx."))
-    return TargetTypeInfo(PointerType::get(C, 0));
+    return TargetTypeInfo(PointerType::get(C, 0), TargetExtType::CanBeGlobal);
----------------
bogner wrote:

Yes, this looks reasonable to me.

https://github.com/llvm/llvm-project/pull/116639


More information about the llvm-commits mailing list