[llvm] [NVPTX] TableGen-erate SDNode descriptions (PR #168367)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 11:53:14 PST 2025


================
@@ -3314,7 +3224,7 @@ SDValue NVPTXTargetLowering::LowerBR_JT(SDValue Op, SelectionDAG &DAG) const {
   // Generate BrxEnd nodes
   SDValue EndOps[] = {Chain.getValue(0), DAG.getBasicBlock(MBBs.back()), Index,
                       IdV, Chain.getValue(1)};
-  SDValue BrxEnd = DAG.getNode(NVPTXISD::BrxEnd, DL, VTs, EndOps);
+  SDValue BrxEnd = DAG.getNode(NVPTXISD::BrxEnd, DL, MVT::Other, EndOps);
----------------
s-barannikov wrote:

Yes. The node is defined as:
```
def SDTBrxEndProfile : SDTypeProfile<0, 3, [SDTCisVT<0, OtherVT>, SDTCisInt<1>, SDTCisInt<2>]>;
...
def brx_end :
  SDNode<"NVPTXISD::BrxEnd", SDTBrxEndProfile,
         [SDNPHasChain, SDNPInGlue, SDNPSideEffect]>;
```
That is, it has one result, which is the chain.


https://github.com/llvm/llvm-project/pull/168367


More information about the llvm-commits mailing list