This patch add vp.inttoptr & vp.ptrtoint support by lowering them into
vp.zext / vp.truncate with in SelectionDAGBuilder.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | ||
---|---|---|
1486 | Probably better to pass Mask and EVL explicitly. Op is the same as Ops[0] | |
1492 | I don't think you need to check the element type.. The number of elements should match. Something like this looks better to me structurally. if (VT.bitsGT(Op.getValueType()) return getNode(ISD::VP_ZERO_EXTEND, DL, VT, Op, Mask, EVL); if (VT.bitsLT(Op.getValueType()) return getNode(ISD::VP_TRUNCATE, DL, VT, Op, Mask, EVL); return Op; | |
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | ||
7708 | This is OpValues[0] is it not? | |
7717 | Same |
Probably better to pass Mask and EVL explicitly. Op is the same as Ops[0]