[llvm] [IR] Improve check for target extension types disallowed in globals. (PR #116639)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 09:15:31 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);
----------------
jayfoad wrote:
@bogner @hekota I had to do this to keep `check-clang-codegenhlsl` passing. Does it look right?
https://github.com/llvm/llvm-project/pull/116639
More information about the llvm-commits
mailing list