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

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 02:25:15 PDT 2024


================
@@ -18,6 +18,28 @@ using namespace llvm;
 
 namespace {
 
+TEST(LowLevelTypeTest, Token) {
+  LLVMContext C;
+  DataLayout DL("");
+
+  const LLT TTy = LLT::token();
+
+  // Test kind.
+  ASSERT_TRUE(TTy.isValid());
+  ASSERT_TRUE(TTy.isScalar());
+  ASSERT_TRUE(TTy.isToken());
----------------
ssahasra wrote:

Done. In all places in the new test.

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


More information about the llvm-commits mailing list