13 #ifndef LLVM_LIB_TARGET_ARM_ARMBASICBLOCKINFO_H 14 #define LLVM_LIB_TARGET_ARM_ARMBASICBLOCKINFO_H 24 struct BasicBlockInfo;
34 if (KnownBits <
Log2(Alignment))
35 return Alignment.
value() - (1ull << KnownBits);
82 if (Size & ((1u << Bits) - 1))
91 unsigned PO = Offset +
Size;
127 computeBlockSize(&MBB);
145 unsigned MaxDisp)
const;
159 #endif // LLVM_LIB_TARGET_ARM_ARMBASICBLOCKINFO_H unsigned Log2(Align A)
Returns the log2 of the alignment.
unsigned postOffset(Align Alignment=Align::None()) const
Compute the offset immediately following this block.
This class represents lattice values for constants.
unsigned postKnownBits(Align Align=Align::None()) const
Compute the number of known low bits of postOffset.
unsigned getNumBlockIDs() const
getNumBlockIDs - Return the number of MBB ID's allocated.
ARMBasicBlockUtils(MachineFunction &MF)
unsigned Offset
Offset - Distance from the beginning of the function to the beginning of this basic block...
static bool isThumb(const MCSubtargetInfo &STI)
BasicBlockInfo - Information about the offset and size of a single basic block.
unsigned countTrailingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the least significant bit to the most stopping at the first 1...
const HexagonInstrInfo * TII
unsigned UnknownPadding(Align Alignment, unsigned KnownBits)
UnknownPadding - Return the worst case padding that could result from unknown offset bits...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
BBInfoVector & getBBInfo()
void computeAllBlockSizes()
static bool isThumbFunction(Function *F, Triple::ArchType ModuleArch)
void insert(unsigned BBNum, BasicBlockInfo BBI)
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
virtual const TargetInstrInfo * getInstrInfo() const
uint64_t value() const
This is a hole in the type system and should not be abused.
void adjustBBSize(MachineBasicBlock *MBB, int Size)
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
unsigned internalKnownBits() const
Compute the number of known offset bits internally to this block.
Align PostAlign
PostAlign - When > 1, the block terminator contains a .align directive, so the end of the block is al...
static constexpr const Align None()
Returns a default constructed Align which corresponds to no alignment.
This struct is a compact representation of a valid (non-zero power of two) alignment.
Align max(MaybeAlign Lhs, Align Rhs)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
unsigned getOffsetOf(MachineBasicBlock *MBB) const
unsigned Size
Size - Size of the basic block in bytes.
iterator insert(iterator I, T &&Elt)
Representation of each machine instruction.
uint8_t Unalign
Unalign - When non-zero, the block contains instructions (inline asm) of unknown size.
ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific in...
uint8_t KnownBits
KnownBits - The number of low bits in Offset that are known to be exact.