LLVM API Documentation

Type.cpp File Reference

#include "LLVMContextImpl.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Constants.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/LLVMContext.h"
#include "llvm/Metadata.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/System/Mutex.h"
#include "llvm/System/RWMutex.h"
#include "llvm/System/Threading.h"
#include <algorithm>
#include <cstdarg>

Include dependency graph for Type.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

struct  llvm::GraphTraits< TypePromotionGraph >

Functions

static bool TypesEqual (const Type *Ty, const Type *Ty2, std::map< const Type *, const Type * > &EqTypes)
static bool TypesEqual (const Type *Ty, const Type *Ty2)
static bool AbstractTypeHasCycleThrough (const Type *TargetTy, const Type *CurTy, SmallPtrSet< const Type *, 128 > &VisitedTypes)
static bool ConcreteTypeHasCycleThrough (const Type *TargetTy, const Type *CurTy, SmallPtrSet< const Type *, 128 > &VisitedTypes)
static bool TypeHasCycleThroughItself (const Type *Ty)
std::ostream & llvm::operator<< (std::ostream &OS, const Type *T)
std::ostream & llvm::operator<< (std::ostream &OS, const Type &T)
raw_ostream & llvm::operator<< (raw_ostream &OS, const Type &T)


Function Documentation

static bool AbstractTypeHasCycleThrough ( const Type *  TargetTy,
const Type *  CurTy,
SmallPtrSet< const Type *, 128 > &  VisitedTypes 
) [static]

static bool ConcreteTypeHasCycleThrough ( const Type *  TargetTy,
const Type *  CurTy,
SmallPtrSet< const Type *, 128 > &  VisitedTypes 
) [static]

static bool TypeHasCycleThroughItself ( const Type *  Ty  )  [static]

TypeHasCycleThroughItself - Return true if the specified type has a cycle back to itself.

Definition at line 708 of file Type.cpp.

References AbstractTypeHasCycleThrough(), ConcreteTypeHasCycleThrough(), llvm::Type::isAbstract(), llvm::Type::subtype_begin(), llvm::Type::subtype_end(), and VisitedTypes.

Referenced by llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::RefineAbstractType().

static bool TypesEqual ( const Type *  Ty,
const Type *  Ty2 
) [static]

Definition at line 668 of file Type.cpp.

References TypesEqual().

static bool TypesEqual ( const Type *  Ty,
const Type *  Ty2,
std::map< const Type *, const Type * > &  EqTypes 
) [static]


Variable Documentation

Type* Ty

Definition at line 526 of file Type.cpp.

Referenced by llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::add(), ByteswapSCANFResults(), calculateFunctionInfo(), llvm::ComputeNumSignBits(), llvm::ConstantFoldCall(), llvm::ConstantFoldGetElementPtr(), llvm::PointerTracking::doInitialization(), llvm::MachOCodeEmitter::emitConstantPool(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitConstantValueOnly(), EvaluateFunction(), llvm::findDbgGlobalDeclare(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::IntegerValType::get(), llvm::PATypeHolder::get(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAllocSizeExpr(), GetConstantPoolSizeInBytes(), llvm::DenseMapInfo< PointerIntPair< PointerTy, IntBits, IntType > >::getEmptyKey(), llvm::ScalarEvolution::getFieldOffsetExpr(), getIndexedTypeInternal(), llvm::MachineFunction::getInfo(), llvm::ScalarEvolution::getNegativeSCEV(), llvm::ScalarEvolution::getNotSCEV(), llvm::ScalarEvolution::getSignedRange(), llvm::DenseMapInfo< PointerIntPair< PointerTy, IntBits, IntType > >::getTombstoneKey(), llvm::ScalarEvolution::getUDivExpr(), llvm::ScalarEvolution::getUnsignedRange(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), LLVMGetParamTypes(), LLVMGetStructElementTypes(), LowerToBSwap(), llvm::MSILWriter::printDeclarations(), llvm::MSILWriter::printIndirectLoad(), llvm::MSILWriter::printLocalVariables(), llvm::MSILWriter::printStaticConstant(), llvm::FunctionLoweringInfo::set(), SRAGlobal(), SymbolicallyEvaluateGEP(), llvm::DIVariable::Verify(), llvm::DIGlobalVariable::Verify(), llvm::DISubprogram::Verify(), llvm::Interpreter::visitAllocationInst(), llvm::Interpreter::visitBinaryOperator(), llvm::Interpreter::visitCallSite(), llvm::Interpreter::visitFCmpInst(), llvm::Interpreter::visitICmpInst(), llvm::Interpreter::visitVAArgInst(), WriteConstants(), and llvm::TypeMapBase::~TypeMapBase().