[llvm] [NVPTX] Add PRMT constant folding and cleanup usage of PRMT node (PR #148906)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 10:32:37 PDT 2025
================
@@ -2060,6 +2063,13 @@ NVPTXTargetLowering::LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const {
return DAG.getBuildVector(Node->getValueType(0), dl, Ops);
}
+static SDValue getPRMT(SDValue A, SDValue B, SDValue Selector, SDLoc DL,
+ SelectionDAG &DAG,
+ unsigned Mode = NVPTX::PTXPrmtMode::NONE) {
----------------
AlexMaclean wrote:
Added
https://github.com/llvm/llvm-project/pull/148906
More information about the llvm-commits
mailing list