[llvm] [SandboxIR][NFC] Factor out common test for CastInst subclasses (PR #101410)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 15:35:30 PDT 2024


================
@@ -34,6 +34,8 @@ struct SandboxIRTest : public testing::Test {
         return &BB;
     llvm_unreachable("Expected to find basic block!");
   }
+  template <typename SubclassT, sandboxir::Instruction::Opcode OpcodeT>
+  void testCastInst(const char *IRToParse, Type *SrcTy, Type *DstTy);
----------------
vporpo wrote:

Yeah, this looks much better now.

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


More information about the llvm-commits mailing list