[clang] [RISCV][NFC] Remove unneeded defining name of `vundefined` (PR #101643)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 2 02:18:09 PDT 2024
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/101643
`vundefined` doesn't have corresponding named IR, instead it generates
`poison` value, we already define the `Name` for C intrinsics, so we
don't need the defining name at all.
>From df6b40a85ca89259751583b66429d59e92f4fe6d Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Fri, 2 Aug 2024 02:15:33 -0700
Subject: [PATCH] [RISCV][NFC] Remove unneeded defining name of `vundefined`
`vundefined` doesn't have corresponding named IR, instead it generates
`poison` value, we already define the `Name` for C intrinsics, so we
don't need the defining name at all.
---
clang/include/clang/Basic/riscv_vector.td | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/clang/include/clang/Basic/riscv_vector.td b/clang/include/clang/Basic/riscv_vector.td
index a0820e2093bc2..13d2efb4e6109 100644
--- a/clang/include/clang/Basic/riscv_vector.td
+++ b/clang/include/clang/Basic/riscv_vector.td
@@ -2407,10 +2407,10 @@ let HasMasked = false, HasVL = false, IRName = "" in {
ManualCodegen = [{
return llvm::PoisonValue::get(ResultType);
}] in {
- def vundefined : RVVBuiltin<"v", "v", "csilxfd">;
+ def : RVVBuiltin<"v", "v", "csilxfd">;
let RequiredFeatures = ["Zvfbfmin"] in
- def vundefined_bf16 : RVVBuiltin<"v", "v", "y">;
- def vundefined_u : RVVBuiltin<"Uv", "Uv", "csil">;
+ def : RVVBuiltin<"v", "v", "y">;
+ def : RVVBuiltin<"Uv", "Uv", "csil">;
foreach nf = NFList in {
let NF = nf in {
More information about the cfe-commits
mailing list