LLVM API Documentation
#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>
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) |
| static bool AbstractTypeHasCycleThrough | ( | const Type * | TargetTy, | |
| const Type * | CurTy, | |||
| SmallPtrSet< const Type *, 128 > & | VisitedTypes | |||
| ) | [static] |
Definition at line 677 of file Type.cpp.
References llvm::SmallPtrSet< PtrType, SmallSize >::insert(), llvm::Type::isAbstract(), llvm::Type::subtype_begin(), and llvm::Type::subtype_end().
Referenced by TypeHasCycleThroughItself().
| static bool ConcreteTypeHasCycleThrough | ( | const Type * | TargetTy, | |
| const Type * | CurTy, | |||
| SmallPtrSet< const Type *, 128 > & | VisitedTypes | |||
| ) | [static] |
Definition at line 692 of file Type.cpp.
References llvm::SmallPtrSet< PtrType, SmallSize >::insert(), llvm::Type::subtype_begin(), and llvm::Type::subtype_end().
Referenced by TypeHasCycleThroughItself().
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, | |||
| std::map< const Type *, const Type * > & | EqTypes | |||
| ) | [static] |
Definition at line 609 of file Type.cpp.
References llvm::PointerType::getAddressSpace(), llvm::IntegerType::getBitWidth(), llvm::StructType::getElementType(), llvm::SequentialType::getElementType(), llvm::VectorType::getNumElements(), llvm::ArrayType::getNumElements(), llvm::StructType::getNumElements(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getParamType(), llvm::FunctionType::getReturnType(), llvm::Type::getTypeID(), llvm::StructType::isPacked(), llvm::FunctionType::isVarArg(), and llvm_unreachable.
Referenced by llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::RefineAbstractType(), and TypesEqual().
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().