Skip to content

Commit e9ff4e4

Browse files
authored
[Clang][RISCV] Add vundefine intrinsics for tuple types (#70354)
riscv-non-isa/rvv-intrinsic-doc#288
1 parent 89f8d35 commit e9ff4e4

File tree

2 files changed

+1959
-295
lines changed

2 files changed

+1959
-295
lines changed

clang/include/clang/Basic/riscv_vector.td

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,6 +2320,15 @@ let HasMasked = false, HasVL = false, IRName = "" in {
23202320
}] in {
23212321
def vundefined : RVVBuiltin<"v", "v", "csilxfd">;
23222322
def vundefined_u : RVVBuiltin<"Uv", "Uv", "csil">;
2323+
2324+
foreach nf = NFList in {
2325+
let NF = nf in {
2326+
defvar T = "(Tuple:" # nf # ")";
2327+
def : RVVBuiltin<T # "v", T # "v", "csilxfd">;
2328+
def : RVVBuiltin<T # "Uv", T # "Uv", "csil">;
2329+
}
2330+
}
2331+
23232332
}
23242333

23252334
// LMUL truncation

0 commit comments

Comments
 (0)