[llvm] [GlobalISel] Introduce LLT:token() as a special scalar type (PR #85189)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 00:00:16 PDT 2024


================
@@ -39,6 +39,10 @@ LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) {
     return LLT::scalar(SizeInBits);
   }
 
+  if (Ty.isTokenTy()) {
+    return LLT::token();
+  }
----------------
arsenm wrote:

No braces 

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


More information about the llvm-commits mailing list