LLVM API Documentation
#include <TargetLowering.h>
Public Member Functions | |
| TargetLoweringOpt (SelectionDAG &InDAG) | |
| bool | CombineTo (SDValue O, SDValue N) |
| bool | ShrinkDemandedConstant (SDValue Op, const APInt &Demanded) |
Public Attributes | |
| SelectionDAG & | DAG |
| SDValue | Old |
| SDValue | New |
Definition at line 719 of file TargetLowering.h.
| llvm::TargetLowering::TargetLoweringOpt::TargetLoweringOpt | ( | SelectionDAG & | InDAG | ) | [inline, explicit] |
Definition at line 724 of file TargetLowering.h.
Definition at line 726 of file TargetLowering.h.
Referenced by PerformBuildVectorCombine(), ShrinkDemandedConstant(), and llvm::TargetLowering::SimplifyDemandedBits().
| bool TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant | ( | SDValue | Op, | |
| const APInt & | Demanded | |||
| ) |
ShrinkDemandedConstant - Check to see if the specified operand of the specified instruction is a constant integer. If so, check to see if there are any bits set in the constant that are not demanded. If so, shrink the constant and return true.
ShrinkDemandedConstant - Check to see if the specified operand of the specified instruction is a constant integer. If so, check to see if there are any bits set in the constant that are not demanded. If so, shrink the constant and return true.
Definition at line 724 of file TargetLowering.cpp.
References llvm::ISD::AND, llvm::CallingConv::C, CombineTo(), DAG, llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), New, llvm::ISD::OR, VT, and llvm::ISD::XOR.
Referenced by PerformBTCombine(), and llvm::TargetLowering::SimplifyDemandedBits().
Definition at line 720 of file TargetLowering.h.
Referenced by ShrinkDemandedConstant(), and llvm::TargetLowering::SimplifyDemandedBits().
Definition at line 722 of file TargetLowering.h.
Referenced by CombineTo(), and ShrinkDemandedConstant().