LLVM API Documentation
#include <TargetLowering.h>
Collaboration diagram for llvm::TargetLowering::TargetLoweringOpt:
Public Member Functions | |
TargetLoweringOpt (SelectionDAG &InDAG) | |
bool | CombineTo (SDOperand O, SDOperand N) |
bool | ShrinkDemandedConstant (SDOperand Op, uint64_t Demanded) |
Public Attributes | |
SelectionDAG & | DAG |
SDOperand | Old |
SDOperand | New |
Definition at line 327 of file TargetLowering.h.
llvm::TargetLowering::TargetLoweringOpt::TargetLoweringOpt | ( | SelectionDAG & | InDAG | ) | [inline] |
Definition at line 332 of file TargetLowering.h.
Definition at line 334 of file TargetLowering.h.
Referenced by ShrinkDemandedConstant(), and llvm::TargetLowering::SimplifyDemandedBits().
bool TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant | ( | SDOperand | Op, | |
uint64_t | 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.
Definition at line 197 of file TargetLowering.cpp.
References llvm::ISD::AND, llvm::CallingConv::C, CombineTo(), DAG, llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), New, Op, llvm::ISD::OR, and llvm::ISD::XOR.
Referenced by llvm::TargetLowering::SimplifyDemandedBits().
Definition at line 328 of file TargetLowering.h.
Referenced by ShrinkDemandedConstant(), and llvm::TargetLowering::SimplifyDemandedBits().
Definition at line 330 of file TargetLowering.h.
Referenced by CombineTo(), and ShrinkDemandedConstant().