llvm::SDNode::bitcastToAPInt

Bitcast a constant integer or FP node to an APInt when possible.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

std::optional<APInt>
bitcastToAPInt() const;

Return Value

APInt bits when this node is a constant; otherwise nullopt.