[llvm] [SPIR-V][Codegen] Represent the property of the target to declare and use typed pointers and update MachineVerifier to use it (PR #110270)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 07:13:40 PDT 2024


================
@@ -455,6 +455,12 @@ class TargetLoweringBase {
     return true;
   }
 
+  /// Return true if the target can handle the declaration and use of pointers
+  /// that specify the type of data they point to, meaning that interpretation
+  /// of the data type is not left to instructions that utilize the pointer, but
+  /// encoded by the pointer declaration.
+  virtual bool hasTypedPointer() const { return false; }
----------------
Keenuts wrote:

Should this bit be in the Subtarget/Target info?

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


More information about the llvm-commits mailing list