LLVM: llvm::sandboxir::Utils Class Reference (original) (raw)

#include "[llvm/SandboxIR/Utils.h](SandboxIR%5F2Utils%5F8h%5Fsource.html)"

Static Public Member Functions
static Type * getExpectedType (const Value *V)
\Returns the expected type of Value V.
static Value * getExpectedValue (const Instruction *I)
\Returns the expected Value for this instruction.
template
static Value * getMemInstructionBase (const LoadOrStoreT *LSI)
\Returns the base Value for load or store instruction LSI.
static unsigned getNumBits (Type *Ty, const DataLayout &DL)
\Returns the number of bits of Ty.
static unsigned getNumBits (Value *V, const DataLayout &DL)
\Returns the number of bits required to represent the operands or return value of V in DL.
static unsigned getNumBits (Instruction *I)
\Returns the number of bits required to represent the operands or return value of I.
static std::optional< llvm::MemoryLocation > memoryLocationGetOrNone (const Instruction *I)
Equivalent to MemoryLocation::getOrNone(I).
template
static std::optional< int > getPointerDiffInBytes (LoadOrStoreT *I0, LoadOrStoreT *I1, ScalarEvolution &SE)
\Returns the gap between the memory locations accessed by I0 and I1 in bytes.
template
static bool atLowerAddress (LoadOrStoreT *I0, LoadOrStoreT *I1, ScalarEvolution &SE)
\Returns true if I0 accesses a memory location lower than I1.
static ModRefInfo aliasAnalysisGetModRefInfo (BatchAAResults &BatchAA, const Instruction *I, const std::optional< MemoryLocation > &OptLoc)
Equivalent to BatchAA::getModRefInfo().
static bool verifyFunction (const Function *F, raw_ostream &OS)
Equivalent to llvm::verifyFunction().

Definition at line 27 of file Utils.h.

aliasAnalysisGetModRefInfo()

atLowerAddress()

template

bool llvm::sandboxir::Utils::atLowerAddress ( LoadOrStoreT * I0, LoadOrStoreT * I1, ScalarEvolution & SE ) inlinestatic

getExpectedType()

Type * llvm::sandboxir::Utils::getExpectedType ( const Value * V) inlinestatic

\Returns the expected type of [Value](classllvm%5F1%5F1sandboxir%5F1%5F1Value.html "A SandboxIR Value has users. This is the base class.") V.

For most Values this is equivalent to getType, but for stores returns the stored type, rather than void, and for ReturnInsts returns the returned type.

Definition at line 32 of file Utils.h.

References llvm::dyn_cast(), getExpectedValue(), llvm::sandboxir::Value::getType(), and I.

Referenced by llvm::sandboxir::VecUtils::getCommonScalarType(), getNumBits(), getNumBits(), llvm::sandboxir::VecUtils::getNumLanes(), llvm::sandboxir::isValidMemSeed(), llvm::sandboxir::SeedCollection::runOnFunction(), and llvm::sandboxir::VecUtils::tryGetCommonScalarType().

getExpectedValue()

\Returns the expected Value for this instruction.

For most instructions, this is the instruction itself, but for stores returns the stored operand, and for ReturnInstructions returns the returned value.

Definition at line 47 of file Utils.h.

References llvm::dyn_cast(), and I.

Referenced by getExpectedType().

getMemInstructionBase()

template

Value * llvm::sandboxir::Utils::getMemInstructionBase ( const LoadOrStoreT * LSI) inlinestatic

getNumBits() [1/3]

\Returns the number of bits required to represent the operands or return value of I.

Definition at line 79 of file Utils.h.

References getExpectedType(), and I.

getNumBits() [2/3]

getNumBits() [3/3]

getPointerDiffInBytes()

template

std::optional< int > llvm::sandboxir::Utils::getPointerDiffInBytes ( LoadOrStoreT * I0, LoadOrStoreT * I1, ScalarEvolution & SE ) inlinestatic

memoryLocationGetOrNone()

verifyFunction()


The documentation for this class was generated from the following file: