Analysis that computes KnownBits and related facts for GlobalISel.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/GISelValueTracking.h>

class GISelValueTracking
    : public GISelChangeObserver

Description

Clients query known‐zero/one bits, sign bits, alignment, shift amounts, and floating‐point class information for registers in a MachineFunction.

Base Classes

Name

Description

GISelChangeObserver

Abstract base for clients that observe GlobalISel instruction changes.

Member Functions

Name

Description

GISelValueTracking [constructor]

Construct value tracking for machine function MF.

~GISelValueTracking [destructor] [virtual]

Destroy the value tracking analysis.

changedInstr [virtual]

Observe that instruction MI was mutated.

changingAllUsesOfReg

Notify that all instructions using Reg are being changed.

changingInstr [virtual]

Observe that instruction MI is about to be mutated.

computeKnownAlignment

Return the known alignment for the pointer‐like value R.

computeKnownBitsImpl

Compute known bits for register R into Known.

computeKnownFPClass

computeKnownFPClass overloads

computeNumSignBits

Compute the number of sign bits for register R.

createdInstr [virtual]

Observe that instruction MI was created and inserted.

erasingInstr [virtual]

Observe that instruction MI is about to be erased.

finishedChangingAllUsesOfReg

All instructions reported as changing by changingAllUsesOfReg() have finished being changed.

getDataLayout

Return the data layout for the machine function.

getKnownBits

getKnownBits overloads

getKnownOnes

Return the known‐one bits for register R.

getKnownZeroes

Return the known‐zero bits for register R.

getMachineFunction

Return the machine function being analyzed.

getValidMinimumShiftAmount

Return the minimum valid shift amount for shift operand R.

getValidShiftAmountRange

Return the valid constant shift‐amount range for shift operand R.

isKnownNeverNaN

Return true if Val can be assumed to never be a NaN.

isKnownNeverSNaN

Return true if Val can be assumed to never be a signaling NaN.

isKnownNeverZero

Return true if the value defined by R is provably never zero.

maskedValueIsZero

Return true if Val & Mask is known to be zero.

signBitIsZero

Return true if the sign bit of Op is known to be zero.

Static Member Functions

Name

Description

computeKnownBitsForAlignment

Update Known with low zero bits implied by Alignment.

Protected Member Functions

Name

Description

getMaxDepth

Return the maximum recursion depth for known‐bits queries.

Created with MrDocs