[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 11:57:31 PDT 2024


================
@@ -879,6 +879,10 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
         ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts));
   }
 
+  // DirectX intangible types
+  if (Name.starts_with("dx."))
+    return TargetTypeInfo(PointerType::get(C, 0), TargetExtType::CanBeGlobal);
----------------
hekota wrote:

I've removed `CanBeGlobal`. I copied it from the spirv.Image case, but since we always have the handle wrapped in a class we should not need it.

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


More information about the cfe-commits mailing list