@@ -55,14 +55,21 @@ enum NVVMMemorySpace {
5555 kSharedClusterMemorySpace = 7 ,
5656};
5757
58- // / A tuple type of LLVM's Intrinsic ID, args (which are llvm values),
58+ // / A struct of LLVM's Intrinsic ID, args (which are llvm values),
5959// / and args types (which are llvm types).
6060// / Args types are only required for overloaded intrinsics to provide the
6161// / correct argument types to the createIntrinsicCall() method.
6262// / This type is returned by the getIIDAndArgsWithTypes() methods.
63- using IIDArgsWithTypes =
64- std::tuple<llvm::Intrinsic::ID, llvm::SmallVector<llvm::Value *>,
65- llvm::SmallVector<llvm::Type *>>;
63+ struct IIDArgsWithTypes {
64+ IIDArgsWithTypes (llvm::Intrinsic::ID id,
65+ llvm::SmallVector<llvm::Value *> args,
66+ llvm::SmallVector<llvm::Type *> types)
67+ : id(id), args(args), types(types) {}
68+
69+ llvm::Intrinsic::ID id;
70+ llvm::SmallVector<llvm::Value *> args;
71+ llvm::SmallVector<llvm::Type *> types;
72+ };
6673
6774// / Return the element type and number of elements associated with a wmma matrix
6875// / of given chracteristics. This matches the logic in IntrinsicsNVVM.td
0 commit comments