[llvm] [NVPTX] Allow directly storing immediates to improve readability (PR #145552)
Drew Kersnar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 10:24:33 PDT 2025
================
@@ -2338,19 +2350,20 @@ let mayLoad=1, hasSideEffects=0 in {
def LD_i64 : LD<B64>;
}
-class ST<NVPTXRegClass regclass>
+class ST<DAGOperand O>
: NVPTXInst<
(outs),
- (ins regclass:$src, LdStCode:$sem, LdStCode:$scope, LdStCode:$addsp,
- LdStCode:$Sign, i32imm:$toWidth, ADDR:$addr),
- "st${sem:sem}${scope:scope}${addsp:addsp}.${Sign:sign}$toWidth"
+ (ins O:$src,
+ LdStCode:$sem, LdStCode:$scope, LdStCode:$addsp, i32imm:$toWidth,
+ ADDR:$addr),
----------------
dakersnar wrote:
nit: what's going on with this formatting, is this what the auto formatter gives you?
https://github.com/llvm/llvm-project/pull/145552
More information about the llvm-commits
mailing list