|
LLVM
10.0.0
|
#include "llvm/CodeGen/GlobalISel/GISelKnownBits.h"
Static Public Member Functions | |
| static Align | inferAlignmentForFrameIdx (int FrameIdx, int Offset, const MachineFunction &MF) |
| static void | computeKnownBitsForAlignment (KnownBits &Known, MaybeAlign Alignment) |
| static MaybeAlign | inferPtrAlignment (const MachineInstr &MI) |
Protected Member Functions | |
| unsigned | getMaxDepth () const |
Definition at line 29 of file GISelKnownBits.h.
| Analysis for true GISelKnownBits::GISelKnownBits | ( | MachineFunction & | MF | ) |
Definition at line 32 of file GISelKnownBits.cpp.
|
virtualdefault |
|
inlineoverridevirtual |
This instruction was mutated in some way.
Implements llvm::GISelChangeObserver.
Definition at line 82 of file GISelKnownBits.h.
|
inlineoverridevirtual |
This instruction is about to be mutated in some way.
Implements llvm::GISelChangeObserver.
Definition at line 81 of file GISelKnownBits.h.
|
static |
Definition at line 58 of file GISelKnownBits.cpp.
References llvm::Log2(), llvm::APInt::setLowBits(), and llvm::KnownBits::Zero.
Referenced by computeKnownBitsForFrameIndex(), and maskedValueIsZero().
| void GISelKnownBits::computeKnownBitsForFrameIndex | ( | Register | R, |
| KnownBits & | Known, | ||
| const APInt & | DemandedElts, | ||
| unsigned | Depth = 0 |
||
| ) |
Definition at line 51 of file GISelKnownBits.cpp.
References computeKnownBitsForAlignment(), llvm::MachineRegisterInfo::getVRegDef(), inferPtrAlignment(), and MI.
Referenced by computeKnownBitsImpl(), and maskedValueIsZero().
|
virtual |
Definition at line 90 of file GISelKnownBits.cpp.
References llvm::APInt::ashr(), assert(), computeKnownBitsForFrameIndex(), llvm::TargetLowering::computeKnownBitsForTargetInstr(), llvm::computeKnownBitsFromRangeMetadata(), llvm::KnownBits::countMinLeadingZeros(), llvm::KnownBits::countMinTrailingZeros(), llvm::dbgs(), llvm::Depth, llvm::LLT::getAddressSpace(), llvm::APInt::getBitWidth(), llvm::TargetLoweringBase::getBooleanContents(), llvm::KnownBits::getConstant(), llvm::getConstantVRegVal(), llvm::DataLayout::getIndexSizeInBits(), getMaxDepth(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineMemOperand::getRanges(), llvm::MachineOperand::getReg(), llvm::LLT::getSizeInBits(), llvm::getSizeInBits(), llvm::MachineOperand::getSubReg(), llvm::MachineRegisterInfo::getType(), llvm::MachineRegisterInfo::getVRegDef(), llvm::APInt::getZExtValue(), llvm::KnownBits::hasConflict(), llvm::MachineInstr::hasOneMemOperand(), llvm::KnownBits::isConstant(), llvm::DataLayout::isNonIntegralAddressSpace(), llvm::LLT::isPointer(), llvm::KnownBits::isUnknown(), llvm::LLT::isValid(), llvm::LLT::isVector(), llvm::Register::isVirtual(), LLVM_DEBUG, LLVM_FALLTHROUGH, llvm::APInt::lshr(), llvm::max(), llvm::MachineInstr::memoperands_begin(), MI, llvm::KnownBits::One, llvm::KnownBits::resetAll(), llvm::APInt::setBits(), llvm::APInt::setBitsFrom(), llvm::APInt::setHighBits(), llvm::APInt::setLowBits(), llvm::KnownBits::sext(), llvm::APInt::shl(), llvm::APInt::toString(), llvm::KnownBits::Zero, llvm::TargetLoweringBase::ZeroOrOneBooleanContent, llvm::KnownBits::zext(), and llvm::KnownBits::zextOrTrunc().
Referenced by getKnownBits().
| unsigned GISelKnownBits::computeNumSignBits | ( | Register | R, |
| const APInt & | DemandedElts, | ||
| unsigned | Depth = 0 |
||
| ) |
Definition at line 376 of file GISelKnownBits.cpp.
References llvm::Depth, llvm::MachineOperand::getCImm(), getMaxDepth(), llvm::APInt::getNumSignBits(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::LLT::getScalarSizeInBits(), llvm::MachineOperand::getSubReg(), llvm::MachineRegisterInfo::getType(), llvm::ConstantInt::getValue(), llvm::MachineRegisterInfo::getVRegDef(), llvm::LLT::isValid(), llvm::Register::isVirtual(), and MI.
Referenced by computeNumSignBits().
Definition at line 438 of file GISelKnownBits.cpp.
References computeNumSignBits(), llvm::APInt::getAllOnesValue(), llvm::LLT::getNumElements(), llvm::MachineRegisterInfo::getType(), and llvm::LLT::isVector().
|
inlineoverridevirtual |
An instruction has been created and inserted into the function.
Note that the instruction might not be a fully fledged instruction at this point and won't be if the MachineFunction::Delegate is calling it. This is because the delegate only sees the construction of the MachineInstr before operands have been added.
Implements llvm::GISelChangeObserver.
Definition at line 80 of file GISelKnownBits.h.
|
inlineoverridevirtual |
An instruction is about to be erased.
Implements llvm::GISelChangeObserver.
Definition at line 79 of file GISelKnownBits.h.
Definition at line 69 of file GISelKnownBits.cpp.
References computeKnownBitsImpl(), llvm::APInt::getAllOnesValue(), llvm::LLT::getNumElements(), llvm::MachineRegisterInfo::getType(), and llvm::LLT::isVector().
Referenced by getKnownBits(), getKnownOnes(), getKnownZeroes(), and maskedValueIsZero().
| KnownBits GISelKnownBits::getKnownBits | ( | MachineInstr & | MI | ) |
Definition at line 65 of file GISelKnownBits.cpp.
References getKnownBits(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Definition at line 88 of file GISelKnownBits.cpp.
References getKnownBits(), and llvm::KnownBits::One.
Definition at line 84 of file GISelKnownBits.cpp.
References getKnownBits(), and llvm::KnownBits::Zero.
|
inlineprotected |
Definition at line 85 of file GISelKnownBits.h.
Referenced by computeKnownBitsImpl(), and computeNumSignBits().
|
static |
Definition at line 36 of file GISelKnownBits.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::commonAlignment(), llvm::MachineFunction::getFrameInfo(), and llvm::MachineFrameInfo::getObjectAlignment().
Referenced by inferPtrAlignment(), and maskedValueIsZero().
|
static |
Definition at line 43 of file GISelKnownBits.cpp.
References llvm::MachineOperand::getIndex(), llvm::MachineInstr::getMF(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), inferAlignmentForFrameIdx(), and llvm::None.
Referenced by computeKnownBitsForFrameIndex(), and maskedValueIsZero().
Definition at line 57 of file GISelKnownBits.h.
References computeKnownBitsForAlignment(), computeKnownBitsForFrameIndex(), llvm::Depth, getKnownBits(), inferAlignmentForFrameIdx(), inferPtrAlignment(), llvm::APInt::isSubsetOf(), and signBitIsZero().
Referenced by signBitIsZero().
| void llvm::GISelKnownBits::setMF | ( | MachineFunction & | MF | ) |
Definition at line 78 of file GISelKnownBits.cpp.
References llvm::LLT::getScalarSizeInBits(), llvm::APInt::getSignMask(), llvm::MachineRegisterInfo::getType(), and maskedValueIsZero().
Referenced by maskedValueIsZero().
1.8.13