[llvm] d5ff21d - AMDGPU: Use defvar instead of defaulted multiclass argument
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 10:15:20 PDT 2024
Author: Matt Arsenault
Date: 2024-07-12T21:15:12+04:00
New Revision: d5ff21d58a4610af9e8120acfb318aecdebcee95
URL: https://github.com/llvm/llvm-project/commit/d5ff21d58a4610af9e8120acfb318aecdebcee95
DIFF: https://github.com/llvm/llvm-project/commit/d5ff21d58a4610af9e8120acfb318aecdebcee95.diff
LOG: AMDGPU: Use defvar instead of defaulted multiclass argument
Added:
Modified:
llvm/lib/Target/AMDGPU/VOP3PInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
index 4cab154351998..f4d2c29158f49 100644
--- a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
@@ -681,8 +681,9 @@ class MAIInst<string OpName, VOPProfile P, SDPatternOperator node>
bit is_gfx940_xdl = 0;
}
-multiclass MAIInst<string OpName, string P, SDPatternOperator node,
- bit NoDstOverlap = !cast<VOPProfileMAI>("VOPProfileMAI_" # P).NoDstOverlap> {
+multiclass MAIInst<string OpName, string P, SDPatternOperator node> {
+ defvar NoDstOverlap = !cast<VOPProfileMAI>("VOPProfileMAI_" # P).NoDstOverlap;
+
let isConvergent = 1, mayRaiseFPException = 0, ReadsModeReg = 1 in {
// FP32 denorm mode is respected, rounding mode is not. Exceptions are not supported.
let Constraints = !if(NoDstOverlap, "@earlyclobber $vdst", "") in {
More information about the llvm-commits
mailing list