13 #ifndef LLVM_CODEGEN_GLOBALISEL_KNOWNBITSINFO_H 14 #define LLVM_CODEGEN_GLOBALISEL_KNOWNBITSINFO_H 40 const APInt &DemandedElts,
68 const APInt &DemandedElts,
97 std::unique_ptr<GISelKnownBits>
Info;
106 Info = std::make_unique<GISelKnownBits>(MF);
A parsed version of the target data layout string in and methods for querying it. ...
void changedInstr(MachineInstr &MI) override
This instruction was mutated in some way.
bool maskedValueIsZero(Register Val, const APInt &Mask)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
This class represents lattice values for constants.
GISelKnownBits(MachineFunction &MF)
bool isSubsetOf(const APInt &RHS) const
This operation checks that all bits set in this APInt are also set in RHS.
virtual ~GISelKnownBits()=default
void initializeGISelKnownBitsAnalysisPass(PassRegistry &)
static MaybeAlign inferPtrAlignment(const MachineInstr &MI)
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
unsigned getMaxDepth() const
unsigned computeNumSignBits(Register R, const APInt &DemandedElts, unsigned Depth=0)
static void computeKnownBitsForAlignment(KnownBits &Known, MaybeAlign Alignment)
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
void computeKnownBitsForFrameIndex(Register R, KnownBits &Known, const APInt &DemandedElts, unsigned Depth=0)
Analysis containing CSE Info
To use KnownBitsInfo analysis in a pass, KnownBitsInfo &Info = getAnalysis<GISelKnownBitsInfoAnalysis...
APInt getKnownZeroes(Register R)
bool signBitIsZero(Register Op)
Abstract class that contains various methods for clients to notify about changes. ...
KnownBits getKnownBits(Register R)
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
Represent the analysis usage information of a pass.
static Align inferAlignmentForFrameIdx(int FrameIdx, int Offset, const MachineFunction &MF)
This struct is a compact representation of a valid (non-zero power of two) alignment.
void createdInstr(MachineInstr &MI) override
An instruction has been created and inserted into the function.
APInt getKnownOnes(Register R)
This struct is a compact representation of a valid (power of two) or undefined (0) alignment...
Class for arbitrary precision integers.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
virtual void computeKnownBitsImpl(Register R, KnownBits &Known, const APInt &DemandedElts, unsigned Depth=0)
void changingInstr(MachineInstr &MI) override
This instruction is about to be mutated in some way.
Representation of each machine instruction.
void setMF(MachineFunction &MF)
void erasingInstr(MachineInstr &MI) override
An instruction is about to be erased.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
This header defines various interfaces for pass management in LLVM.
Wrapper class representing virtual and physical registers.