[llvm] [SelectionDAG] Add and use SDNode::getAsAPIntVal() helper (PR #77455)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 04:32:10 PST 2024
================
@@ -932,6 +932,9 @@ END_TWO_BYTE_PACK()
/// Helper method returns the APInt of a ConstantSDNode operand.
inline const APInt &getConstantOperandAPInt(unsigned Num) const;
+ /// Helper method returns the APInt value of a ConstantSDNode.
+ inline const APInt &getAsAPIntVal() const;
+
----------------
KanRobert wrote:
Why not directly put the definition here?
https://github.com/llvm/llvm-project/pull/77455
More information about the llvm-commits
mailing list