LLVM API Documentation

Public Member Functions
llvm::ObjectSizeOffsetEvaluator Class Reference

Evaluate the size and offset of an object pointed to by a Value*. May create code to compute the result at run-time. More...

#include <MemoryBuiltins.h>

Inheritance diagram for llvm::ObjectSizeOffsetEvaluator:
Inheritance graph
[legend]
Collaboration diagram for llvm::ObjectSizeOffsetEvaluator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjectSizeOffsetEvaluator (const DataLayout *DL, const TargetLibraryInfo *TLI, LLVMContext &Context, bool RoundToAlign=false)
SizeOffsetEvalType compute (Value *V)
bool knownSize (SizeOffsetEvalType SizeOffset)
bool knownOffset (SizeOffsetEvalType SizeOffset)
bool anyKnown (SizeOffsetEvalType SizeOffset)
bool bothKnown (SizeOffsetEvalType SizeOffset)
SizeOffsetEvalType visitAllocaInst (AllocaInst &I)
SizeOffsetEvalType visitCallSite (CallSite CS)
SizeOffsetEvalType visitExtractElementInst (ExtractElementInst &I)
SizeOffsetEvalType visitExtractValueInst (ExtractValueInst &I)
SizeOffsetEvalType visitGEPOperator (GEPOperator &GEP)
SizeOffsetEvalType visitIntToPtrInst (IntToPtrInst &)
SizeOffsetEvalType visitLoadInst (LoadInst &I)
SizeOffsetEvalType visitPHINode (PHINode &PHI)
SizeOffsetEvalType visitSelectInst (SelectInst &I)
SizeOffsetEvalType visitInstruction (Instruction &I)

Detailed Description

Evaluate the size and offset of an object pointed to by a Value*. May create code to compute the result at run-time.

Definition at line 217 of file MemoryBuiltins.h.


Constructor & Destructor Documentation

Definition at line 592 of file MemoryBuiltins.cpp.


Member Function Documentation

Definition at line 253 of file MemoryBuiltins.h.

References knownOffset(), and knownSize().

Referenced by compute().

Definition at line 257 of file MemoryBuiltins.h.

References knownOffset(), and knownSize().

Referenced by compute(), visitGEPOperator(), visitPHINode(), and visitSelectInst().

Definition at line 249 of file MemoryBuiltins.h.

Referenced by anyKnown(), and bothKnown().

Definition at line 245 of file MemoryBuiltins.h.

Referenced by anyKnown(), and bothKnown().

Reimplemented from llvm::InstVisitor< ObjectSizeOffsetEvaluator, SizeOffsetEvalType >.

Definition at line 806 of file MemoryBuiltins.cpp.

References llvm::dbgs(), and DEBUG.


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