Skip to content

Commit ae509a0

Browse files
authored
[RISCV][Clang] Reuse RVVOutBuiltinSet multiclass for builtin vfrsqrt7. NFC (#115269)
1 parent 594e11c commit ae509a0

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

clang/include/clang/Basic/riscv_vector.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ let ManualCodegen = [{
18591859
}
18601860

18611861
// 13.9. Vector Floating-Point Reciprocal Square-Root Estimate Instruction
1862-
def vfrsqrt7 : RVVFloatingUnaryVVBuiltin;
1862+
defm vfrsqrt7 : RVVOutBuiltinSet<"vfrsqrt7", "xfd", [["v", "v", "vv"]]>;
18631863

18641864
// 13.11. Vector Floating-Point MIN/MAX Instructions
18651865
defm vfmin : RVVFloatingBinBuiltinSet;

clang/include/clang/Basic/riscv_vector_common.td

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,14 +576,6 @@ let UnMaskedPolicyScheme = HasPassthruOperand,
576576
}
577577
}
578578

579-
class RVVFloatingUnaryBuiltin<string builtin_suffix, string ir_suffix,
580-
string prototype>
581-
: RVVOutBuiltin<ir_suffix, prototype, "xfd"> {
582-
let Name = NAME # "_" # builtin_suffix;
583-
}
584-
585-
class RVVFloatingUnaryVVBuiltin : RVVFloatingUnaryBuiltin<"v", "v", "vv">;
586-
587579
class RVVConvBuiltin<string suffix, string prototype, string type_range,
588580
string overloaded_name>
589581
: RVVBuiltin<suffix, prototype, type_range> {

0 commit comments

Comments
 (0)