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 337 of file TargetLowering.h.
llvm::TargetLowering::TargetLoweringOpt::TargetLoweringOpt | ( | SelectionDAG & | InDAG | ) | [inline] |
Definition at line 342 of file TargetLowering.h.
Definition at line 344 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 198 of file TargetLowering.cpp.
References llvm::ISD::AND, 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 338 of file TargetLowering.h.
Referenced by ShrinkDemandedConstant(), and llvm::TargetLowering::SimplifyDemandedBits().
Definition at line 340 of file TargetLowering.h.
Referenced by CombineTo(), and ShrinkDemandedConstant().