@@ -1110,7 +1110,7 @@ def SaturationModeAttr : EnumAttr<NVVM_Dialect, SaturationMode, "sat_mode"> {
11101110 let assemblyFormat = "`<` $value `>`";
11111111}
11121112
1113- def NVVM_CvtFloatToTF32Op : NVVM_Op<"cvt .float.to.tf32"> {
1113+ def NVVM_ConvertFloatToTF32Op : NVVM_Op<"convert .float.to.tf32"> {
11141114 let summary = "Convert the given float input to TF32";
11151115 let description = [{
11161116 This Op converts the given f32 input to tf32.
@@ -1139,24 +1139,24 @@ def NVVM_CvtFloatToTF32Op : NVVM_Op<"cvt.float.to.tf32"> {
11391139 }];
11401140
11411141 string llvmBuilder = [{
1142- auto intId = NVVM::CvtFloatToTF32Op ::getIntrinsicID($rnd, $sat, $relu);
1142+ auto intId = NVVM::ConvertFloatToTF32Op ::getIntrinsicID($rnd, $sat, $relu);
11431143 $res = createIntrinsicCall(builder, intId, {$src});
11441144 }];
11451145}
11461146
1147- def CVTFP6E2M3 : I32EnumAttrCase<"E2M3", 0, "e2m3">;
1148- def CVTFP6E3M2 : I32EnumAttrCase<"E3M2", 1, "e3m2">;
1147+ def ConvertFP6E2M3 : I32EnumAttrCase<"E2M3", 0, "e2m3">;
1148+ def ConvertFP6E3M2 : I32EnumAttrCase<"E3M2", 1, "e3m2">;
11491149
1150- def CVTFP6Type : I32EnumAttr<"CVTFP6Type ", "NVVM CVTFP6Type kind",
1151- [CVTFP6E2M3, CVTFP6E3M2 ]> {
1150+ def ConvertFP6Type : I32EnumAttr<"ConvertFP6Type ", "NVVM ConvertFP6Type kind",
1151+ [ConvertFP6E2M3, ConvertFP6E3M2 ]> {
11521152 let genSpecializedAttr = 0;
11531153 let cppNamespace = "::mlir::NVVM";
11541154}
1155- def CVTFP6TypeAttr : EnumAttr<NVVM_Dialect, CVTFP6Type , "cvt_fp6_type "> {
1155+ def ConvertFP6TypeAttr : EnumAttr<NVVM_Dialect, ConvertFP6Type , "convert_fp6_type "> {
11561156 let assemblyFormat = "`<` $value `>`";
11571157}
11581158
1159- def NVVM_CvtF32x2ToF6x2Op : NVVM_Op<"cvt .f32x2.to.f6x2"> {
1159+ def NVVM_ConvertF32x2ToF6x2Op : NVVM_Op<"convert .f32x2.to.f6x2"> {
11601160 let summary = "Convert a pair of float inputs to f6x2";
11611161 let description = [{
11621162 This Op converts each of the given float inputs to the specified fp6 type.
@@ -1176,19 +1176,19 @@ def NVVM_CvtF32x2ToF6x2Op : NVVM_Op<"cvt.f32x2.to.f6x2"> {
11761176
11771177 let results = (outs AnyTypeOf<[I16, VectorOfLengthAndType<[2], [I8]>]>:$dst);
11781178 let arguments = (ins
1179- CVTFP6TypeAttr :$type,
1179+ ConvertFP6TypeAttr :$type,
11801180 F32:$a,
11811181 F32:$b,
11821182 DefaultValuedAttr<BoolAttr, "false">:$relu);
11831183 let assemblyFormat = "$type $a `,` $b attr-dict `:` type($dst)";
11841184
11851185 let extraClassDeclaration = [{
1186- static llvm::Intrinsic::ID getIntrinsicID(NVVM::CVTFP6Type ,
1186+ static llvm::Intrinsic::ID getIntrinsicID(NVVM::ConvertFP6Type ,
11871187 bool hasRelu);
11881188 }];
11891189
11901190 string llvmBuilder = [{
1191- auto intId = NVVM::CvtF32x2ToF6x2Op ::getIntrinsicID($type, $relu);
1191+ auto intId = NVVM::ConvertF32x2ToF6x2Op ::getIntrinsicID($type, $relu);
11921192 llvm::Value *packedI16 = createIntrinsicCall(builder, intId, {$a, $b});
11931193 if(op.getDst().getType().isInteger(16))
11941194 $dst = packedI16;
@@ -1198,20 +1198,20 @@ def NVVM_CvtF32x2ToF6x2Op : NVVM_Op<"cvt.f32x2.to.f6x2"> {
11981198 }];
11991199}
12001200
1201- def CVTFP8E4M3 : I32EnumAttrCase<"E4M3", 0, "e4m3">;
1202- def CVTFP8E5M2 : I32EnumAttrCase<"E5M2", 1, "e5m2">;
1203- def CVTFP8UE8M0 : I32EnumAttrCase<"UE8M0", 2, "ue8m0">;
1201+ def ConvertFP8E4M3 : I32EnumAttrCase<"E4M3", 0, "e4m3">;
1202+ def ConvertFP8E5M2 : I32EnumAttrCase<"E5M2", 1, "e5m2">;
1203+ def ConvertFP8UE8M0 : I32EnumAttrCase<"UE8M0", 2, "ue8m0">;
12041204
1205- def CVTFP8Type : I32EnumAttr<"CVTFP8Type ", "NVVM CVTFP8Type kind",
1206- [CVTFP8E4M3, CVTFP8E5M2, CVTFP8UE8M0 ]> {
1205+ def ConvertFP8Type : I32EnumAttr<"ConvertFP8Type ", "NVVM ConvertFP8Type kind",
1206+ [ConvertFP8E4M3, ConvertFP8E5M2, ConvertFP8UE8M0 ]> {
12071207 let genSpecializedAttr = 0;
12081208 let cppNamespace = "::mlir::NVVM";
12091209}
1210- def CVTFP8TypeAttr : EnumAttr<NVVM_Dialect, CVTFP8Type , "cvt_fp8_type "> {
1210+ def ConvertFP8TypeAttr : EnumAttr<NVVM_Dialect, ConvertFP8Type , "convert_fp8_type "> {
12111211 let assemblyFormat = "`<` $value `>`";
12121212}
12131213
1214- def NVVM_CvtF32x2ToF8x2Op : NVVM_Op<"cvt .f32x2.to.f8x2"> {
1214+ def NVVM_ConvertF32x2ToF8x2Op : NVVM_Op<"convert .f32x2.to.f8x2"> {
12151215 let summary = "Convert a pair of float inputs to f8x2";
12161216 let description = [{
12171217 This Op converts each of the given float inputs to the specified fp8 type.
@@ -1232,7 +1232,7 @@ def NVVM_CvtF32x2ToF8x2Op : NVVM_Op<"cvt.f32x2.to.f8x2"> {
12321232 let hasVerifier = 1;
12331233 let results = (outs AnyTypeOf<[I16, VectorOfLengthAndType<[2], [I8]>]>:$dst);
12341234 let arguments = (ins
1235- CVTFP8TypeAttr :$type,
1235+ ConvertFP8TypeAttr :$type,
12361236 F32:$a,
12371237 F32:$b,
12381238 DefaultValuedAttr<FPRoundingModeAttr, "FPRoundingMode::NONE">:$rnd,
@@ -1241,14 +1241,14 @@ def NVVM_CvtF32x2ToF8x2Op : NVVM_Op<"cvt.f32x2.to.f8x2"> {
12411241 let assemblyFormat = "$type $a `,` $b attr-dict `:` type($dst)";
12421242
12431243 let extraClassDeclaration = [{
1244- static llvm::Intrinsic::ID getIntrinsicID(NVVM::CVTFP8Type to,
1244+ static llvm::Intrinsic::ID getIntrinsicID(NVVM::ConvertFP8Type to,
12451245 NVVM::FPRoundingMode rnd,
12461246 NVVM::SaturationMode sat,
12471247 bool hasRelu);
12481248 }];
12491249
12501250 string llvmBuilder = [{
1251- auto intId = NVVM::CvtF32x2ToF8x2Op ::getIntrinsicID($type, $rnd, $sat, $relu);
1251+ auto intId = NVVM::ConvertF32x2ToF8x2Op ::getIntrinsicID($type, $rnd, $sat, $relu);
12521252 llvm::Value *packedI16 = createIntrinsicCall(builder, intId, {$a, $b});
12531253 if(op.getDst().getType().isInteger(16))
12541254 $dst = packedI16;
@@ -1258,7 +1258,7 @@ def NVVM_CvtF32x2ToF8x2Op : NVVM_Op<"cvt.f32x2.to.f8x2"> {
12581258 }];
12591259}
12601260
1261- def NVVM_CvtF16x2ToF8x2Op : NVVM_Op<"cvt .f16x2.to.f8x2"> {
1261+ def NVVM_ConvertF16x2ToF8x2Op : NVVM_Op<"convert .f16x2.to.f8x2"> {
12621262 let summary = "Convert an f16x2 input to f8x2";
12631263 let description = [{
12641264 This Op converts the given f16 inputs in an f16x2 vector to the specified
@@ -1280,18 +1280,18 @@ def NVVM_CvtF16x2ToF8x2Op : NVVM_Op<"cvt.f16x2.to.f8x2"> {
12801280 let hasVerifier = 1;
12811281 let results = (outs AnyTypeOf<[I16, VectorOfLengthAndType<[2], [I8]>]>:$dst);
12821282 let arguments = (ins
1283- CVTFP8TypeAttr :$type,
1283+ ConvertFP8TypeAttr :$type,
12841284 VectorOfLengthAndType<[2], [F16]>:$a,
12851285 DefaultValuedAttr<BoolAttr, "false">:$relu);
12861286 let assemblyFormat = "$type $a attr-dict `:` type($a) `->` type($dst)";
12871287
12881288 let extraClassDeclaration = [{
1289- static llvm::Intrinsic::ID getIntrinsicID(NVVM::CVTFP8Type to,
1289+ static llvm::Intrinsic::ID getIntrinsicID(NVVM::ConvertFP8Type to,
12901290 bool hasRelu);
12911291 }];
12921292
12931293 string llvmBuilder = [{
1294- auto intId = NVVM::CvtF16x2ToF8x2Op ::getIntrinsicID($type, $relu);
1294+ auto intId = NVVM::ConvertF16x2ToF8x2Op ::getIntrinsicID($type, $relu);
12951295 llvm::Value *packedI16 = createIntrinsicCall(builder, intId, {$a});
12961296 if(op.getDst().getType().isInteger(16))
12971297 $dst = packedI16;
@@ -1301,7 +1301,7 @@ def NVVM_CvtF16x2ToF8x2Op : NVVM_Op<"cvt.f16x2.to.f8x2"> {
13011301 }];
13021302}
13031303
1304- def NVVM_CvtBF16x2ToF8x2Op : NVVM_Op<"cvt .bf16x2.to.f8x2"> {
1304+ def NVVM_ConvertBF16x2ToF8x2Op : NVVM_Op<"convert .bf16x2.to.f8x2"> {
13051305 let summary = "Convert a pair of bf16 inputs to f8x2";
13061306 let description = [{
13071307 This Op converts the given bf16 inputs in a bf16x2 vector to the specified
@@ -1323,7 +1323,7 @@ def NVVM_CvtBF16x2ToF8x2Op : NVVM_Op<"cvt.bf16x2.to.f8x2"> {
13231323 let hasVerifier = 1;
13241324 let results = (outs AnyTypeOf<[I16, VectorOfLengthAndType<[2], [I8]>]>:$dst);
13251325 let arguments = (ins
1326- CVTFP8TypeAttr :$type,
1326+ ConvertFP8TypeAttr :$type,
13271327 VectorOfLengthAndType<[2], [BF16]>:$a,
13281328 DefaultValuedAttr<FPRoundingModeAttr, "FPRoundingMode::NONE">:$rnd,
13291329 DefaultValuedAttr<SaturationModeAttr, "SaturationMode::NONE">:$sat);
@@ -1335,7 +1335,7 @@ def NVVM_CvtBF16x2ToF8x2Op : NVVM_Op<"cvt.bf16x2.to.f8x2"> {
13351335 }];
13361336
13371337 string llvmBuilder = [{
1338- auto intId = NVVM::CvtBF16x2ToF8x2Op ::getIntrinsicID($rnd, $sat);
1338+ auto intId = NVVM::ConvertBF16x2ToF8x2Op ::getIntrinsicID($rnd, $sat);
13391339 llvm::Value *packedI16 = createIntrinsicCall(builder, intId, {$a});
13401340 if(op.getDst().getType().isInteger(16))
13411341 $dst = packedI16;
0 commit comments