LLVM API Documentation
List of target independent CodeGen pass IDs. More...
List of target independent CodeGen pass IDs.
Specialize WriteGraph, the standard implementation won't work.
SSAUpdaterTraits<MachineSSAUpdater> - Traits for the SSAUpdaterImpl template, specialized for MachineSSAUpdater.
typedef const void* llvm::AnalysisID |
The standard BumpPtrAllocator which just uses the default template paramaters.
Definition at line 354 of file Allocator.h.
typedef bool llvm::CCAssignFn(unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State) |
CCAssignFn - This function assigns a location for Val, updating State to reflect the change. It returns 'true' if it failed to handle Val.
Definition at line 153 of file CallingConvLower.h.
typedef bool llvm::CCCustomFn(unsigned &ValNo, MVT &ValVT, MVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State) |
CCCustomFn - This function assigns a location for Val, possibly updating all args to reflect changes and indicates if it handled it. It must set isCustom if it handles the arg and returns true.
Definition at line 160 of file CallingConvLower.h.
typedef InstIterator<const iplist<BasicBlock>, Function::const_iterator, BasicBlock::const_iterator, const Instruction> llvm::const_inst_iterator |
Definition at line 126 of file InstIterator.h.
typedef DITypedArray<DIDescriptor> llvm::DIArray |
Definition at line 191 of file DebugInfo.h.
typedef SmallVector<std::pair<uint64_t, DILineInfo>, 16> llvm::DILineInfoTable |
Definition at line 50 of file DIContext.h.
typedef DIRef<DIScope> llvm::DIScopeRef |
Definition at line 208 of file DebugInfo.h.
typedef DITypedArray<DITypeRef> llvm::DITypeArray |
Definition at line 211 of file DebugInfo.h.
typedef DenseMap<const MDString *, MDNode *> llvm::DITypeIdentifierMap |
Maps from type identifier to the actual MDNode.
Definition at line 53 of file DebugInfo.h.
typedef DIRef<DIType> llvm::DITypeRef |
Definition at line 210 of file DebugInfo.h.
typedef DenseMap<DivOpInfo, DivPhiNodes> llvm::DivCacheTy |
Definition at line 71 of file BypassSlowDivision.cpp.
typedef DomTreeNodeBase<BasicBlock> llvm::DomTreeNode |
Definition at line 47 of file Dominators.h.
typedef std::vector<std::pair<uint64_t, uint64_t> > llvm::DWARFAddressRangesVector |
DWARFAddressRangesVector - represents a set of absolute address ranges.
Definition at line 18 of file DWARFDebugRangeList.h.
typedef void(* llvm::fatal_error_handler_t)(void *user_data, const std::string &reason, bool gen_crash_diag) |
An error handler callback.
Definition at line 26 of file ErrorHandling.h.
Definition at line 351 of file FoldingSet.h.
Definition at line 235 of file IntervalIterator.h.
GCMetadataPrinterRegistry - The GC assembly printer registry uses all the defaults from Registry.
Definition at line 29 of file GCMetadataPrinter.h.
typedef Registry<GCStrategy> llvm::GCRegistry |
The GC strategy registry uses all the defaults from Registry.
Definition at line 46 of file GCStrategy.h.
Definition at line 83 of file GetElementPtrTypeIterator.h.
typedef bool llvm::Hexagon_CCAssignFn(unsigned ValNo, EVT ValVT, EVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, Hexagon_CCState &State, int NonVarArgsParams, int CurrentParam, bool ForceMem) |
Hexagon_CCAssignFn - This function assigns a location for Val, updating State to reflect the change.
Definition at line 35 of file HexagonCallingConvLower.h.
typedef std::pair<SlotIndex, MachineBasicBlock*> llvm::IdxMBBPair |
Definition at line 315 of file SlotIndexes.h.
typedef std::pair<const MachineInstr *, const MachineInstr *> llvm::InsnRange |
InsnRange - This is used to track range of instructions with identical lexical scope.
Definition at line 34 of file LexicalScopes.h.
typedef InstIterator<iplist<BasicBlock>, Function::iterator, BasicBlock::iterator, Instruction> llvm::inst_iterator |
Definition at line 122 of file InstIterator.h.
Definition at line 259 of file InstrProfReader.h.
typedef uint64_t llvm::integerPart |
Definition at line 237 of file IntervalIterator.h.
typedef AtomicSDNode llvm::LargestSDNode |
LargestSDNode - The largest SDNode class.
Definition at line 2019 of file SelectionDAGNodes.h.
typedef SparseBitVector<128> llvm::LiveVirtRegBitSet |
Definition at line 29 of file LiveIntervalUnion.h.
Definition at line 731 of file ScalarEvolutionExpressions.h.
Definition at line 35 of file MachineDominators.h.
typedef void*(* llvm::MachinePassCtor)() |
Definition at line 26 of file MachinePassRegistry.h.
Definition at line 200 of file MCLinkerOptimizationHint.h.
Definition at line 201 of file MCLinkerOptimizationHint.h.
typedef uint16_t llvm::MCPhysReg |
An unsigned integer type large enough to represent all physical registers, but not necessarily virtual registers.
Definition at line 27 of file MCRegisterInfo.h.
typedef std::pair<const MCSection *, const MCExpr *> llvm::MCSectionSubPair |
Definition at line 43 of file MCStreamer.h.
MostAlignedSDNode - The SDNode class with the greatest alignment requirement.
Definition at line 2024 of file SelectionDAGNodes.h.
typedef SmallVectorImpl<std::unique_ptr<MCParsedAsmOperand> > llvm::OperandVector |
Definition at line 26 of file MCTargetAsmParser.h.
Definition at line 31 of file RegAllocPBQP.h.
typedef void* llvm::PointerTy |
Definition at line 23 of file GenericValue.h.
typedef SmallPtrSet<const Loop *, 2> llvm::PostIncLoopSet |
PostIncLoopSet - A set of loops.
Definition at line 64 of file ScalarEvolutionNormalization.h.
typedef RawInstrProfReader<uint32_t> llvm::RawInstrProfReader32 |
Definition at line 199 of file InstrProfReader.h.
typedef RawInstrProfReader<uint64_t> llvm::RawInstrProfReader64 |
Definition at line 200 of file InstrProfReader.h.
typedef SparseMultiSet<PhysRegSUOper, llvm::identity<unsigned>, uint16_t> llvm::Reg2SUnitsMap |
Use a SparseMultiSet to track physical registers. Storage is only allocated once for the pass. It can be cleared in constant time and reused without any frees.
Definition at line 61 of file ScheduleDAGInstrs.h.
typedef DenseMap< uint64_t, std::pair< uint8_t, int64_t > > llvm::RelocAddrMap |
Definition at line 114 of file DIContext.h.
typedef DenseMap<const MCSectionData*, uint64_t> llvm::SectionAddrMap |
typedef std::pair<Value*, Value*> llvm::SizeOffsetEvalType |
Definition at line 212 of file MemoryBuiltins.h.
typedef std::pair<APInt, APInt> llvm::SizeOffsetType |
Definition at line 155 of file MemoryBuiltins.h.
typedef std::bitset<NumStratifiedAttrs> llvm::StratifiedAttrs |
Definition at line 48 of file StratifiedSets.h.
typedef unsigned llvm::StratifiedIndex |
Definition at line 29 of file StratifiedSets.h.
typedef SuccIterator<TerminatorInst*, BasicBlock> llvm::succ_iterator |
typedef bool llvm::TableGenMainFn(raw_ostream &OS, RecordKeeper &Records) |
typedef std::vector<UseListOrder> llvm::UseListOrderStack |
Definition at line 52 of file UseListOrder.h.
typedef StringMapEntry<Value*> llvm::ValueName |
typedef std::vector<GenericValue> llvm::ValuePlaneTy |
Definition at line 60 of file lib/ExecutionEngine/Interpreter/Interpreter.h.
typedef DenseMap<const Value*, Value*> llvm::ValueToValueMap |
Definition at line 634 of file ScalarEvolutionExpressions.h.
typedef ValueMap<const Value *, WeakVH> llvm::ValueToValueMapTy |
Definition at line 22 of file ValueMapper.h.
Use SparseSet as a SparseMap by relying on the fact that it never compares ValueT's, only unsigned keys. This allows the set to be cleared between scheduling regions in constant time as long as ValueT does not require a destructor.
Definition at line 67 of file ScheduleDAGInstrs.h.
Track local uses of virtual registers. These uses are gathered by the DAG builder and may be consulted by the scheduler to avoid iterating an entire vreg use list.
Definition at line 72 of file ScheduleDAGInstrs.h.
anonymous enum |
Definition at line 29 of file X86ShuffleDecode.h.
anonymous enum |
Definition at line 23 of file MCELFSymbolFlags.h.
Use to report the frame offset status in isAArch64FrameOffsetLegal.
AArch64FrameOffsetCannotUpdate |
Offset cannot apply. |
AArch64FrameOffsetIsLegal |
Offset is legal. |
AArch64FrameOffsetCanUpdate |
Offset can apply, at least partly. |
Definition at line 212 of file AArch64InstrInfo.h.
enum llvm::AddressSpace |
ADDRESS_SPACE_GENERIC | |
ADDRESS_SPACE_GLOBAL | |
ADDRESS_SPACE_SHARED | |
ADDRESS_SPACE_CONST | |
ADDRESS_SPACE_LOCAL | |
ADDRESS_SPACE_PARAM |
Definition at line 22 of file NVPTXBaseInfo.h.
enum llvm::AlignTypeEnum |
Enum used to categorize the alignment types stored by LayoutAlignElem.
INVALID_ALIGN |
An invalid alignment. |
INTEGER_ALIGN |
Integer type alignment. |
VECTOR_ALIGN |
Vector type alignment. |
FLOAT_ALIGN |
Floating point type alignment. |
AGGREGATE_ALIGN |
Aggregate alignment. |
Definition at line 47 of file DataLayout.h.
enum llvm::AsmRewriteKind |
AOK_Delete | |
AOK_Align | |
AOK_DotOperator | |
AOK_Emit | |
AOK_Imm | |
AOK_ImmPrefix | |
AOK_Input | |
AOK_Output | |
AOK_SizeDirective | |
AOK_Skip |
Definition at line 30 of file MCTargetAsmParser.h.
enum llvm::AtomicOrdering |
Definition at line 37 of file Instructions.h.
enum llvm::BitcodeError |
Definition at line 144 of file ReaderWriter.h.
enum llvm::CombineLevel |
Definition at line 16 of file DAGCombine.h.
enum llvm::DiagnosticKind |
Defines the different supported kind of a diagnostic. This enum should be extended with a new ID for each added concrete subclass.
DK_InlineAsm | |
DK_StackSize | |
DK_DebugMetadataVersion | |
DK_SampleProfile | |
DK_OptimizationRemark | |
DK_OptimizationRemarkMissed | |
DK_OptimizationRemarkAnalysis | |
DK_OptimizationFailure | |
DK_FirstPluginKind |
Definition at line 47 of file DiagnosticInfo.h.
Defines the different supported severity of a diagnostic.
Definition at line 36 of file DiagnosticInfo.h.
enum llvm::DIDumpType |
Selects which debug sections get dumped.
Definition at line 84 of file DIContext.h.
enum llvm::ELFSymbolFlags |
Definition at line 30 of file MCELFSymbolFlags.h.
enum llvm::errc |
None | |
DwarfCFI |
No exception support. |
SjLj |
DWARF-like instruction based exceptions. |
ARM |
setjmp/longjmp based exceptions |
WinEH |
ARM EHABI. |
Definition at line 44 of file MCAsmInfo.h.
success | |
eof | |
bad_magic | |
bad_header | |
unsupported_version | |
unsupported_hash_type | |
too_large | |
truncated | |
malformed | |
unknown_function | |
hash_mismatch | |
count_mismatch | |
counter_overflow |
Definition at line 24 of file InstrProf.h.
enum llvm::IntrinsicType |
INTR_NO_TYPE | |
GATHER | |
SCATTER | |
PREFETCH | |
RDSEED | |
RDRAND | |
RDPMC | |
RDTSC | |
XTEST | |
ADX | |
INTR_TYPE_1OP | |
INTR_TYPE_2OP | |
INTR_TYPE_3OP | |
VSHIFT | |
COMI |
Definition at line 19 of file X86IntrinsicsInfo.h.
enum llvm::LLVMConstants |
Definition at line 33 of file Metadata.h.
enum llvm::lostFraction |
MachOSymbolFlags - We store the value for the 'desc' symbol field in the lowest 16 bits of the implementation defined flags.
Definition at line 24 of file MCMachOSymbolFlags.h.
MCDR_DataRegion |
.data_region |
MCDR_DataRegionJT8 |
.data_region jt8 |
MCDR_DataRegionJT16 |
.data_region jt16 |
MCDR_DataRegionJT32 |
.data_region jt32 |
MCDR_DataRegionEnd |
.end_data_region |
Definition at line 55 of file MCDirectives.h.
enum llvm::MCFixupKind |
MCFixupKind - Extensible enumeration to represent the type of a fixup.
enum llvm::MCLOHType |
Linker Optimization Hint Type.
Definition at line 33 of file MCLinkerOptimizationHint.h.
enum llvm::MCSymbolAttr |
MCSA_Invalid |
Not a valid directive. |
MCSA_ELF_TypeFunction |
.type _foo, STT_FUNC # aka |
MCSA_ELF_TypeIndFunction |
.type _foo, STT_GNU_IFUNC |
MCSA_ELF_TypeObject |
.type _foo, STT_OBJECT # aka |
MCSA_ELF_TypeTLS |
.type _foo, STT_TLS # aka |
MCSA_ELF_TypeCommon |
.type _foo, STT_COMMON # aka |
MCSA_ELF_TypeNoType |
.type _foo, STT_NOTYPE # aka |
MCSA_ELF_TypeGnuUniqueObject | |
MCSA_Global |
.type _foo, .globl |
MCSA_Hidden |
.hidden (ELF) |
MCSA_IndirectSymbol |
.indirect_symbol (MachO) |
MCSA_Internal |
.internal (ELF) |
MCSA_LazyReference |
.lazy_reference (MachO) |
MCSA_Local |
.local (ELF) |
MCSA_NoDeadStrip |
.no_dead_strip (MachO) |
MCSA_SymbolResolver |
.symbol_resolver (MachO) |
MCSA_PrivateExtern |
.private_extern (MachO) |
MCSA_Protected |
.protected (ELF) |
MCSA_Reference |
.reference (MachO) |
MCSA_Weak |
.weak |
MCSA_WeakDefinition |
.weak_definition (MachO) |
MCSA_WeakReference |
.weak_reference (MachO) |
MCSA_WeakDefAutoPrivate |
.weak_def_can_be_hidden (MachO) |
Definition at line 19 of file MCDirectives.h.
Definition at line 63 of file MCDirectives.h.
enum llvm::NEONModImmType |
Definition at line 607 of file ARMISelLowering.h.
enum llvm::NoneType |
enum llvm::ParmContext |
ParmContext - This enum tracks whether calling convention lowering is in the context of prologue or call generation. Not all backends make use of this information.
Definition at line 167 of file CallingConvLower.h.
EXECUTION_MSG | |
MODIFICATION_MSG | |
FREEING_MSG | |
ON_BASICBLOCK_MSG | |
ON_FUNCTION_MSG | |
ON_MODULE_MSG | |
ON_REGION_MSG | |
ON_LOOP_MSG | |
ON_CG_MSG |
Definition at line 103 of file LegacyPassManagers.h.
enum llvm::PassKind |
Different types of internal pass managers. External pass managers (PassManager and FunctionPassManager) are not represented here. Ordering of pass manager types is important here.
Definition at line 33 of file NVPTXBaseInfo.h.
enum llvm::RemapFlags |
RemapFlags - These are flags that the value mapping APIs allow.
Definition at line 51 of file ValueMapper.h.
enum llvm::SCEVTypes |
scConstant | |
scTruncate | |
scZeroExtend | |
scSignExtend | |
scAddExpr | |
scMulExpr | |
scUDivExpr | |
scAddRecExpr | |
scUMaxExpr | |
scSMaxExpr | |
scUnknown | |
scCouldNotCompute |
Definition at line 27 of file ScalarEvolutionExpressions.h.
SelectPatternFlavor - We can match a variety of different patterns for select operations.
Definition at line 38 of file InstCombine.h.
Definition at line 48 of file Instructions.h.
enum llvm::TransformKind |
TransformKind - Different types of transformations that TransformForPostIncUse can do.
Definition at line 52 of file ScalarEvolutionNormalization.h.
enum llvm::ZeroBehavior |
The behavior an operation has on an input of 0.
ZB_Undefined |
The returned value is undefined. |
ZB_Max |
The returned value is numeric_limits<T>::max() |
ZB_Width |
The returned value is numeric_limits<T>::digits. |
Definition at line 30 of file MathExtras.h.
void llvm::__deregister_frame | ( | void * | p | ) |
Definition at line 63 of file RTDyldMemoryManager.cpp.
References llvm::sys::DynamicLibrary::SearchForAddressOfSymbol().
Referenced by llvm::RTDyldMemoryManager::deregisterEHFrames().
void llvm::__register_frame | ( | void * | p | ) |
Definition at line 50 of file RTDyldMemoryManager.cpp.
References llvm::sys::DynamicLibrary::SearchForAddressOfSymbol().
Referenced by llvm::RTDyldMemoryManager::registerEHFrames().
static AArch64Layout::VectorLayout llvm::AArch64StringToVectorLayout | ( | StringRef | LayoutStr | ) | [inline, static] |
Definition at line 512 of file AArch64BaseInfo.h.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), llvm::AArch64Layout::Invalid, llvm::AArch64Layout::VL_16B, llvm::AArch64Layout::VL_1D, llvm::AArch64Layout::VL_2D, llvm::AArch64Layout::VL_2S, llvm::AArch64Layout::VL_4H, llvm::AArch64Layout::VL_4S, llvm::AArch64Layout::VL_8B, llvm::AArch64Layout::VL_8H, llvm::AArch64Layout::VL_B, llvm::AArch64Layout::VL_D, llvm::AArch64Layout::VL_H, and llvm::AArch64Layout::VL_S.
static const char* llvm::AArch64VectorLayoutToString | ( | AArch64Layout::VectorLayout | Layout | ) | [inline, static] |
Definition at line 493 of file AArch64BaseInfo.h.
References llvm_unreachable, llvm::AArch64Layout::VL_16B, llvm::AArch64Layout::VL_1D, llvm::AArch64Layout::VL_2D, llvm::AArch64Layout::VL_2S, llvm::AArch64Layout::VL_4H, llvm::AArch64Layout::VL_4S, llvm::AArch64Layout::VL_8B, llvm::AArch64Layout::VL_8H, llvm::AArch64Layout::VL_B, llvm::AArch64Layout::VL_D, llvm::AArch64Layout::VL_H, and llvm::AArch64Layout::VL_S.
int64_t llvm::abs64 | ( | int64_t | x | ) | [inline] |
abs64 - absolute value of a 64-bit int. Not all environments support "abs" on whatever their name for the 64-bit int type is. The absolute value of the largest negative number is undefined, as with "abs".
Definition at line 614 of file MathExtras.h.
Referenced by getNewAlignmentDiff(), llvm::ARMTargetLowering::isLegalAddImmediate(), and llvm::ARMTargetLowering::isLegalICmpImmediate().
void llvm::AddCatchInfo | ( | const CallInst & | I, |
MachineModuleInfo * | MMI, | ||
MachineBasicBlock * | MBB | ||
) |
AddCatchInfo - Extract the personality and type infos from an eh.selector call, and add them to the specified machine basic block.
Definition at line 453 of file FunctionLoweringInfo.cpp.
References llvm::MachineModuleInfo::addCatchTypeInfo(), llvm::MachineModuleInfo::addCleanup(), llvm::MachineModuleInfo::addFilterTypeInfo(), llvm::MachineModuleInfo::addPersonality(), llvm::WinEH::CE, ExtractTypeInfo(), llvm::CallInst::getArgOperand(), llvm::CallInst::getNumArgOperands(), llvm::ConstantExpr::getOpcode(), llvm::User::getOperand(), and N.
static const MachineInstrBuilder& llvm::addConstantPoolReference | ( | const MachineInstrBuilder & | MIB, |
unsigned | CPI, | ||
unsigned | GlobalBaseReg, | ||
unsigned char | OpFlags | ||
) | [inline, static] |
addConstantPoolReference - This function is used to add a reference to the base of a constant value spilled to the per-function constant pool. The reference uses the abstract ConstantPoolIndex which is retained until either machine code emission or assembly output. In PIC mode on x86-32, the GlobalBaseReg parameter can be used to make this a GlobalBaseReg-relative reference.
Definition at line 175 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addConstantPoolIndex(), llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
static const MachineInstrBuilder& llvm::AddDefaultCC | ( | const MachineInstrBuilder & | MIB | ) | [inline, static] |
Definition at line 387 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addReg().
Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::ARMBaseInstrInfo::copyPhysReg(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), llvm::ARMFrameLowering::emitPrologue(), emitT2RegPlusImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), and llvm::ARMBaseInstrInfo::optimizeSelect().
static const MachineInstrBuilder& llvm::AddDefaultPred | ( | const MachineInstrBuilder & | MIB | ) | [inline, static] |
Definition at line 382 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), and llvm::ARMCC::AL.
Referenced by llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::Thumb2InstrInfo::copyPhysReg(), llvm::ARMBaseInstrInfo::copyPhysReg(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), emitPostLd(), emitPostSt(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), emitT2RegPlusImmediate(), emitThumbConstant(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), llvm::ARMBaseInstrInfo::expandLoadStackGuardBase(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1RegisterInfo::rewriteFrameIndex(), rewriteT2FrameIndex(), llvm::Thumb1RegisterInfo::saveScavengerRegister(), llvm::ARMBaseInstrInfo::setExecutionDomain(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), and llvm::ARMBaseInstrInfo::storeRegToStackSlot().
static const MachineInstrBuilder& llvm::AddDefaultT1CC | ( | const MachineInstrBuilder & | MIB, |
bool | isDead = false |
||
) | [inline, static] |
Definition at line 392 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addReg(), getDeadRegState(), and getDefRegState().
Referenced by emitPostLd(), emitPostSt(), emitThumbConstant(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), and llvm::Thumb1RegisterInfo::rewriteFrameIndex().
static const MachineInstrBuilder& llvm::addDirectMem | ( | const MachineInstrBuilder & | MIB, |
unsigned | Reg | ||
) | [inline, static] |
addDirectMem - This function is used to add a direct memory reference to the current instruction -- that is, a dereference of an address in a register, with no scale, index or displacement. An example is: DWORD PTR [EAX].
Definition at line 91 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
static const MachineInstrBuilder& llvm::addFrameReference | ( | const MachineInstrBuilder & | MIB, |
int | FI | ||
) | [inline, static] |
Add a BDX memory reference for frame object FI to MIB.
Definition at line 27 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::MachineInstr::getDesc(), llvm::PseudoSourceValue::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MCInstrDesc::mayLoad(), llvm::MCInstrDesc::mayStore(), llvm::AArch64CC::MI, llvm::MachineMemOperand::MOLoad, and llvm::MachineMemOperand::MOStore.
static const MachineInstrBuilder& llvm::addFrameReference | ( | const MachineInstrBuilder & | MIB, |
int | FI, | ||
int | Offset = 0 , |
||
bool | mem = true |
||
) | [inline, static] |
addFrameReference - This function is used to add a reference to the base of an abstract object on the stack frame of the current function. This reference has base register as the FrameIndex offset until it is resolved. This allows a constant offset to be specified as well...
Definition at line 33 of file PPCInstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), and llvm::MachineInstrBuilder::addImm().
Referenced by llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), restoreCRs(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), and llvm::SystemZInstrInfo::storeRegToStackSlot().
static const MachineInstrBuilder& llvm::addFrameReference | ( | const MachineInstrBuilder & | MIB, |
int | FI, | ||
int | Offset = 0 |
||
) | [inline, static] |
addFrameReference - This function is used to add a reference to the base of an abstract object on the stack frame of the current function. This reference has base register as the FrameIndex offset until it is resolved. This allows a constant offset to be specified as well...
Definition at line 149 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), addOffset(), llvm::MachineInstr::getDesc(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MCInstrDesc::mayLoad(), llvm::MCInstrDesc::mayStore(), llvm::AArch64CC::MI, llvm::MachineMemOperand::MOLoad, and llvm::MachineMemOperand::MOStore.
static const MachineInstrBuilder& llvm::addFullAddress | ( | const MachineInstrBuilder & | MIB, |
const X86AddressMode & | AM | ||
) | [inline, static] |
Definition at line 123 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addGlobalAddress(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::X86AddressMode::Base, llvm::X86AddressMode::BaseType, llvm::X86AddressMode::Disp, llvm::X86AddressMode::FrameIndex, llvm::X86AddressMode::FrameIndexBase, llvm::X86AddressMode::GV, llvm::X86AddressMode::GVOpFlags, llvm::X86AddressMode::IndexReg, llvm::X86AddressMode::Reg, llvm::X86AddressMode::RegBase, and llvm::X86AddressMode::Scale.
void llvm::AddLandingPadInfo | ( | const LandingPadInst & | I, |
MachineModuleInfo & | MMI, | ||
MachineBasicBlock * | MBB | ||
) |
AddLandingPadInfo - Extract the exception handling information from the landingpad instruction and add them to the specified machine module info.
Definition at line 507 of file FunctionLoweringInfo.cpp.
References llvm::MachineModuleInfo::addCatchTypeInfo(), llvm::MachineModuleInfo::addCleanup(), llvm::MachineModuleInfo::addFilterTypeInfo(), llvm::MachineModuleInfo::addPersonality(), llvm::LandingPadInst::getClause(), llvm::LandingPadInst::getNumClauses(), llvm::LandingPadInst::getPersonalityFn(), llvm::ARM_PROC::IE, llvm::LandingPadInst::isCatch(), llvm::LandingPadInst::isCleanup(), llvm::User::op_begin(), llvm::User::op_end(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and llvm::Value::stripPointerCasts().
void llvm::addNodeToInterval | ( | Interval * | Int, |
BasicBlock * | BB | ||
) | [inline] |
Definition at line 68 of file IntervalIterator.h.
References llvm::Interval::Nodes.
void llvm::addNodeToInterval | ( | Interval * | Int, |
Interval * | I | ||
) | [inline] |
Definition at line 79 of file IntervalIterator.h.
References llvm::Interval::Nodes.
static const MachineInstrBuilder& llvm::AddNoT1CC | ( | const MachineInstrBuilder & | MIB | ) | [inline, static] |
Definition at line 398 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addReg().
static const MachineInstrBuilder& llvm::addOffset | ( | const MachineInstrBuilder & | MIB, |
int | Offset | ||
) | [inline, static] |
Definition at line 99 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
Referenced by addFrameReference(), addRegOffset(), FuseInst(), FuseTwoAddrInst(), and MakeM0Inst().
static Constant* llvm::AddOne | ( | Constant * | C | ) | [inline, static] |
AddOne - Add one to a Constant.
Definition at line 63 of file InstCombine.h.
References llvm::ConstantInt::get(), llvm::ConstantExpr::getAdd(), and llvm::Value::getType().
Referenced by llvm::InstCombiner::FoldAndOfICmps(), llvm::InstCombiner::FoldICmpDivCst(), llvm::InstCombiner::FoldOrOfICmps(), llvm::ScalarEvolution::getAddExpr(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), and llvm::InstCombiner::visitSub().
static void llvm::addRegDescribedVar | ( | RegDescribedVarsMap & | RegVars, |
unsigned | RegNo, | ||
const MDNode * | Var | ||
) | [static] |
Definition at line 92 of file DbgValueHistoryCalculator.cpp.
Referenced by calculateDbgValueHistory().
static const MachineInstrBuilder& llvm::addRegOffset | ( | const MachineInstrBuilder & | MIB, |
unsigned | Reg, | ||
bool | isKill, | ||
int | Offset | ||
) | [inline, static] |
addRegOffset - This function is used to add a memory reference of the form [Reg + Offset], i.e., one with no scale or index, but with a displacement. An example is: DWORD PTR [EAX + 4].
Definition at line 108 of file X86InstrBuilder.h.
References addOffset(), llvm::MachineInstrBuilder::addReg(), and getKillRegState().
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), and emitSPUpdate().
static const MachineInstrBuilder& llvm::addRegReg | ( | const MachineInstrBuilder & | MIB, |
unsigned | Reg1, | ||
bool | isKill1, | ||
unsigned | Reg2, | ||
bool | isKill2 | ||
) | [inline, static] |
addRegReg - This function is used to add a memory reference of the form: [Reg + Reg].
Definition at line 115 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), and getKillRegState().
uintptr_t llvm::alignAddr | ( | void * | Addr, |
size_t | Alignment | ||
) | [inline] |
Aligns Addr
to Alignment
bytes, rounding up.
Alignment should be a power of two. This method rounds up, so alignAddr(7, 4) == 8 and alignAddr(8, 4) == 8.
Definition at line 557 of file MathExtras.h.
References isPowerOf2_64().
Referenced by alignmentAdjustment(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), and llvm::SpecificBumpPtrAllocator< SCC >::DestroyAll().
size_t llvm::alignmentAdjustment | ( | void * | Ptr, |
size_t | Alignment | ||
) | [inline] |
Returns the necessary adjustment for aligning Ptr
to Alignment
bytes, rounding up.
Definition at line 568 of file MathExtras.h.
References alignAddr().
Referenced by llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate().
unsigned llvm::alignOf | ( | ) | [inline] |
alignOf - A templated function that returns the minimum alignment of of a type. This provides no extra functionality beyond the AlignOf class besides some cosmetic cleanliness. Example usage: alignOf<int>() returns the alignment of an int.
void llvm::appendToGlobalCtors | ( | Module & | M, |
Function * | F, | ||
int | Priority | ||
) |
Append F to the list of global ctors of module M with the given Priority. This wraps the function in the appropriate structure and stores it along side other global constructors. For details see http://llvm.org/docs/LangRef.html#intg_global_ctors
Definition at line 72 of file ModuleUtils.cpp.
References appendToGlobalArray().
void llvm::appendToGlobalDtors | ( | Module & | M, |
Function * | F, | ||
int | Priority | ||
) |
Same as appendToGlobalCtors(), but for global dtors.
Definition at line 76 of file ModuleUtils.cpp.
References appendToGlobalArray().
static const SCEV* llvm::apply | ( | const SCEV * | Scev, |
LoopToScevMapT & | Map, | ||
ScalarEvolution & | SE | ||
) | [inline, static] |
Applies the Map (Loop -> SCEV) to the given Scev.
Definition at line 827 of file ScalarEvolutionExpressions.h.
References llvm::SCEVApplyRewriter::rewrite().
static uint16_t llvm::applyPPCha | ( | uint64_t | value | ) | [inline, static] |
Definition at line 726 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPChi | ( | uint64_t | value | ) | [inline, static] |
Definition at line 722 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPChigher | ( | uint64_t | value | ) | [inline, static] |
Definition at line 730 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPChighera | ( | uint64_t | value | ) | [inline, static] |
Definition at line 734 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPChighest | ( | uint64_t | value | ) | [inline, static] |
Definition at line 738 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPChighesta | ( | uint64_t | value | ) | [inline, static] |
Definition at line 742 of file RuntimeDyldELF.cpp.
static uint16_t llvm::applyPPClo | ( | uint64_t | value | ) | [inline, static] |
Definition at line 720 of file RuntimeDyldELF.cpp.
static void llvm::applyToClobberedRegisters | ( | const MachineInstr & | MI, |
const TargetRegisterInfo * | TRI, | ||
Callable | Func | ||
) | [static] |
Definition at line 124 of file DbgValueHistoryCalculator.cpp.
References llvm::MCRegAliasIterator::isValid(), and llvm::MachineInstr::operands().
Referenced by calculateDbgValueHistory(), and collectChangingRegs().
static const char* llvm::ARMCondCodeToString | ( | ARMCC::CondCodes | CC | ) | [inline, static] |
Definition at line 68 of file ARMBaseInfo.h.
References llvm::ARMCC::AL, llvm::ARMCC::EQ, llvm::ARMCC::GE, llvm::ARMCC::GT, llvm::ARMCC::HI, llvm::ARMCC::HS, llvm::ARMCC::LE, llvm_unreachable, llvm::ARMCC::LO, llvm::ARMCC::LS, llvm::ARMCC::LT, llvm::ARMCC::MI, llvm::ARMCC::NE, llvm::ARMCC::PL, llvm::ARMCC::VC, and llvm::ARMCC::VS.
Referenced by llvm::ARMInstPrinter::printMandatoryPredicateOperand(), and llvm::ARMInstPrinter::printPredicateOperand().
LLVM_CONSTEXPR size_t llvm::array_lengthof | ( | T(&) | [N] | ) | [inline] |
Find the length of an array.
Definition at line 295 of file STLExtras.h.
References N.
Referenced by llvm::AArch64TargetLowering::AArch64TargetLowering(), llvm::TargetLoweringBase::addRegisterClass(), AnalyzeArguments(), llvm::ARMBaseInstrInfo::ARMBaseInstrInfo(), llvm::AtomicSDNode::AtomicSDNode(), canLowerByDroppingEvenElements(), CC_PPC32_SVR4_Custom_AlignArgRegs(), CC_PPC32_SVR4_Custom_AlignFPArgRegs(), CombineSymbolTypes(), convertAddSubFlagsOpcode(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::MCDwarfLineTableHeader::Emit(), llvm::ArrayRef< uint64_t >::equals(), llvm::AArch64SysReg::SysRegMapper::fromString(), getAllocationData(), llvm::SystemZFrameLowering::getCalleeSavedSpillSlots(), llvm::PPCFrameLowering::getCalleeSavedSpillSlots(), getConcreteOpcode(), llvm::TargetLoweringBase::getCondCodeAction(), llvm::MCAsmBackend::getFixupKindInfo(), getLdStNInstrDesc(), llvm::SelectionDAG::getMachineNode(), llvm::TargetLoweringBase::getNumRegisters(), llvm::TargetLoweringBase::getOperationAction(), llvm::TargetLoweringBase::getRegisterType(), llvm::object::MachOObjectFile::getRelocationTypeName(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::AMDGPURegisterInfo::getSubRegFromChannel(), llvm::TargetLoweringBase::getTypeConversion(), llvm::TargetLoweringBase::hasTargetDAGCombine(), llvm::raw_ostream::indent(), llvm::TargetLoweringBase::initActions(), isF128SoftLibCall(), isImageOrSamplerVal(), llvm::TargetLoweringBase::isTypeLegal(), lookup(), lookupAVX2(), LookupNEONLdSt(), LowerVECTOR_SHUFFLE_256(), llvm::MipsSETargetLowering::MipsSETargetLowering(), llvm::SelectionDAG::MorphNodeTo(), llvm::AArch64SysReg::MRSMapper::MRSMapper(), llvm::AArch64SysReg::MSRMapper::MSRMapper(), llvm::Triple::normalize(), llvm::TargetLoweringBase::setCondCodeAction(), llvm::TargetLoweringBase::setOperationAction(), llvm::TargetLoweringBase::setTargetDAGCombine(), llvm::SystemZFrameLowering::SystemZFrameLowering(), and llvm::AArch64SysReg::SysRegMapper::toString().
void llvm::array_pod_sort | ( | IteratorTy | Start, |
IteratorTy | End | ||
) | [inline] |
array_pod_sort - This sorts an array with the specified start and end extent. This is just like std::sort, except that it calls qsort instead of using an inlined template. qsort is slightly slower than std::sort, but most sorts are not performance critical in LLVM and std::sort has to be template instantiated for each type, leading to significant measured code bloat. This function should generally be used instead of std::sort where possible.
This function assumes that you have simple POD-like types that can be compared with std::less and can be moved with memcpy. If this isn't true, you should use std::sort.
NOTE: If qsort_r were portable, we could allow a custom comparator and default to std::less.
Definition at line 335 of file STLExtras.h.
References get_array_pod_sort_comparator, and llvm::LibFunc::qsort.
Referenced by accumulateAndSortLibcalls(), llvm::AttributeSetNode::get(), llvm::PassNameParser::printOptionInfo(), llvm::TargetRegistry::printRegisteredTargetsForVersion(), llvm::Inliner::removeDeadFunctions(), setUsedInitializer(), SimplifyBranchOnICmpChain(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), sortRelocs(), TurnSwitchRangeIntoICmp(), and ValuesOverlap().
void llvm::array_pod_sort | ( | IteratorTy | Start, |
IteratorTy | End, | ||
int(*)(const typename std::iterator_traits< IteratorTy >::value_type *, const typename std::iterator_traits< IteratorTy >::value_type *) | Compare | ||
) | [inline] |
Definition at line 343 of file STLExtras.h.
References llvm::MCID::Compare, and llvm::LibFunc::qsort.
int llvm::array_pod_sort_comparator | ( | const void * | P1, |
const void * | P2 | ||
) | [inline] |
Adapt std::less<T> for array_pod_sort.
Definition at line 301 of file STLExtras.h.
Definition at line 249 of file MipsNaClELFStreamer.cpp.
References llvm::X86II::T8.
const std::error_category & llvm::BitcodeErrorCategory | ( | ) |
Definition at line 3505 of file BitcodeReader.cpp.
Referenced by make_error_code().
double llvm::BitsToDouble | ( | uint64_t | Bits | ) | [inline] |
BitsToDouble - This function takes a 64-bit integer and returns the bit equivalent double.
Definition at line 488 of file MathExtras.h.
References llvm::tgtok::Bits, and T.
float llvm::BitsToFloat | ( | uint32_t | Bits | ) | [inline] |
BitsToFloat - This function takes a 32-bit integer and returns the bit equivalent float.
Definition at line 499 of file MathExtras.h.
References llvm::tgtok::Bits, F(), I, and T.
MachineInstrBuilder llvm::BuildMI | ( | MachineFunction & | MF, |
DebugLoc | DL, | ||
const MCInstrDesc & | MCID | ||
) | [inline] |
BuildMI - Builder interface. Specify how to create the initial instruction itself.
Definition at line 228 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr().
Referenced by llvm::MachineBasicBlock::addLiveIn(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::MipsSEInstrInfo::adjustStackPtr(), llvm::SparcInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::Mips16InstrInfo::BuildAddiuSpImm(), llvm::R600InstrInfo::buildDefaultInstruction(), llvm::SIInstrInfo::buildIndirectRead(), llvm::SIInstrInfo::buildIndirectWrite(), BuildMI(), llvm::SIInstrInfo::buildMovInstr(), llvm::PPCInstrInfo::commuteInstruction(), llvm::FastISel::constrainOperandRegClass(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::Thumb2InstrInfo::copyPhysReg(), llvm::Mips16InstrInfo::copyPhysReg(), llvm::MipsSEInstrInfo::copyPhysReg(), llvm::NVPTXInstrInfo::copyPhysReg(), llvm::MSP430InstrInfo::copyPhysReg(), llvm::XCoreInstrInfo::copyPhysReg(), llvm::SIInstrInfo::copyPhysReg(), llvm::SparcInstrInfo::copyPhysReg(), llvm::HexagonInstrInfo::copyPhysReg(), llvm::AArch64InstrInfo::copyPhysReg(), llvm::PPCInstrInfo::copyPhysReg(), llvm::ARMBaseInstrInfo::copyPhysReg(), llvm::SystemZInstrInfo::copyPhysReg(), llvm::AArch64InstrInfo::copyPhysRegTuple(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), emitAlignedDPRCS2Restores(), emitAlignedDPRCS2Spills(), emitARMRegPlusImmediate(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::AArch64FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), EmitCfiOffset(), llvm::InstrEmitter::EmitDbgValue(), EmitDefCfaOffset(), EmitDefCfaRegister(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::HexagonFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::SparcFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::XCoreFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitEpilogue(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::AArch64InstrInfo::emitFrameIndexDebugValue(), emitFrameOffset(), emitGPDisp(), emitIncrement(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::MachineRegisterInfo::EmitLiveInCopies(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), EmitMonitor(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::TargetLoweringBase::emitPatchPoint(), EmitPCMPSTRI(), EmitPCMPSTRM(), emitPostLd(), emitPostSt(), llvm::Mips16FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::emitPrologue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::SparcFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::XCoreFrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), llvm::PPCFrameLowering::emitPrologue(), llvm::AArch64FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::SystemZFrameLowering::emitPrologue(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitSPUpdate(), emitT2RegPlusImmediate(), emitThumbConstant(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), EmitXBegin(), llvm::SparcTargetLowering::expandAtomicRMW(), expandLoadStackGuard(), llvm::ARMBaseInstrInfo::expandLoadStackGuardBase(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::expandSelectCC(), llvm::FastISel::fastEmitInst_(), llvm::FastISel::fastEmitInst_extractsubreg(), llvm::FastISel::fastEmitInst_i(), llvm::FastISel::fastEmitInst_ii(), llvm::FastISel::fastEmitInst_r(), llvm::FastISel::fastEmitInst_rf(), llvm::FastISel::fastEmitInst_ri(), llvm::FastISel::fastEmitInst_rii(), llvm::FastISel::fastEmitInst_rr(), llvm::FastISel::fastEmitInst_rri(), llvm::FastISel::fastEmitInst_rrii(), llvm::FastISel::fastEmitInst_rrr(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), forceReg(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::MipsInstrInfo::genInstrWithNewOpc(), genMadd(), genMaddR(), llvm::SparcInstrInfo::getGlobalBaseReg(), HandleVRSaveUpdate(), IfNeededExtSP(), IfNeededLDAWSP(), llvm::XCoreInstrInfo::InsertBranch(), llvm::MipsInstrInfo::InsertBranch(), llvm::NVPTXInstrInfo::InsertBranch(), llvm::HexagonInstrInfo::InsertBranch(), llvm::SparcInstrInfo::InsertBranch(), llvm::MSP430InstrInfo::InsertBranch(), llvm::ARMBaseInstrInfo::InsertBranch(), llvm::PPCInstrInfo::InsertBranch(), llvm::AArch64InstrInfo::InsertBranch(), llvm::SystemZInstrInfo::InsertBranch(), llvm::R600InstrInfo::InsertBranch(), insertCopy(), insertDivByZeroTrap(), InsertFPConstInst(), InsertFPImmInst(), InsertLDR_STR(), InsertNewDef(), llvm::MipsInstrInfo::insertNoop(), llvm::PPCInstrInfo::insertNoop(), llvm::SIInstrInfo::insertNOPs(), llvm::PPCInstrInfo::insertSelect(), llvm::AArch64InstrInfo::insertSelect(), InsertSPConstInst(), InsertSPImmInst(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::Mips16InstrInfo::loadImmediate(), llvm::XCoreInstrInfo::loadImmediate(), llvm::SystemZInstrInfo::loadImmediate(), llvm::Mips16InstrInfo::loadRegFromStack(), llvm::MipsSEInstrInfo::loadRegFromStack(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), llvm::Mips16InstrInfo::makeFrame(), MakeM0Inst(), llvm::AArch64RegisterInfo::materializeFrameBaseRegister(), llvm::PPCRegisterInfo::materializeFrameBaseRegister(), llvm::ARMBaseRegisterInfo::materializeFrameBaseRegister(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::reMaterialize(), replaceFI(), llvm::SystemZFrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::MSP430FrameLowering::restoreCalleeSavedRegisters(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), restoreCRs(), llvm::Mips16InstrInfo::restoreFrame(), RestoreSpillList(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::Thumb1RegisterInfo::saveScavengerRegister(), llvm::FastISel::selectBitCast(), llvm::FastISel::selectCall(), llvm::FastISel::selectIntrinsicCall(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FunctionLoweringInfo::set(), setCallTargetReg(), llvm::ARMBaseInstrInfo::setExecutionDomain(), llvm::SystemZFrameLowering::spillCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::MSP430FrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), llvm::SIInstrInfo::splitSMRD(), llvm::Mips16InstrInfo::storeRegToStack(), llvm::MipsSEInstrInfo::storeRegToStack(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::SystemZInstrInfo::storeRegToStackSlot(), tryOrrMovk(), trySequenceOfOnes(), and tryToreplicateChunks().
MachineInstrBuilder llvm::BuildMI | ( | MachineFunction & | MF, |
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
unsigned | DestReg | ||
) | [inline] |
BuildMI - This version of the builder sets up the first operand as a destination virtual register.
Definition at line 237 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), and llvm::RegState::Define.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineBasicBlock::iterator | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
unsigned | DestReg | ||
) | [inline] |
BuildMI - This version of the builder inserts the newly-built instruction before the given position in the given MachineBasicBlock, and sets up the first operand as a destination virtual register.
Definition at line 249 of file MachineInstrBuilder.h.
References llvm::MachineInstrBuilder::addReg(), llvm::MachineFunction::CreateMachineInstr(), llvm::RegState::Define, llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and llvm::AArch64CC::MI.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineBasicBlock::instr_iterator | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
unsigned | DestReg | ||
) | [inline] |
Definition at line 260 of file MachineInstrBuilder.h.
References llvm::MachineInstrBuilder::addReg(), llvm::MachineFunction::CreateMachineInstr(), llvm::RegState::Define, llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and llvm::AArch64CC::MI.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineInstr * | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
unsigned | DestReg | ||
) | [inline] |
Definition at line 271 of file MachineInstrBuilder.h.
References BuildMI(), I, and llvm::MachineInstr::isInsideBundle().
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineBasicBlock::iterator | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID | ||
) | [inline] |
BuildMI - This version of the builder inserts the newly-built instruction before the given position in the given MachineBasicBlock, and does NOT take a destination register.
Definition at line 289 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and llvm::AArch64CC::MI.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineBasicBlock::instr_iterator | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID | ||
) | [inline] |
Definition at line 299 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and llvm::AArch64CC::MI.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineInstr * | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID | ||
) | [inline] |
Definition at line 309 of file MachineInstrBuilder.h.
References BuildMI(), I, and llvm::MachineInstr::isInsideBundle().
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock * | BB, |
DebugLoc | DL, | ||
const MCInstrDesc & | MCID | ||
) | [inline] |
BuildMI - This version of the builder inserts the newly-built instruction at the end of the given MachineBasicBlock, and does NOT take a destination register.
Definition at line 326 of file MachineInstrBuilder.h.
References BuildMI(), and llvm::MachineBasicBlock::end().
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock * | BB, |
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
unsigned | DestReg | ||
) | [inline] |
BuildMI - This version of the builder inserts the newly-built instruction at the end of the given MachineBasicBlock, and sets up the first operand as a destination virtual register.
Definition at line 336 of file MachineInstrBuilder.h.
References BuildMI(), and llvm::MachineBasicBlock::end().
MachineInstrBuilder llvm::BuildMI | ( | MachineFunction & | MF, |
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
bool | IsIndirect, | ||
unsigned | Reg, | ||
unsigned | Offset, | ||
const MDNode * | MD | ||
) | [inline] |
BuildMI - This version of the builder builds a DBG_VALUE intrinsic for either a value in a register or a register-indirect+offset address. The convention is that a DBG_VALUE is indirect iff the second operand is an immediate.
Definition at line 348 of file MachineInstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMetadata(), llvm::MachineInstrBuilder::addReg(), BuildMI(), and llvm::RegState::Debug.
MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, |
MachineBasicBlock::iterator | I, | ||
DebugLoc | DL, | ||
const MCInstrDesc & | MCID, | ||
bool | IsIndirect, | ||
unsigned | Reg, | ||
unsigned | Offset, | ||
const MDNode * | MD | ||
) | [inline] |
BuildMI - This version of the builder builds a DBG_VALUE intrinsic for either a value in a register or a register-indirect+offset address and inserts it at position I.
Definition at line 373 of file MachineInstrBuilder.h.
References BuildMI(), llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and llvm::AArch64CC::MI.
bool llvm::bypassSlowDivision | ( | Function & | F, |
Function::iterator & | I, | ||
const DenseMap< unsigned int, unsigned int > & | BypassWidth | ||
) |
This optimization identifies DIV instructions that can be profitably bypassed and carried out with a shorter, faster divide.
Definition at line 223 of file BypassSlowDivision.cpp.
References llvm::X86ISD::BT, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::find(), llvm::IntegerType::get(), llvm::IntegerType::getBitWidth(), and reuseOrInsertFastDiv().
uint16_t llvm::ByteSwap_16 | ( | uint16_t | Value | ) | [inline] |
ByteSwap_16 - This function returns a byte-swapped representation of the 16-bit argument, Value.
Definition at line 375 of file MathExtras.h.
References llvm::sys::SwapByteOrder_16().
Referenced by llvm::APInt::byteSwap().
uint32_t llvm::ByteSwap_32 | ( | uint32_t | Value | ) | [inline] |
ByteSwap_32 - This function returns a byte-swapped representation of the 32-bit argument, Value.
Definition at line 381 of file MathExtras.h.
References llvm::sys::SwapByteOrder_32().
Referenced by llvm::APInt::byteSwap().
uint64_t llvm::ByteSwap_64 | ( | uint64_t | Value | ) | [inline] |
ByteSwap_64 - This function returns a byte-swapped representation of the 64-bit argument, Value.
Definition at line 387 of file MathExtras.h.
References llvm::sys::SwapByteOrder_64().
Referenced by llvm::APInt::byteSwap().
SmallVectorImpl<T>::const_pointer llvm::c_str | ( | SmallVectorImpl< T > & | str | ) |
Definition at line 158 of file WindowsSupport.h.
References llvm::SmallVectorTemplateCommon< T >::data(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by CrashHandler(), llvm::TargetLowering::getMultipleConstraintMatchWeight(), llvm::NVPTXRegisterInfo::getName(), LLVMGetDefaultTargetTriple(), and llvm::NVPTXTargetLowering::LowerCall().
void llvm::Calculate | ( | DominatorTreeBase< typename GraphTraits< NodeT >::NodeType > & | DT, |
FuncT & | F | ||
) |
Definition at line 151 of file GenericDomTreeConstruction.h.
References llvm::DomTreeNodeBase< NodeT >::addChild(), llvm::CallingConv::C, llvm::DominatorTreeBase< NodeT >::InfoRec::DFSNum, llvm::DominatorTreeBase< NodeT >::InfoRec::Label, N, llvm::DominatorTreeBase< NodeT >::InfoRec::Parent, llvm::SmallVectorImpl< T >::resize(), llvm::DominatorTreeBase< NodeT >::InfoRec::Semi, and std::swap().
void llvm::Calculate | ( | DominatorTreeBase< typename GraphTraits< N >::NodeType > & | DT, |
FuncT & | F | ||
) |
DominatorTree - Calculate the immediate dominator tree for a function.
void llvm::calculateDbgValueHistory | ( | const MachineFunction * | MF, |
const TargetRegisterInfo * | TRI, | ||
DbgValueHistoryMap & | Result | ||
) |
Definition at line 173 of file DbgValueHistoryCalculator.cpp.
References addRegDescribedVar(), applyToClobberedRegisters(), clobberRegisterUses(), collectChangingRegs(), dropRegDescribedVar(), getEntireVariable(), llvm::DbgValueHistoryMap::getRegisterForVar(), isDescribedByReg(), llvm::AArch64CC::MI, and llvm::DbgValueHistoryMap::startInstrRange().
Referenced by llvm::DwarfDebug::beginFunction().
void llvm::calculateSpillWeightsAndHints | ( | LiveIntervals & | LIS, |
MachineFunction & | MF, | ||
const MachineLoopInfo & | MLI, | ||
const MachineBlockFrequencyInfo & | MBFI, | ||
VirtRegAuxInfo::NormalizingFn | norm = normalizeSpillWeight |
||
) |
Compute spill weights and allocation hints for all virtual register live intervals.
Definition at line 26 of file CalcSpillWeights.cpp.
References llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), dbgs(), DEBUG, llvm::LiveIntervals::getInterval(), llvm::MachineFunction::getName(), llvm::MachineFunction::getRegInfo(), and llvm::TargetRegisterInfo::index2VirtReg().
Pass* llvm::callDefaultCtor | ( | ) |
Definition at line 86 of file PassSupport.h.
bool llvm::callIsSmall | ( | ImmutableCallSite | CS | ) |
Check whether a call will lower to something small.
This tests checks whether this callsite will lower to something significantly cheaper than a traditional call, often a single instruction. Note that if isInstructionFree(CS.getInstruction()) would return true, so will this function.
Pass* llvm::callTargetMachineCtor | ( | TargetMachine * | TM | ) |
Definition at line 88 of file PassSupport.h.
Definition at line 613 of file CodeGen/Analysis.cpp.
References llvm::GlobalStatus::analyzeGlobal(), llvm::GlobalValue::hasLinkOnceODRLinkage(), llvm::GlobalValue::hasUnnamedAddr(), and llvm::GlobalStatus::IsCompared.
Referenced by canBeHidden().
canConstantFoldCallTo - Return true if its even possible to fold a call to the specified function.
Definition at line 1236 of file ConstantFolding.cpp.
References llvm::LibFunc::ceil, llvm::LibFunc::copysign, llvm::LibFunc::exp, llvm::LibFunc::exp2, llvm::LibFunc::fabs, llvm::LibFunc::floor, llvm::Function::getIntrinsicID(), llvm::Value::getName(), llvm::Value::hasName(), llvm::LibFunc::log, llvm::LibFunc::log10, llvm::LibFunc::log2, Name, llvm::LibFunc::pow, llvm::LibFunc::round, and llvm::LibFunc::sqrt.
Referenced by CanConstantFold(), ConstantFoldInstOperands(), and SimplifyCall().
unsigned llvm::canFoldARMInstrIntoMOVCC | ( | unsigned | Reg, |
MachineInstr *& | MI, | ||
const MachineRegisterInfo & | MRI | ||
) |
Determine if MI can be folded into an ARM MOVCC instruction, and return the opcode of the SSA instruction representing the conditional MI.
bool llvm::CannotBeNegativeZero | ( | const Value * | V, |
unsigned | Depth = 0 |
||
) |
CannotBeNegativeZero - Return true if we can prove that the specified FP value is never equal to -0.0.
CannotBeNegativeZero - Return true if we can prove that the specified FP value is never equal to -0.0.
NOTE: this function will need to be revisited when we support non-default rounding modes!
Definition at line 1961 of file ValueTracking.cpp.
References dyn_cast(), F(), llvm::Operator::getOpcode(), llvm::User::getOperand(), I, and llvm::LibFunc::sqrt.
Referenced by SimplifyFAddInst(), and SimplifyFSubInst().
static size_t llvm::capacity_in_bytes | ( | const T & | x | ) | [inline, static] |
Definition at line 23 of file Capacity.h.
static size_t llvm::capacity_in_bytes | ( | const SmallVector< T, N > & | X | ) | [inline, static] |
Definition at line 882 of file SmallVector.h.
References llvm::SmallVectorBase::capacity_in_bytes().
static size_t llvm::capacity_in_bytes | ( | const DenseMap< KeyT, ValueT, KeyInfoT > & | X | ) | [inline, static] |
Definition at line 1043 of file DenseMap.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::getMemorySize().
std::enable_if<!is_simple_type<Y>::value, typename cast_retty<X, const Y>::ret_type>::type llvm::cast | ( | const Y & | Val | ) | [inline] |
cast_retty<X, Y>::ret_type llvm::cast | ( | Y & | Val | ) | [inline] |
cast_retty<X, Y *>::ret_type llvm::cast | ( | Y * | Val | ) | [inline] |
LLVM_ATTRIBUTE_UNUSED_RESULT cast_retty<X, Y *>::ret_type llvm::cast_or_null | ( | Y * | Val | ) | [inline] |
Value * llvm::CastToCStr | ( | Value * | V, |
IRBuilder<> & | B | ||
) |
CastToCStr - Return V if it is an i8*, otherwise cast it to i8*.
Definition at line 29 of file BuildLibCalls.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Type::getPointerAddressSpace(), and llvm::Value::getType().
Referenced by EmitFPutS(), EmitFWrite(), EmitMemChr(), EmitMemCmp(), EmitMemCpyChk(), EmitPutS(), EmitStrChr(), EmitStrCpy(), EmitStrLen(), EmitStrNCmp(), EmitStrNCpy(), and EmitStrNLen().
static bool llvm::CC_ARM_AAPCS_Custom_f64 | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) | [static] |
Definition at line 112 of file ARMCallingConv.h.
References f64AssignAAPCS(), and llvm::MVT::v2f64.
static bool llvm::CC_ARM_AAPCS_Custom_HA | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) | [static] |
Definition at line 176 of file ARMCallingConv.h.
References llvm::CCState::addLoc(), Align(), llvm::CCState::AllocateReg(), llvm::CCState::AllocateRegBlock(), llvm::CCState::AllocateStack(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorImpl< T >::clear(), DRegList, llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::MVT::f32, llvm::MVT::f64, llvm::CCValAssign::getPending(), llvm::CCState::getPendingLocs(), llvm::MVT::getSizeInBits(), llvm::ISD::ArgFlagsTy::isInConsecutiveRegsLast(), llvm_unreachable, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), QRegList, llvm::MVT::SimpleTy, llvm::SmallVectorTemplateCommon< T, typename >::size(), SRegList, and llvm::MVT::v2f64.
static bool llvm::CC_ARM_APCS_Custom_f64 | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) | [static] |
Definition at line 58 of file ARMCallingConv.h.
References f64AssignAPCS(), and llvm::MVT::v2f64.
bool llvm::CC_PPC32_SVR4_Custom_AlignArgRegs | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) |
Definition at line 2134 of file PPCISelLowering.cpp.
References llvm::CCState::AllocateReg(), array_lengthof(), and llvm::CCState::getFirstUnallocated().
bool llvm::CC_PPC32_SVR4_Custom_AlignFPArgRegs | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) |
Definition at line 2161 of file PPCISelLowering.cpp.
References llvm::CCState::AllocateReg(), array_lengthof(), and llvm::CCState::getFirstUnallocated().
bool llvm::CC_PPC32_SVR4_Custom_Dummy | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) |
Definition at line 2127 of file PPCISelLowering.cpp.
bool llvm::CC_X86_AnyReg_Error | ( | unsigned & | , |
MVT & | , | ||
MVT & | , | ||
CCValAssign::LocInfo & | , | ||
ISD::ArgFlagsTy & | , | ||
CCState & | |||
) | [inline] |
Definition at line 23 of file X86CallingConv.h.
References llvm_unreachable.
static Intrinsic::ID llvm::checkBinaryFloatSignature | ( | const CallInst & | I, |
Intrinsic::ID | ValidIntrinsicID | ||
) | [static] |
Definition at line 83 of file VectorUtils.h.
References llvm::CallInst::getArgOperand(), llvm::CallInst::getNumArgOperands(), llvm::Value::getType(), llvm::Type::isFloatingPointTy(), llvm::Intrinsic::not_intrinsic, and llvm::CallInst::onlyReadsMemory().
Referenced by getIntrinsicIDForCall().
bool llvm::CheckBitcodeOutputToConsole | ( | raw_ostream & | stream_to_check, |
bool | print_warning = true |
||
) |
Check for output written to a console.
Determine if the raw_ostream provided is connected to a terminal. If so, generate a warning message to errs() advising against display of bitcode and return true. Otherwise just return false.
stream_to_check | The stream to be checked |
print_warning | Control whether warnings are printed |
Definition at line 21 of file SystemUtils.cpp.
References errs(), and llvm::raw_ostream::is_displayed().
void llvm::checkForCycles | ( | const SDNode * | N, |
const SelectionDAG * | DAG = nullptr , |
||
bool | force = false |
||
) |
Definition at line 6792 of file SelectionDAG.cpp.
References checkForCyclesHelper().
void llvm::checkForCycles | ( | const SelectionDAG * | DAG, |
bool | force = false |
||
) |
Definition at line 6809 of file SelectionDAG.cpp.
References llvm::SDValue::getNode(), and llvm::SelectionDAG::getRoot().
Referenced by llvm::SelectionDAG::AssignTopologicalOrder(), llvm::SDNode::InitOperands(), llvm::SDNode::SDNode(), and llvm::SelectionDAG::setRoot().
Type* llvm::checkGEPType | ( | Type * | Ty | ) | [inline] |
Definition at line 781 of file Instructions.h.
Referenced by llvm::GetElementPtrInst::getGEPReturnType().
static Intrinsic::ID llvm::checkUnaryFloatSignature | ( | const CallInst & | I, |
Intrinsic::ID | ValidIntrinsicID | ||
) | [static] |
Definition at line 72 of file VectorUtils.h.
References llvm::CallInst::getArgOperand(), llvm::CallInst::getNumArgOperands(), llvm::Value::getType(), llvm::Type::isFloatingPointTy(), llvm::Intrinsic::not_intrinsic, and llvm::CallInst::onlyReadsMemory().
Referenced by getIntrinsicIDForCall().
DIVariable llvm::cleanseInlinedVariable | ( | MDNode * | DV, |
LLVMContext & | VMContext | ||
) |
cleanseInlinedVariable - Remove inlined scope from the variable.
Definition at line 930 of file DebugInfo.cpp.
References llvm::MDNode::get(), llvm::Type::getInt32Ty(), llvm::Constant::getNullValue(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
void llvm::clearAnnotationCache | ( | const llvm::Module * | Mod | ) |
Definition at line 38 of file NVPTXUtilities.cpp.
References annotationCache, and Lock.
Referenced by llvm::NVPTXAsmPrinter::doFinalization().
static void llvm::clobberRegisterUses | ( | RegDescribedVarsMap & | RegVars, |
unsigned | RegNo, | ||
DbgValueHistoryMap & | HistMap, | ||
const MachineInstr & | ClobberingInstr | ||
) | [static] |
Definition at line 102 of file DbgValueHistoryCalculator.cpp.
References llvm::DbgValueHistoryMap::endInstrRange(), and I.
Referenced by calculateDbgValueHistory().
void llvm::CloneAndPruneFunctionInto | ( | Function * | NewFunc, |
const Function * | OldFunc, | ||
ValueToValueMapTy & | VMap, | ||
bool | ModuleLevelChanges, | ||
SmallVectorImpl< ReturnInst * > & | Returns, | ||
const char * | NameSuffix = "" , |
||
ClonedCodeInfo * | CodeInfo = nullptr , |
||
const DataLayout * | DL = nullptr , |
||
Instruction * | TheCall = nullptr |
||
) |
CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto, except that it does some simple constant prop and DCE on the fly. The effect of this is to copy significantly less code in cases where (for example) a function call with constant arguments is inlined, and those constant arguments cause a significant amount of code in the callee to be dead. Since this doesn't produce an exactly copy of the input, it can't be used for things like CloneFunction or CloneModule.
If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue mappings.
CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto, except that it does some simple constant prop and DCE on the fly. The effect of this is to copy significantly less code in cases where (for example) a function call with constant arguments is inlined, and those constant arguments cause a significant amount of code in the callee to be dead. Since this doesn't produce an exact copy of the input, it can't be used for things like CloneFunction or CloneModule.
Definition at line 419 of file CloneFunction.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::BasicBlock::back(), llvm::BasicBlock::begin(), llvm::Function::begin(), ConstantFoldTerminator(), llvm::ValueMap< KeyT, ValueT, Config >::count(), DeleteDeadBlock(), dyn_cast(), llvm::Function::end(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::eraseFromParent(), llvm::UndefValue::get(), llvm::Function::getBasicBlockList(), llvm::Function::getEntryBlock(), llvm::PHINode::getIncomingBlock(), llvm::PHINode::getIncomingValue(), llvm::BasicBlock::getInstList(), llvm::PHINode::getNumIncomingValues(), llvm::Instruction::getParent(), llvm::BasicBlock::getSinglePredecessor(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), I, llvm::BranchInst::isConditional(), MapValue(), llvm::AArch64CC::NV, pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::iplist< NodeTy, Traits >::push_back(), recursivelySimplifyInstruction(), RemapInstruction(), llvm::PHINode::removeIncomingValue(), llvm::Value::replaceAllUsesWith(), RF_NoModuleLevelChanges, RF_None, llvm::PHINode::setIncomingBlock(), llvm::PHINode::setIncomingValue(), and llvm::SmallVectorTemplateCommon< T >::size().
Referenced by InlineFunction().
BasicBlock * llvm::CloneBasicBlock | ( | const BasicBlock * | BB, |
ValueToValueMapTy & | VMap, | ||
const Twine & | NameSuffix = "" , |
||
Function * | F = nullptr , |
||
ClonedCodeInfo * | CodeInfo = nullptr |
||
) |
CloneBasicBlock - Return a copy of the specified basic block, but without embedding the block into a particular function. The block returned is an exact copy of the specified basic block, without any remapping having been performed. Because of this, this is only suitable for applications where the basic block will be inserted into the same function that it was cloned from (loop unrolling would use this, for example).
Also, note that this function makes a direct copy of the basic block, and can thus produce illegal LLVM code. In particular, it will copy any PHI nodes from the original block, even though there are no predecessors for the newly cloned block (thus, phi nodes will have to be updated). Also, this block will branch to the old successors of the original block: these successors will have to have any PHI nodes updated to account for the new incoming edges.
The correlation between instructions in the source and result basic blocks is recorded in the VMap map.
If you have a particular suffix you'd like to use to add to any cloned names, specify it as the optional third parameter.
If you would like the basic block to be auto-inserted into the end of a function, you can specify it as the optional fourth parameter.
If you would like to collect additional information about the cloned function, you can specify a ClonedCodeInfo object with the optional fifth parameter.
Definition at line 38 of file CloneFunction.cpp.
References llvm::BasicBlock::begin(), llvm::Instruction::clone(), llvm::ClonedCodeInfo::ContainsCalls, llvm::ClonedCodeInfo::ContainsDynamicAllocas, llvm::BasicBlock::Create(), llvm::BasicBlock::end(), F(), llvm::BasicBlock::getContext(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getInstList(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::Value::hasName(), llvm::ARM_PROC::IE, llvm::iplist< NodeTy, Traits >::push_back(), and llvm::Value::setName().
Referenced by CloneFunctionInto(), CloneLoopBlocks(), and UnrollLoop().
Function * llvm::CloneFunction | ( | const Function * | F, |
ValueToValueMapTy & | VMap, | ||
bool | ModuleLevelChanges, | ||
ClonedCodeInfo * | CodeInfo = nullptr |
||
) |
CloneFunction - Return a copy of the specified function, but without embedding the function into another module. Also, any references specified in the VMap are changed to refer to their mapped value instead of the original one. If any of the arguments to the function are in the VMap, the arguments are deleted from the resultant function. The VMap is updated to include mappings from all of the instructions and basicblocks in the function from their old to new values. The final argument captures information about the cloned code if non-null.
If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue mappings, and debug info metadata will not be cloned.
CloneFunction - Return a copy of the specified function, but without embedding the function into another module. Also, any references specified in the VMap are changed to refer to their mapped value instead of the original one. If any of the arguments to the function are in the VMap, the arguments are deleted from the resultant function. The VMap is updated to include mappings from all of the instructions and basicblocks in the function from their old to new values.
Definition at line 213 of file CloneFunction.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), CloneDebugInfoMetadata(), CloneFunctionInto(), llvm::ValueMap< KeyT, ValueT, Config >::count(), llvm::Function::Create(), llvm::FunctionType::get(), llvm::Function::getFunctionType(), llvm::GlobalValue::getLinkage(), llvm::Value::getName(), llvm::FunctionType::getReturnType(), I, and llvm::FunctionType::isVarArg().
void llvm::CloneFunctionInto | ( | Function * | NewFunc, |
const Function * | OldFunc, | ||
ValueToValueMapTy & | VMap, | ||
bool | ModuleLevelChanges, | ||
SmallVectorImpl< ReturnInst * > & | Returns, | ||
const char * | NameSuffix = "" , |
||
ClonedCodeInfo * | CodeInfo = nullptr , |
||
ValueMapTypeRemapper * | TypeMapper = nullptr , |
||
ValueMaterializer * | Materializer = nullptr |
||
) |
Clone OldFunc into NewFunc, transforming the old arguments into references to VMap values. Note that if NewFunc already has basic blocks, the ones cloned into it will be added to the end of the function. This function fills in a list of return instructions, and can optionally remap types and/or append the specified suffix to all values cloned.
If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue mappings.
Definition at line 77 of file CloneFunction.cpp.
References llvm::AttributeSet::addAttributes(), llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Function::args(), llvm::Function::begin(), CloneBasicBlock(), llvm::Function::copyAttributesFrom(), llvm::ValueMap< KeyT, ValueT, Config >::count(), llvm::Function::end(), llvm::AttributeSet::FunctionIndex, llvm::BlockAddress::get(), llvm::Function::getAttributes(), llvm::Function::getContext(), llvm::AttributeSet::getFnAttributes(), llvm::AttributeSet::getNumSlots(), llvm::AttributeSet::getParamAttributes(), llvm::AttributeSet::getRetAttributes(), llvm::BasicBlock::getTerminator(), llvm::BasicBlock::hasAddressTaken(), I, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), RemapInstruction(), llvm::AttributeSet::ReturnIndex, RF_NoModuleLevelChanges, RF_None, and llvm::Function::setAttributes().
Referenced by CloneFunction(), and CloneModule().
Module * llvm::CloneModule | ( | const Module * | M | ) |
CloneModule - Return an exact copy of the specified module
CloneModule - Return an exact copy of the specified module. This is not as easy as it might seem because we have to worry about making copies of global variables and functions, and making their (initializers and references, respectively) refer to the right globals.
Definition at line 27 of file CloneModule.cpp.
Module * llvm::CloneModule | ( | const Module * | M, |
ValueToValueMapTy & | VMap | ||
) |
Definition at line 34 of file CloneModule.cpp.
References llvm::NamedMDNode::addOperand(), llvm::Module::alias_begin(), llvm::Module::alias_end(), llvm::Function::arg_begin(), llvm::Module::begin(), llvm::CallingConv::C, CloneFunctionInto(), llvm::GlobalVariable::copyAttributesFrom(), llvm::GlobalValue::copyAttributesFrom(), llvm::Function::copyAttributesFrom(), llvm::GlobalAlias::create(), llvm::Function::Create(), llvm::Module::end(), F(), llvm::Module::getContext(), llvm::Module::getDataLayout(), llvm::Module::getModuleIdentifier(), llvm::Module::getModuleInlineAsm(), llvm::NamedMDNode::getName(), llvm::NamedMDNode::getNumOperands(), llvm::NamedMDNode::getOperand(), llvm::Module::getOrInsertNamedMetadata(), llvm::Module::getTargetTriple(), llvm::Module::global_begin(), llvm::Module::global_end(), I, MapValue(), llvm::Module::named_metadata_begin(), llvm::Module::named_metadata_end(), llvm::GlobalAlias::setAliasee(), llvm::Module::setDataLayout(), llvm::GlobalVariable::setInitializer(), llvm::Module::setModuleInlineAsm(), and llvm::Module::setTargetTriple().
static void llvm::collectChangingRegs | ( | const MachineFunction * | MF, |
const TargetRegisterInfo * | TRI, | ||
std::set< unsigned > & | Regs | ||
) | [static] |
Definition at line 158 of file DbgValueHistoryCalculator.cpp.
References applyToClobberedRegisters(), llvm::MachineInstr::FrameSetup, getFirstEpilogueInst(), and llvm::AArch64CC::MI.
Referenced by calculateDbgValueHistory().
GlobalVariable * llvm::collectUsedGlobalVariables | ( | Module & | M, |
SmallPtrSetImpl< GlobalValue * > & | Set, | ||
bool | CompilerUsed | ||
) |
Given "llvm.used" or "llvm.compiler.used" as a global name, collect the initializer elements of that global in Set and return the global itself.
Definition at line 81 of file ModuleUtils.cpp.
References G, llvm::Module::getGlobalVariable(), llvm::GlobalVariable::getInitializer(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::GlobalVariable::hasInitializer(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), Name, and llvm::Value::stripPointerCastsNoFollowAliases().
void llvm::combineMetadata | ( | Instruction * | K, |
const Instruction * | J, | ||
ArrayRef< unsigned > | KnownIDs | ||
) |
Combine the metadata of two instructions so that K can replace J.
Metadata not listed as known via KnownIDs is removed
Definition at line 1312 of file Local.cpp.
References llvm::Instruction::dropUnknownMetadata(), llvm::Instruction::getAllMetadataOtherThanDebugLoc(), llvm::Instruction::getMetadata(), llvm::MDNode::getMostGenericFPMath(), llvm::MDNode::getMostGenericRange(), llvm::MDNode::getMostGenericTBAA(), llvm::MDNode::intersect(), llvm_unreachable, llvm::LLVMContext::MD_alias_scope, llvm::LLVMContext::MD_dbg, llvm::LLVMContext::MD_fpmath, llvm::LLVMContext::MD_invariant_load, llvm::LLVMContext::MD_noalias, llvm::LLVMContext::MD_range, llvm::LLVMContext::MD_tbaa, llvm::Instruction::setMetadata(), and llvm::SmallVectorTemplateCommon< T >::size().
Referenced by HoistThenElseCodeToIf(), and patchReplacementInstruction().
static bool llvm::CompareVars | ( | const ASanStackVariableDescription & | a, |
const ASanStackVariableDescription & | b | ||
) | [inline, static] |
Definition at line 27 of file ASanStackFrameLayout.cpp.
References llvm::ASanStackVariableDescription::Alignment.
Referenced by ComputeASanStackFrameLayout().
static uint64_t llvm::computeAllocationSizeForSections | ( | std::vector< uint64_t > & | SectionSizes, |
uint64_t | Alignment | ||
) | [static] |
Definition at line 260 of file RuntimeDyld.cpp.
Referenced by llvm::RuntimeDyldImpl::computeTotalAllocSize().
void llvm::ComputeASanStackFrameLayout | ( | SmallVectorImpl< ASanStackVariableDescription > & | Vars, |
size_t | Granularity, | ||
size_t | MinHeaderSize, | ||
ASanStackFrameLayout * | Layout | ||
) |
Definition at line 55 of file ASanStackFrameLayout.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorImpl< T >::clear(), CompareVars(), llvm::ASanStackFrameLayout::DescriptionString, llvm::SmallVectorTemplateCommon< T >::end(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::ASanStackFrameLayout::FrameAlignment, llvm::ASanStackFrameLayout::FrameSize, llvm::SmallVectorImpl< T >::insert(), kAsanStackLeftRedzoneMagic, kAsanStackMidRedzoneMagic, kAsanStackRightRedzoneMagic, kMinAlignment, Name, llvm::ASanStackFrameLayout::ShadowBytes, llvm::SmallVectorTemplateCommon< T >::size(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::raw_svector_ostream::str(), llvm::LibFunc::strlen, and VarAndRedzoneSize().
static int64_t llvm::computeDelta | ( | SectionEntry * | A, |
SectionEntry * | B | ||
) | [static] |
Definition at line 249 of file RuntimeDyldMachO.cpp.
References llvm::SectionEntry::LoadAddress, and llvm::SectionEntry::ObjAddress.
Referenced by llvm::RuntimeDyldMachOCRTPBase< Impl >::registerEHFrames().
unsigned llvm::ComputeEditDistance | ( | ArrayRef< T > | FromArray, |
ArrayRef< T > | ToArray, | ||
bool | AllowReplacements = true , |
||
unsigned | MaxEditDistance = 0 |
||
) |
Determine the edit distance between two sequences.
FromArray | the first sequence to compare. |
ToArray | the second sequence to compare. |
AllowReplacements | whether to allow element replacements (change one element into another) as a single operation, rather than as two operations (an insertion and a removal). |
MaxEditDistance | If non-zero, the maximum edit distance that this routine is allowed to compute. If the edit distance will exceed that maximum, returns MaxEditDistance+1 . |
AllowReplacements
is true
) replacements needed to transform one of the given sequences into the other. If zero, the sequences are identical. Definition at line 43 of file edit_distance.h.
References llvm::ArrayRef< T >::size().
Referenced by llvm::StringRef::edit_distance().
void llvm::computeKnownBits | ( | Value * | V, |
APInt & | KnownZero, | ||
APInt & | KnownOne, | ||
const DataLayout * | TD = nullptr , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
Determine which bits of V are known to be either zero or one and return them in the KnownZero/KnownOne bit sets.
This function is defined on values with integer type, values with pointer type (but only if TD is non-null), and vectors of integers. In the case where V is a vector, the known zero and known one values are the same width as the vector element, and the bit is set only if it is true for all of the elements in the vector.
Definition at line 103 of file ValueTracking.cpp.
References safeCxtI().
Referenced by computeKnownBits(), llvm::InstCombiner::computeKnownBits(), computeKnownBitsAddSub(), computeKnownBitsFromAssume(), computeKnownBitsMul(), ComputeNumSignBits(), ComputeSignBit(), EliminateDeadSwitchCases(), llvm::ScalarEvolution::GetMinTrailingZeros(), getOrEnforceKnownAlignment(), llvm::ScalarEvolution::getUnsignedRange(), isKnownNonZero(), isKnownToBeAPowerOfTwo(), isSafeToSpeculativelyExecute(), isZero(), MaskedValueIsZero(), SimplifyICmpInst(), SymbolicallyEvaluateBinop(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), and llvm::InstCombiner::visitReturnInst().
void llvm::computeKnownBitsFromRangeMetadata | ( | const MDNode & | Ranges, |
APInt & | KnownZero | ||
) |
Compute known bits from the range metadata. KnownZero
the set of bits that are known to be zero
Definition at line 306 of file ValueTracking.cpp.
References countLeadingZeros(), llvm::APInt::getBitWidth(), llvm::APInt::getHighBitsSet(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::ConstantInt::getValue().
Referenced by computeKnownBits(), and llvm::SelectionDAG::computeKnownBits().
unsigned llvm::ComputeLinearIndex | ( | Type * | Ty, |
const unsigned * | Indices, | ||
const unsigned * | IndicesEnd, | ||
unsigned | CurIndex = 0 |
||
) |
ComputeLinearIndex - Given an LLVM IR aggregate type and a sequence of insertvalue or extractvalue indices that identify a member, return the linearized index of the start of the member.
Definition at line 37 of file CodeGen/Analysis.cpp.
Referenced by ComputeLinearIndex(), and llvm::FastISel::selectExtractValue().
unsigned llvm::ComputeLinearIndex | ( | Type * | Ty, |
ArrayRef< unsigned > | Indices, | ||
unsigned | CurIndex = 0 |
||
) | [inline] |
Definition at line 43 of file CodeGen/Analysis.h.
References llvm::ArrayRef< T >::begin(), ComputeLinearIndex(), and llvm::ArrayRef< T >::end().
bool llvm::ComputeMultiple | ( | Value * | V, |
unsigned | Base, | ||
Value *& | Multiple, | ||
bool | LookThroughSExt = false , |
||
unsigned | Depth = 0 |
||
) |
ComputeMultiple - This function computes the integer multiple of Base that equals V. If successful, it returns true and returns the multiple in Multiple. If unsuccessful, it returns false. Also, if V can be simplified to an integer, then the simplified V is returned in Val. Look through sext only if LookThroughSExt=true.
ComputeMultiple - This function computes the integer multiple of Base that equals V. If successful, it returns true and returns the multiple in Multiple. If unsuccessful, it returns false. It looks through SExt instructions only if LookThroughSExt is true.
Definition at line 1839 of file ValueTracking.cpp.
References dyn_cast(), llvm::ConstantInt::get(), llvm::APInt::getBitWidth(), llvm::Value::getContext(), llvm::APInt::getLimitedValue(), llvm::ConstantExpr::getMul(), llvm::Operator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::ConstantInt::getValue(), llvm::ConstantExpr::getZExt(), llvm::ConstantInt::getZExtValue(), I, llvm::Type::isIntegerTy(), MaxDepth, llvm::APInt::setBit(), and SExt.
Referenced by computeArraySize().
unsigned llvm::ComputeNumSignBits | ( | Value * | Op, |
const DataLayout * | TD = nullptr , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
ComputeNumSignBits - Return the number of times the sign bit of the register is replicated into the other bits. We know that at least 1 bit is always equal to the sign bit (itself), but other cases can give us information. For example, immediately after an "ashr X, 2", we know that the top 3 bits are all equal to each other, so we return 3.
'Op' must have a scalar integer type.
Definition at line 158 of file ValueTracking.cpp.
References safeCxtI().
Referenced by ComputeNumSignBits(), llvm::InstCombiner::ComputeNumSignBits(), llvm::ScalarEvolution::getSignedRange(), SimplifyAShrInst(), llvm::InstCombiner::visitSExt(), and llvm::InstCombiner::visitShl().
void llvm::ComputeSignBit | ( | Value * | V, |
bool & | KnownZero, | ||
bool & | KnownOne, | ||
const DataLayout * | TD = nullptr , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
ComputeSignBit - Determine whether the sign bit is known to be zero or one. Convenience wrapper around computeKnownBits.
Definition at line 115 of file ValueTracking.cpp.
References safeCxtI().
Referenced by isKnownNonZero(), and SimplifyICmpInst().
void llvm::ComputeUsesVAFloatArgument | ( | const CallInst & | I, |
MachineModuleInfo * | MMI | ||
) |
ComputeUsesVAFloatArgument - Determine if any floating-point values are being passed to this variadic function, and set the MachineModuleInfo's usesVAFloatArgument flag if so. This flag is used to emit an undefined reference to _fltused on Windows, which will link in MSVCRT's floating-point support.
Definition at line 432 of file FunctionLoweringInfo.cpp.
References llvm::CallInst::getArgOperand(), llvm::CallInst::getCalledValue(), llvm::Type::getContainedType(), llvm::CallInst::getNumArgOperands(), llvm::Value::getType(), llvm::FunctionType::isVarArg(), po_begin(), po_end(), llvm::MachineModuleInfo::setUsesVAFloatArgument(), and llvm::MachineModuleInfo::usesVAFloatArgument().
Referenced by llvm::FastISel::selectCall().
void llvm::ComputeValueVTs | ( | const TargetLowering & | TLI, |
Type * | Ty, | ||
SmallVectorImpl< EVT > & | ValueVTs, | ||
SmallVectorImpl< uint64_t > * | Offsets = nullptr , |
||
uint64_t | StartingOffset = 0 |
||
) |
ComputeValueVTs - Given an LLVM IR type, compute a sequence of EVTs that represent all the individual underlying non-aggregate types that comprise it.
If Offsets is non-null, it points to a vector to be filled in with the in-memory offsets of each of the individual values.
Definition at line 78 of file CodeGen/Analysis.cpp.
References llvm::TargetLoweringBase::getDataLayout(), llvm::StructLayout::getElementOffset(), llvm::DataLayout::getStructLayout(), llvm::DataLayout::getTypeAllocSize(), llvm::TargetLoweringBase::getValueType(), llvm::Type::isVoidTy(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), ComputePTXValueVTs(), llvm::FunctionLoweringInfo::CreateRegs(), llvm::NVPTXTargetLowering::getPrototype(), GetReturnInfo(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::NVPTXTargetLowering::LowerCall(), llvm::FastISel::lowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::FastISel::selectExtractValue(), and llvm::FunctionLoweringInfo::set().
constant_iterator llvm::constant_begin | ( | const Function * | F | ) | [inline] |
Definition at line 83 of file ConstantsScanner.h.
constant_iterator llvm::constant_end | ( | const Function * | F | ) | [inline] |
Definition at line 87 of file ConstantsScanner.h.
Constant * llvm::ConstantFoldBinaryInstruction | ( | unsigned | Opcode, |
Constant * | V1, | ||
Constant * | V2 | ||
) |
Definition at line 888 of file ConstantFold.cpp.
References llvm::APFloat::add(), llvm::APIntOps::And(), llvm::APInt::ashr(), llvm::APFloat::divide(), FCmp, llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::get(), llvm::UndefValue::get(), llvm::GlobalValue::getAlignment(), llvm::Constant::getAllOnesValue(), llvm::ConstantExpr::getAnd(), llvm::APInt::getBitWidth(), llvm::ConstantExpr::getCompare(), llvm::Value::getContext(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantInt::getFalse(), llvm::CmpInst::getInversePredicate(), llvm::APInt::getLowBitsSet(), llvm::ConstantExpr::getLShr(), llvm::Constant::getNullValue(), llvm::Type::getPrimitiveSizeInBits(), llvm::Value::getType(), llvm::ConstantInt::getValue(), llvm::ConstantExpr::getXor(), llvm::APInt::getZExtValue(), llvm::APInt::isAllOnesValue(), llvm::Instruction::isAssociative(), llvm::Instruction::isCommutative(), llvm::Type::isIntegerTy(), llvm::APInt::isMinSignedValue(), Log2_32(), LShr, llvm::APInt::lshr(), llvm::APFloat::mod(), llvm::APFloat::multiply(), llvm::APIntOps::Or(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::APFloat::rmNearestTiesToEven, llvm::APInt::sdiv(), llvm::APInt::shl(), llvm::APInt::srem(), llvm::APFloat::subtract(), T, llvm::APInt::udiv(), llvm::APInt::urem(), and llvm::APIntOps::Xor().
Referenced by llvm::ConstantExpr::get().
Constant * llvm::ConstantFoldCall | ( | Function * | F, |
ArrayRef< Constant * > | Operands, | ||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldCall - Attempt to constant fold a call to the specified function with the specified arguments, returning null if unsuccessful.
Definition at line 1768 of file ConstantFolding.cpp.
References ConstantFoldScalarCall(), ConstantFoldVectorCall(), llvm::Function::getIntrinsicID(), llvm::Value::getName(), llvm::Function::getReturnType(), llvm::Value::hasName(), and Name.
Referenced by ConstantFoldInstOperands(), and SimplifyCall().
Constant * llvm::ConstantFoldCastInstruction | ( | unsigned | opcode, |
Constant * | V, | ||
Type * | DestTy | ||
) |
opcode | The opcode of the cast |
V | The source constant |
DestTy | The destination type |
Definition at line 510 of file ConstantFold.cpp.
References AddrSpaceCast, llvm::APFloat::Bogus, llvm::CallingConv::C, llvm::WinEH::CE, llvm::APFloat::convert(), llvm::APFloat::convertFromAPInt(), llvm::APFloat::convertToInteger(), ExtractConstantBytes(), FoldBitCast(), foldConstantCastPair(), FPExt, FPToSI, llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::ConstantVector::get(), llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), getBitWidth(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::Value::getContext(), llvm::SequentialType::getElementType(), llvm::ConstantExpr::getExtractElement(), llvm::Type::getFltSemantics(), getFoldedAlignOf(), getFoldedOffsetOf(), getFoldedSizeOf(), llvm::ConstantExpr::getMul(), llvm::Constant::getNullValue(), llvm::APInt::getNullValue(), llvm::ConstantExpr::getPointerCast(), llvm::Type::getPrimitiveSizeInBits(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), llvm::APFloat::IEEEdouble, llvm::APFloat::IEEEhalf, llvm::APFloat::IEEEquad, llvm::APFloat::IEEEsingle, IntToPtr, llvm::Type::isArrayTy(), llvm::Type::isDoubleTy(), llvm::Type::isFloatTy(), llvm::Type::isFP128Ty(), llvm::Type::isHalfTy(), llvm::Constant::isNullValue(), llvm::ConstantInt::isOne(), llvm::Type::isPPC_FP128Ty(), llvm::Type::isStructTy(), llvm::Type::isVectorTy(), llvm::Type::isX86_FP80Ty(), llvm::Type::isX86_MMXTy(), llvm_unreachable, llvm::APFloat::PPCDoubleDouble, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::APFloat::rmNearestTiesToEven, llvm::APFloat::rmTowardZero, SExt, SIToFP, Trunc, and llvm::APFloat::x87DoubleExtended.
Referenced by getFoldedCast().
Constant * llvm::ConstantFoldCompareInstOperands | ( | unsigned | Predicate, |
Constant * | Ops0, | ||
Constant * | Ops1, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldCompareInstOperands - Attempt to constant fold a compare instruction (icmp/fcmp) with the specified operands. If it fails, it returns a constant expression of the specified operands.
Definition at line 1109 of file ConstantFolding.cpp.
References llvm::APIntOps::And(), llvm::CallingConv::C, ConstantFoldInstOperands(), llvm::ConstantExpr::getCompare(), llvm::ConstantExpr::getIntegerCast(), llvm::DataLayout::getIntPtrType(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, IntToPtr, llvm::Constant::isNullValue(), and llvm::APIntOps::Or().
Referenced by ConstantFold(), ConstantFoldConstantExpressionImpl(), ConstantFoldInstruction(), EvaluateExpression(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), getPredicateResult(), SimplifyFCmpInst(), SimplifyICmpInst(), and SimplifyWithOpReplaced().
Constant * llvm::ConstantFoldCompareInstruction | ( | unsigned short | predicate, |
Constant * | C1, | ||
Constant * | C2 | ||
) |
Definition at line 1602 of file ConstantFold.cpp.
References llvm::CmpInst::BAD_FCMP_PREDICATE, llvm::CmpInst::BAD_ICMP_PREDICATE, llvm::APFloat::cmpEqual, llvm::APFloat::cmpGreaterThan, llvm::APFloat::cmpLessThan, llvm::APFloat::cmpUnordered, llvm::APFloat::compare(), evaluateFCmpRelation(), evaluateICmpRelation(), llvm::CmpInst::FCMP_FALSE, llvm::CmpInst::FCMP_OEQ, llvm::CmpInst::FCMP_OGE, llvm::CmpInst::FCMP_OGT, llvm::CmpInst::FCMP_OLE, llvm::CmpInst::FCMP_OLT, llvm::CmpInst::FCMP_ONE, llvm::CmpInst::FCMP_ORD, llvm::CmpInst::FCMP_TRUE, llvm::CmpInst::FCMP_UEQ, llvm::CmpInst::FCMP_UGE, llvm::CmpInst::FCMP_UGT, llvm::CmpInst::FCMP_ULE, llvm::CmpInst::FCMP_ULT, llvm::CmpInst::FCMP_UNE, llvm::CmpInst::FCMP_UNO, llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::VectorType::get(), llvm::ConstantVector::get(), llvm::UndefValue::get(), llvm::Constant::getAllOnesValue(), llvm::ConstantExpr::getBitCast(), llvm::ConstantExpr::getCast(), llvm::ConstantExpr::getCompare(), llvm::Value::getContext(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getICmp(), llvm::Type::getInt1Ty(), llvm::ConstantExpr::getNot(), llvm::Constant::getNullValue(), llvm::User::getOperand(), llvm::CmpInst::getSwappedPredicate(), llvm::ConstantInt::getTrue(), llvm::ConstantExpr::getTrunc(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), llvm::ConstantExpr::getXor(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, llvm::ICmpInst::isEquality(), llvm::Type::isFloatingPointTy(), llvm::Type::isIntegerTy(), llvm::Constant::isNullValue(), llvm::CmpInst::isSigned(), llvm::CmpInst::isTrueWhenEqual(), llvm::Type::isVectorTy(), llvm_unreachable, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), SExt, llvm::APInt::sge(), llvm::APInt::sgt(), llvm::APInt::sle(), llvm::APInt::slt(), llvm::APInt::uge(), llvm::APInt::ugt(), llvm::APInt::ule(), llvm::APInt::ult(), and llvm::NVPTX::PTXLdStInstCode::V2.
Referenced by llvm::ConstantExpr::getFCmp(), and llvm::ConstantExpr::getICmp().
Constant * llvm::ConstantFoldConstantExpression | ( | const ConstantExpr * | CE, |
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldConstantExpression - Attempt to fold the constant expression using the specified DataLayout. If successful, the constant result is result is returned, if not, null is returned.
Definition at line 993 of file ConstantFolding.cpp.
References ConstantFoldConstantExpressionImpl().
Referenced by AddReachableCodeToWorklist(), CastGEPIndices(), ConstantFoldInstruction(), emitGlobalConstantImpl(), llvm::ScalarEvolution::getOffsetOfExpr(), GetShiftedValue(), llvm::ScalarEvolution::getSizeOfExpr(), nvptx::LowerConstant(), lowerConstant(), and SymbolicallyEvaluateGEP().
Constant * llvm::ConstantFoldExtractElementInstruction | ( | Constant * | Val, |
Constant * | Idx | ||
) |
Definition at line 758 of file ConstantFold.cpp.
References llvm::UndefValue::get(), llvm::Constant::getAggregateElement(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorElementType(), llvm::Type::getVectorNumElements(), and llvm::Constant::isNullValue().
Referenced by llvm::ConstantExpr::getExtractElement().
Constant * llvm::ConstantFoldExtractValueInstruction | ( | Constant * | Agg, |
ArrayRef< unsigned > | Idxs | ||
) |
Definition at line 842 of file ConstantFold.cpp.
References llvm::CallingConv::C, llvm::ArrayRef< T >::empty(), llvm::Constant::getAggregateElement(), and llvm::ArrayRef< T >::slice().
Referenced by llvm::ConstantExpr::getExtractValue().
Constant * llvm::ConstantFoldGetElementPtr | ( | Constant * | C, |
bool | inBounds, | ||
ArrayRef< Constant * > | Idxs | ||
) |
Definition at line 2158 of file ConstantFold.cpp.
References ConstantFoldGetElementPtrImpl().
Referenced by llvm::ConstantExpr::getGetElementPtr().
Constant * llvm::ConstantFoldGetElementPtr | ( | Constant * | C, |
bool | inBounds, | ||
ArrayRef< Value * > | Idxs | ||
) |
Definition at line 2164 of file ConstantFold.cpp.
References ConstantFoldGetElementPtrImpl().
Constant * llvm::ConstantFoldInsertElementInstruction | ( | Constant * | Val, |
Constant * | Elt, | ||
Constant * | Idx | ||
) |
Definition at line 778 of file ConstantFold.cpp.
References llvm::CallingConv::C, dyn_cast(), llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::Value::getContext(), llvm::ConstantExpr::getExtractElement(), llvm::Value::getType(), llvm::ConstantInt::getValue(), llvm::Type::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::ConstantExpr::getInsertElement().
Constant * llvm::ConstantFoldInsertValueInstruction | ( | Constant * | Agg, |
Constant * | Val, | ||
ArrayRef< unsigned > | Idxs | ||
) |
ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue instruction with the specified operands and indices. The constant result is returned if successful; if not, null is returned.
Definition at line 854 of file ConstantFold.cpp.
References llvm::CallingConv::C, llvm::ArrayRef< T >::empty(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::Constant::getAggregateElement(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::ArrayRef< T >::slice(), and llvm::AArch64DB::ST.
Referenced by llvm::ConstantExpr::getInsertValue(), and SimplifyInsertValueInst().
Constant * llvm::ConstantFoldInstOperands | ( | unsigned | Opcode, |
Type * | DestTy, | ||
ArrayRef< Constant * > | Ops, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldInstOperands - Attempt to constant fold an instruction with the specified operands. If successful, the constant result is returned, if not, null is returned. Note that this function can fail when attempting to fold instructions like loads and stores, which have no constant expression form.
ConstantFoldInstOperands - Attempt to constant fold an instruction with the specified opcode and operands. If successful, the constant result is returned, if not, null is returned. Note that this function can fail when attempting to fold instructions like loads and stores, which have no constant expression form.
TODO: This function neither utilizes nor preserves nsw/nuw/inbounds/etc information, due to only being passed an opcode and operands. Constant folding using this function strips this information.
Definition at line 1010 of file ConstantFolding.cpp.
References AddrSpaceCast, llvm::ArrayRef< T >::back(), llvm::CallingConv::C, Call, canConstantFoldCallTo(), CastGEPIndices(), llvm::WinEH::CE, ConstantFoldCall(), ExtractElement(), F(), FCmp, FoldBitCast(), FPExt, FPToSI, llvm::ConstantInt::get(), llvm::ConstantExpr::get(), llvm::ConstantExpr::getAnd(), llvm::ConstantExpr::getBitCast(), llvm::ConstantExpr::getCast(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getIntegerCast(), llvm::APInt::getLowBitsSet(), llvm::Type::getPointerAddressSpace(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::Type::getScalarSizeInBits(), llvm::ConstantExpr::getSelect(), llvm::ConstantExpr::getShuffleVector(), llvm::Value::getType(), InsertElement, IntToPtr, llvm::Instruction::isBinaryOp(), llvm_unreachable, llvm::MCID::Select, SExt, SIToFP, llvm::ArrayRef< T >::size(), llvm::ArrayRef< T >::slice(), SymbolicallyEvaluateBinop(), SymbolicallyEvaluateGEP(), and Trunc.
Referenced by CanShareConstantPoolEntry(), ConstantFold(), ConstantFoldCompareInstOperands(), ConstantFoldConstantExpressionImpl(), ConstantFoldInstruction(), EvaluateExpression(), SimplifyAddInst(), SimplifyAndInst(), SimplifyBinOp(), SimplifyDiv(), SimplifyFAddInst(), SimplifyFMulInst(), SimplifyFSubInst(), SimplifyMulInst(), SimplifyOrInst(), SimplifyRem(), SimplifyShift(), SimplifySubInst(), SimplifyTruncInst(), SimplifyWithOpReplaced(), and SimplifyXorInst().
Constant * llvm::ConstantFoldInstruction | ( | Instruction * | I, |
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldInstruction - Try to constant fold the specified instruction. If successful, the constant result is returned, if not, null is returned. Note that this fails if not all of the operands are constant. Otherwise, this function can only fail when attempting to fold instructions like loads and stores, which have no constant expression form.
Definition at line 895 of file ConstantFolding.cpp.
References llvm::CallingConv::C, ConstantFoldCompareInstOperands(), ConstantFoldConstantExpression(), ConstantFoldInstOperands(), ConstantFoldLoadInst(), dyn_cast(), llvm::UndefValue::get(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getInsertValue(), llvm::Instruction::getOpcode(), llvm::Value::getType(), LI, llvm::User::op_begin(), llvm::User::op_end(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by AddReachableCodeToWorklist(), CleanupConstantGlobalUsers(), ConstantPropUsersOf(), llvm::InstCombiner::DoOneIteration(), and SimplifyInstruction().
Constant * llvm::ConstantFoldLoadFromConstPtr | ( | Constant * | C, |
const DataLayout * | TD = nullptr |
||
) |
ConstantFoldLoadFromConstPtr - Return the value that a load from C would produce if it is constant and determinable. If this is not determinable, return null.
Definition at line 524 of file ConstantFolding.cpp.
References llvm::CallingConv::C, llvm::WinEH::CE, ConstantFoldLoadThroughBitcast(), ConstantFoldLoadThroughGEPConstantExpr(), dyn_cast(), llvm::StringRef::empty(), FoldReinterpretLoadFromConstPtr(), llvm::ConstantInt::get(), llvm::UndefValue::get(), llvm::ConstantExpr::getBitCast(), getConstantStringInfo(), llvm::Value::getContext(), llvm::Constant::getNullValue(), llvm::ConstantExpr::getOpcode(), llvm::User::getOperand(), llvm::Type::getPrimitiveSizeInBits(), llvm::Value::getType(), GetUnderlyingObject(), llvm::Type::isFloatingPointTy(), llvm::DataLayout::isLittleEndian(), llvm::StringRef::size(), and llvm::tgtok::StrVal.
Referenced by AnalyzeLoadFromClobberingMemInst(), ConstantFoldLoadInst(), ConstantFoldLoadThroughBitcast(), EvaluateExpression(), getMemCmpLoad(), GetMemInstValueForLoad(), and SimplifyWithOpReplaced().
Constant * llvm::ConstantFoldLoadThroughGEPConstantExpr | ( | Constant * | C, |
ConstantExpr * | CE | ||
) |
ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a getelementptr constantexpr, return the constant value being addressed by the constant expression, or null if something is funny and we can't decide.
Definition at line 1198 of file ConstantFolding.cpp.
References llvm::CallingConv::C, llvm::Constant::getAggregateElement(), llvm::User::getNumOperands(), and llvm::User::getOperand().
Referenced by CleanupConstantGlobalUsers(), ConstantFoldLoadFromConstPtr(), and isSimpleEnoughPointerToCommit().
Constant * llvm::ConstantFoldLoadThroughGEPIndices | ( | Constant * | C, |
ArrayRef< Constant * > | Indices | ||
) |
ConstantFoldLoadThroughGEPIndices - Given a constant and getelementptr indices (with an *implied* zero pointer index that is not in the list), return the constant value being addressed by a virtual load, or null if something is funny and we can't decide.
Definition at line 1217 of file ConstantFolding.cpp.
References llvm::CallingConv::C, llvm::Constant::getAggregateElement(), and llvm::ArrayRef< T >::size().
Constant * llvm::ConstantFoldSelectInstruction | ( | Constant * | Cond, |
Constant * | V1, | ||
Constant * | V2 | ||
) |
Definition at line 703 of file ConstantFold.cpp.
References dyn_cast(), llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::getExtractElement(), llvm::User::getOperand(), llvm::ConstantExpr::getSelect(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), llvm::Constant::isAllOnesValue(), llvm::Constant::isNullValue(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::MCID::Select, llvm::SmallVectorTemplateCommon< T >::size(), and llvm::NVPTX::PTXLdStInstCode::V2.
Referenced by llvm::ConstantExpr::getSelect().
Constant * llvm::ConstantFoldShuffleVectorInstruction | ( | Constant * | V1, |
Constant * | V2, | ||
Constant * | Mask | ||
) |
Definition at line 801 of file ConstantFold.cpp.
References llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::VectorType::get(), llvm::ConstantVector::get(), llvm::UndefValue::get(), llvm::Value::getContext(), llvm::ConstantExpr::getExtractElement(), llvm::ShuffleVectorInst::getMaskValue(), llvm::Value::getType(), llvm::Type::getVectorElementType(), llvm::Type::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::ConstantExpr::getShuffleVector().
bool llvm::ConstantFoldTerminator | ( | BasicBlock * | BB, |
bool | DeleteDeadConditions = false , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
ConstantFoldTerminator - If a terminator instruction is predicated on a constant value, convert it into an unconditional branch to the constant destination. This is a nontrivial operation because the successors of this basic block must have their PHI nodes updated. Also calls RecursivelyDeleteTriviallyDeadInstructions() on any branch/switch conditions and indirectbr addresses this might make dead if DeleteDeadConditions is true.
Definition at line 61 of file Local.cpp.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateBr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCondBr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateICmpEQ(), dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::SwitchInst::CaseIteratorT< SwitchInstTy, ConstantIntTy, BasicBlockTy >::getCaseSuccessor(), llvm::SwitchInst::CaseIteratorT< SwitchInstTy, ConstantIntTy, BasicBlockTy >::getCaseValue(), llvm::BasicBlock::getContext(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::ConstantInt::getValue(), llvm::APInt::getZExtValue(), llvm::LLVMContext::MD_prof, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), RecursivelyDeleteTriviallyDeadInstructions(), llvm::BasicBlock::removePredecessor(), llvm::Instruction::setMetadata(), and std::swap().
Referenced by CloneAndPruneFunctionInto(), and markAliveBlocks().
unsigned llvm::convertAddSubFlagsOpcode | ( | unsigned | OldOpc | ) |
Map pseudo instructions that imply an 'S' bit onto real opcodes. Whether the instruction is encoded with an 'S' bit is determined by the optional CPSR def operand.
Definition at line 1890 of file ARMBaseInstrInfo.cpp.
References AddSubFlagsOpcodeMap, array_lengthof(), and AddSubFlagsOpcodePair::MachineOpc.
Referenced by llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), and llvm::ARMAsmPrinter::EmitInstruction().
bool llvm::ConvertCodePointToUTF8 | ( | unsigned | Source, |
char *& | ResultPtr | ||
) |
Definition at line 63 of file ConvertUTFWrapper.cpp.
References conversionOK, ConvertUTF32toUTF8(), llvm::Sched::Source, and strictConversion.
int llvm::ConvertCostTableLookup | ( | const TypeConversionCostTblEntry< TypeTy > * | Tbl, |
unsigned | len, | ||
int | ISD, | ||
CompareTy | Dst, | ||
CompareTy | Src | ||
) |
Find in type conversion cost table, TypeTy must be comparable to CompareTy by ==
Definition at line 59 of file CostTable.h.
Referenced by ConvertCostTableLookup().
int llvm::ConvertCostTableLookup | ( | const TypeConversionCostTblEntry< TypeTy >(&) | Tbl[N], |
int | ISD, | ||
CompareTy | Dst, | ||
CompareTy | Src | ||
) |
Find in type conversion cost table, TypeTy must be comparable to CompareTy by ==
Definition at line 73 of file CostTable.h.
References ConvertCostTableLookup().
bool llvm::ConvertDebugDeclareToDebugValue | ( | DbgDeclareInst * | DDI, |
StoreInst * | SI, | ||
DIBuilder & | Builder | ||
) |
===---------------------------------------------------------------------===// Dbg Intrinsic utilities Inserts a llvm.dbg.value intrinsic before a store to an alloca'd value that has an associated llvm.dbg.decl intrinsic.
Inserts a llvm.dbg.value intrinsic before a store to an alloca'd value that has an associated llvm.dbg.decl intrinsic.
Definition at line 993 of file Local.cpp.
References dyn_cast(), llvm::Instruction::getDebugLoc(), llvm::User::getOperand(), llvm::DbgDeclareInst::getVariable(), llvm::DIBuilder::insertDbgValueIntrinsic(), LdStHasDebugValue(), llvm::Instruction::setDebugLoc(), and SExt.
Referenced by LowerDbgDeclare(), promoteSingleBlockAlloca(), and rewriteSingleStoreAlloca().
bool llvm::ConvertDebugDeclareToDebugValue | ( | DbgDeclareInst * | DDI, |
LoadInst * | LI, | ||
DIBuilder & | Builder | ||
) |
Inserts a llvm.dbg.value intrinsic before a load of an alloca'd value that has an associated llvm.dbg.decl intrinsic.
Definition at line 1022 of file Local.cpp.
References llvm::Instruction::getDebugLoc(), llvm::User::getOperand(), llvm::DbgDeclareInst::getVariable(), llvm::DIBuilder::insertDbgValueIntrinsic(), LdStHasDebugValue(), LI, and llvm::Instruction::setDebugLoc().
bool llvm::convertUTF16ToUTF8String | ( | ArrayRef< char > | SrcBytes, |
std::string & | Out | ||
) |
Definition at line 84 of file ConvertUTFWrapper.cpp.
References llvm::ArrayRef< T >::begin(), conversionOK, ConvertUTF16toUTF8(), llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::end(), I, llvm::ArrayRef< T >::size(), strictConversion, llvm::sys::SwapByteOrder_16(), targetExhausted, UNI_MAX_UTF8_BYTES_PER_CODE_POINT, UNI_UTF16_BYTE_ORDER_MARK_NATIVE, and UNI_UTF16_BYTE_ORDER_MARK_SWAPPED.
Referenced by ExpandResponseFile().
bool llvm::ConvertUTF8toWide | ( | unsigned | WideCharWidth, |
llvm::StringRef | Source, | ||
char *& | ResultPtr, | ||
const UTF8 *& | ErrorPtr | ||
) |
Definition at line 17 of file ConvertUTFWrapper.cpp.
References llvm::StringRef::begin(), conversionOK, ConvertUTF8toUTF16(), ConvertUTF8toUTF32(), llvm::StringRef::data(), llvm::StringRef::end(), isLegalUTF8String(), llvm::LibFunc::memcpy, llvm::StringRef::size(), sourceIllegal, strictConversion, and targetExhausted.
int llvm::CostTableLookup | ( | const CostTblEntry< TypeTy > * | Tbl, |
unsigned | len, | ||
int | ISD, | ||
CompareTy | Ty | ||
) |
Find in cost table, TypeTy must be comparable to CompareTy by ==.
Definition at line 30 of file CostTable.h.
Referenced by CostTableLookup().
int llvm::CostTableLookup | ( | const CostTblEntry< TypeTy >(&) | Tbl[N], |
int | ISD, | ||
CompareTy | Ty | ||
) |
Find in cost table, TypeTy must be comparable to CompareTy by ==.
Definition at line 42 of file CostTable.h.
References CostTableLookup().
unsigned llvm::CountLeadingOnes_32 | ( | uint32_t | Value | ) | [inline] |
CountLeadingOnes_32 - this function performs the operation of counting the number of ones from the most significant bit to the first zero bit. Ex. CountLeadingOnes_32(0xFF0FFF00) == 8. Returns 32 if the word is all ones.
Definition at line 395 of file MathExtras.h.
References countLeadingZeros().
Referenced by llvm::ARM::isBitFieldInvertedMask().
unsigned llvm::CountLeadingOnes_64 | ( | uint64_t | Value | ) | [inline] |
CountLeadingOnes_64 - This function performs the operation of counting the number of ones from the most significant bit to the first zero bit (64 bit edition.) Returns 64 if the word is all ones.
Definition at line 403 of file MathExtras.h.
References countLeadingZeros().
Referenced by llvm::APInt::countLeadingOnes(), isSeveralBitsExtractOpFromShr(), and isStartChunk().
std::enable_if< std::numeric_limits< T >::is_integer &&std::numeric_limits< T >::is_signed, std::size_t >::type llvm::countLeadingZeros | ( | T | Val, |
ZeroBehavior | ZB = ZB_Width |
||
) |
Count number of 0's from the most significant bit to the least stopping at the first 1.
Only unsigned integral types are allowed.
ZB | the behavior on an input of 0. Only ZB_Width and ZB_Undefined are valid arguments. |
Definition at line 120 of file MathExtras.h.
References T.
Referenced by CheckForMaskedLoad(), llvm::SelectionDAG::computeKnownBits(), computeKnownBitsAddSub(), computeKnownBitsFromRangeMetadata(), CountLeadingOnes_32(), CountLeadingOnes_64(), llvm::ScaledNumberBase::countLeadingZeros32(), llvm::ScaledNumberBase::countLeadingZeros64(), llvm::AArch64_AM::decodeLogicalImmediate(), llvm::ScaledNumbers::divide32(), llvm::ScaledNumbers::divide64(), emitT2RegPlusImmediate(), findLastSet(), FitWeights(), FoldMaskAndShiftToScale(), llvm::ScaledNumbers::getAdjusted(), llvm::ScaledNumbers::getLgImpl(), llvm::ARM_AM::getT2SOImmValRotateVal(), getTestUnderMaskCond(), isEndChunk(), llvm::AArch64_AM::isValidDecodeLogicalImmediate(), KnuthDiv(), Log2_32(), Log2_32_Ceil(), Log2_64(), Log2_64_Ceil(), llvm::ScaledNumbers::matchScales(), llvm::ScaledNumbers::multiply64(), llvm::BlockFrequencyInfoImplBase::Distribution::normalize(), PerformBFICombine(), PowerOf2Floor(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::AArch64_AM::processLogicalImmediate(), llvm::ConstantRange::shl(), and llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm().
static uint8_t llvm::CountOfUnwindCodes | ( | std::vector< WinEH::Instruction > & | Insns | ) | [static] |
Definition at line 24 of file MCWin64EH.cpp.
References I, llvm::Win64EH::UOP_AllocLarge, llvm::Win64EH::UOP_AllocSmall, llvm::Win64EH::UOP_PushMachFrame, llvm::Win64EH::UOP_PushNonVol, llvm::Win64EH::UOP_SaveNonVol, llvm::Win64EH::UOP_SaveNonVolBig, llvm::Win64EH::UOP_SaveXMM128, llvm::Win64EH::UOP_SaveXMM128Big, and llvm::Win64EH::UOP_SetFPReg.
Referenced by EmitUnwindInfo().
unsigned llvm::CountPopulation_32 | ( | uint32_t | Value | ) | [inline] |
CountPopulation_32 - this function counts the number of set bits in a value. Ex. CountPopulation(0xF000F000) = 8 Returns 0 if the word is zero.
Definition at line 426 of file MathExtras.h.
Referenced by llvm::BitVector::count(), llvm::SparseBitVectorElement< ElementSize >::count(), llvm::SmallBitVector::count(), and ExpandPowI().
unsigned llvm::CountPopulation_64 | ( | uint64_t | Value | ) | [inline] |
CountPopulation_64 - this function counts the number of set bits in a value, (64 bit edition.)
Definition at line 438 of file MathExtras.h.
Referenced by llvm::BitVector::count(), llvm::SparseBitVectorElement< ElementSize >::count(), llvm::SmallBitVector::count(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), isShiftedMask(), PerformAndCombine(), llvm::APInt::toStringUnsigned(), and llvm::SelectionDAGBuilder::visitBitTestCase().
unsigned llvm::CountTrailingOnes_32 | ( | uint32_t | Value | ) | [inline] |
CountTrailingOnes_32 - this function performs the operation of counting the number of ones from the least significant bit to the first zero bit. Ex. CountTrailingOnes_32(0x00FF00FF) == 8. Returns 32 if the word is all ones.
Definition at line 411 of file MathExtras.h.
References countTrailingZeros().
Referenced by isBitfieldExtractOpFromAnd(), and llvm::ARM::isBitFieldInvertedMask().
unsigned llvm::CountTrailingOnes_64 | ( | uint64_t | Value | ) | [inline] |
CountTrailingOnes_64 - This function performs the operation of counting the number of ones from the least significant bit to the first zero bit (64 bit edition.) Returns 64 if the word is all ones.
Definition at line 419 of file MathExtras.h.
References countTrailingZeros().
Referenced by CheckForMaskedLoad(), llvm::APInt::countPopulation(), FoldMaskAndShiftToScale(), isBitfieldExtractOpFromAnd(), isBitfieldPositioningOp(), isEndChunk(), llvm::AArch64_AM::processLogicalImmediate(), and llvm::SelectionDAGBuilder::visitBitTestCase().
std::enable_if< std::numeric_limits< T >::is_integer &&std::numeric_limits< T >::is_signed, std::size_t >::type llvm::countTrailingZeros | ( | T | Val, |
ZeroBehavior | ZB = ZB_Width |
||
) |
Count number of 0's from the least significant bit to the most stopping at the first 1.
Only unsigned integral types are allowed.
ZB | the behavior on an input of 0. Only ZB_Width and ZB_Undefined are valid arguments. |
Definition at line 49 of file MathExtras.h.
References T.
Referenced by CheckForMaskedLoad(), CollectBSwapParts(), computeKnownBits(), CountTrailingOnes_32(), CountTrailingOnes_64(), llvm::APInt::countTrailingZeros(), llvm::object::ObjectFile::createELFObjectFile(), decodeCRBitMOperand(), llvm::ScaledNumbers::divide64(), llvm::SparseBitVectorElement< ElementSize >::find_first(), llvm::BitVector::find_first(), llvm::SmallBitVector::find_first(), llvm::SparseBitVectorElement< ElementSize >::find_next(), llvm::BitVector::find_next(), llvm::SmallBitVector::find_next(), findFirstSet(), firstCommonClass(), FoldMaskAndShiftToScale(), llvm::TargetRegisterInfo::getAllocatableClass(), llvm::ARM_AM::getSOImmValRotate(), llvm::ARM_AM::getT2SOImmValRotate(), getTestUnderMaskCond(), llvm::ARM_AM::getThumbImm16ValShift(), llvm::ARM_AM::getThumbImmValShift(), isBitfieldPositioningOp(), isShiftedMask(), isStartChunk(), PerformBFICombine(), PerformORCombine(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::ARMInstPrinter::printThumbITMask(), TypeSizeToSizeIndex(), and llvm::SelectionDAGBuilder::visitBitTestCase().
Definition at line 709 of file A15SDOptimizer.cpp.
aa Exhaustive Alias Analysis Precision true FunctionPass * llvm::createAAEvalPass | ( | ) |
Definition at line 88 of file AliasAnalysisEvaluator.cpp.
Definition at line 698 of file AArch64A57FPLoadBalancing.cpp.
Definition at line 411 of file AArch64PBQPRegAlloc.cpp.
References createPBQPRegisterAllocator().
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine().
aarch64 type AArch64 Type Promotion false FunctionPass * llvm::createAArch64AddressTypePromotionPass | ( | ) |
Definition at line 150 of file AArch64AddressTypePromotion.cpp.
Definition at line 393 of file AArch64AdvSIMDScalarPass.cpp.
MCAsmBackend * llvm::createAArch64beAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 559 of file AArch64AsmBackend.cpp.
References llvm::Triple::getOS(), llvm::MCELFObjectTargetWriter::getOSABI(), and llvm::Triple::isOSBinFormatELF().
Referenced by LLVMInitializeAArch64TargetMC().
createAArch64BranchRelaxation - returns an instance of the constpool island pass.
Definition at line 511 of file AArch64BranchRelaxation.cpp.
Definition at line 145 of file AArch64CleanupLocalDynamicTLSPass.cpp.
createAArch64CollectLOHPass - returns an instance of the Statistic for linker optimization pass.
Definition at line 1099 of file AArch64CollectLOH.cpp.
aarch64 AArch64 CCMP false FunctionPass * llvm::createAArch64ConditionalCompares | ( | ) |
Definition at line 768 of file AArch64ConditionalCompares.cpp.
aarch64 AArch64 CondOpt false FunctionPass * llvm::createAArch64ConditionOptimizerPass | ( | ) |
Definition at line 121 of file AArch64ConditionOptimizer.cpp.
Definition at line 133 of file AArch64DeadRegisterDefinitionsPass.cpp.
MCObjectWriter * llvm::createAArch64ELFObjectWriter | ( | raw_ostream & | OS, |
uint8_t | OSABI, | ||
bool | IsLittleEndian | ||
) |
Definition at line 251 of file AArch64ELFObjectWriter.cpp.
References createELFObjectWriter().
MCELFStreamer * llvm::createAArch64ELFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | TAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | Emitter, | ||
bool | RelaxAll, | ||
bool | NoExecStack | ||
) |
Definition at line 150 of file AArch64ELFStreamer.cpp.
Referenced by createMCStreamer().
Returns an instance of the pseudo instruction expansion pass.
Definition at line 735 of file AArch64ExpandPseudoInsts.cpp.
FunctionPass * llvm::createAArch64ISelDag | ( | AArch64TargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createAArch64ISelDag - This pass converts a legalized DAG into a AArch64-specific DAG, ready for instruction scheduling.
Definition at line 3047 of file AArch64ISelDAGToDAG.cpp.
MCAsmBackend * llvm::createAArch64leAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 546 of file AArch64AsmBackend.cpp.
References llvm::Triple::getOS(), llvm::MCELFObjectTargetWriter::getOSABI(), llvm::Triple::isOSBinFormatELF(), and llvm::Triple::isOSDarwin().
Referenced by LLVMInitializeAArch64TargetMC().
createARMLoadStoreOptimizationPass - returns an instance of the load / store optimization pass.
Definition at line 951 of file AArch64LoadStoreOptimizer.cpp.
MCObjectWriter * llvm::createAArch64MachObjectWriter | ( | raw_ostream & | OS, |
uint32_t | CPUType, | ||
uint32_t | CPUSubtype | ||
) |
Definition at line 391 of file AArch64MachObjectWriter.cpp.
References createMachObjectWriter().
MCCodeEmitter * llvm::createAArch64MCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 206 of file AArch64MCCodeEmitter.cpp.
Referenced by LLVMInitializeAArch64TargetMC().
aarch64 promote AArch64 Promote Constant false ModulePass * llvm::createAArch64PromoteConstantPass | ( | ) |
Definition at line 216 of file AArch64PromoteConstant.cpp.
Definition at line 63 of file AArch64StorePairSuppress.cpp.
ImmutablePass* llvm::createAArch64TargetTransformInfoPass | ( | const AArch64TargetMachine * | TM | ) |
Creates an ARM-specific Target Transformation Info pass.
Referenced by llvm::AArch64TargetMachine::addAnalysisPasses().
Definition at line 96 of file AddDiscriminators.cpp.
Definition at line 99 of file ADCE.cpp.
Referenced by LLVMAddAggressiveDCEPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 93 of file AlignmentFromAssumptions.cpp.
Referenced by LLVMAddAlignmentFromAssumptionsPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 44 of file NVPTXAllocaHoisting.cpp.
always Inliner for always_inline false Pass * llvm::createAlwaysInlinerPass | ( | ) |
createAlwaysInlinerPass - Return a new pass object that inlines only functions that are marked as "always_inline".
Definition at line 77 of file InlineAlways.cpp.
Referenced by LLVMAddAlwaysInlinerPass().
Pass * llvm::createAlwaysInlinerPass | ( | bool | InsertLifetime | ) |
Definition at line 79 of file InlineAlways.cpp.
MCAsmBackend * llvm::createAMDGPUAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 136 of file AMDGPUAsmBackend.cpp.
Referenced by LLVMInitializeR600TargetMC().
AMDGPU CFG false FunctionPass * llvm::createAMDGPUCFGStructurizerPass | ( | ) |
Definition at line 1910 of file AMDILCFGStructurizer.cpp.
Definition at line 36 of file AMDGPUELFObjectWriter.cpp.
References createELFObjectWriter().
This pass converts a legalized DAG into a AMDGPU-specific.
Definition at line 124 of file AMDGPUISelDAGToDAG.cpp.
Definition at line 390 of file AMDGPUPromoteAlloca.cpp.
ImmutablePass* llvm::createAMDGPUTargetTransformInfoPass | ( | const AMDGPUTargetMachine * | TM | ) |
Creates an AMDGPU-specific Target Transformation Info pass.
Referenced by llvm::AMDGPUTargetMachine::addAnalysisPasses().
Promote by reference arguments to false Pass * llvm::createArgumentPromotionPass | ( | unsigned | maxElements = 3 | ) |
createArgumentPromotionPass - This pass promotes "by reference" arguments to be passed by value if the number of elements passed is smaller or equal to maxElements (maxElements == 0 means always promote).
Definition at line 105 of file ArgumentPromotion.cpp.
Referenced by LLVMAddArgumentPromotionPass(), and llvm::PassManagerBuilder::populateModulePassManager().
MCAsmBackend * llvm::createARMAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU, | ||
bool | IsLittleEndian | ||
) |
Definition at line 745 of file ARMAsmBackend.cpp.
References llvm::StringSwitch< T, R >::Cases(), llvm::Triple::COFF, llvm::MachO::CPU_SUBTYPE_ARM_V4T, llvm::MachO::CPU_SUBTYPE_ARM_V5TEJ, llvm::MachO::CPU_SUBTYPE_ARM_V6, llvm::MachO::CPU_SUBTYPE_ARM_V6M, llvm::MachO::CPU_SUBTYPE_ARM_V7, llvm::MachO::CPU_SUBTYPE_ARM_V7EM, llvm::MachO::CPU_SUBTYPE_ARM_V7K, llvm::MachO::CPU_SUBTYPE_ARM_V7M, llvm::MachO::CPU_SUBTYPE_ARM_V7S, llvm::StringSwitch< T, R >::Default(), llvm::Triple::ELF, llvm::Triple::getArchName(), llvm::Triple::getObjectFormat(), llvm::MCELFObjectTargetWriter::getOSABI(), llvm::Triple::isOSBinFormatELF(), llvm::Triple::isOSWindows(), llvm_unreachable, and llvm::Triple::MachO.
Referenced by createARMBEAsmBackend(), createARMLEAsmBackend(), createThumbBEAsmBackend(), and createThumbLEAsmBackend().
MCAsmBackend * llvm::createARMBEAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 784 of file ARMAsmBackend.cpp.
References createARMAsmBackend().
Referenced by LLVMInitializeARMTargetMC().
MCCodeEmitter * llvm::createARMBEMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 427 of file ARMMCCodeEmitter.cpp.
Referenced by LLVMInitializeARMTargetMC().
createARMConstantIslandPass - returns an instance of the constpool island pass.
Definition at line 373 of file ARMConstantIslandPass.cpp.
MCObjectWriter * llvm::createARMELFObjectWriter | ( | raw_ostream & | OS, |
uint8_t | OSABI, | ||
bool | IsLittleEndian | ||
) |
createARMELFObjectWriter - Construct an ELF Mach-O object writer.
Definition at line 231 of file ARMELFObjectWriter.cpp.
References createELFObjectWriter().
MCELFStreamer * llvm::createARMELFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | TAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | Emitter, | ||
bool | RelaxAll, | ||
bool | NoExecStack, | ||
bool | IsThumb | ||
) |
Definition at line 1342 of file ARMELFStreamer.cpp.
References llvm::ELF::EF_ARM_EABI_VER5.
Referenced by createMCStreamer().
createARMExpandPseudoPass - returns an instance of the pseudo instruction expansion pass.
Definition at line 1363 of file ARMExpandPseudoInsts.cpp.
Definition at line 171 of file ARMInstrInfo.cpp.
FunctionPass* llvm::createARMGlobalMergePass | ( | const TargetLowering * | tli | ) |
FunctionPass * llvm::createARMISelDag | ( | ARMBaseTargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createARMISelDag - This pass converts a legalized DAG into a ARM-specific DAG, ready for instruction scheduling.
Definition at line 3485 of file ARMISelDAGToDAG.cpp.
MCAsmBackend * llvm::createARMLEAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 778 of file ARMAsmBackend.cpp.
References createARMAsmBackend().
Referenced by LLVMInitializeARMTargetMC().
MCCodeEmitter * llvm::createARMLEMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 420 of file ARMMCCodeEmitter.cpp.
Referenced by LLVMInitializeARMTargetMC().
FunctionPass * llvm::createARMLoadStoreOptimizationPass | ( | bool | PreAlloc = false | ) |
createARMLoadStoreOptimizationPass - returns an instance of the load / store optimization pass.
Definition at line 2138 of file ARMLoadStoreOptimizer.cpp.
MCObjectWriter * llvm::createARMMachObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit, | ||
uint32_t | CPUType, | ||
uint32_t | CPUSubtype | ||
) |
createARMMachObjectWriter - Construct an ARM Mach-O object writer.
Definition at line 485 of file ARMMachObjectWriter.cpp.
References createMachObjectWriter().
createARMMachORelocationInfo - Construct ARM Mach-O relocation info.
createARMMachORelocationInfo - Construct an ARM Mach-O RelocationInfo.
Definition at line 41 of file ARMMachORelocationInfo.cpp.
Referenced by createARMMCRelocationInfo().
MCStreamer * llvm::createARMNullStreamer | ( | MCContext & | Ctx | ) |
Definition at line 1336 of file ARMELFStreamer.cpp.
References createNullStreamer().
Referenced by LLVMInitializeARMTargetMC().
createARMOptimizeBarriersPass - Returns an instance of the remove double barriers pass.
Definition at line 99 of file ARMOptimizeBarriersPass.cpp.
ImmutablePass* llvm::createARMTargetTransformInfoPass | ( | const ARMBaseTargetMachine * | TM | ) |
Creates an ARM-specific Target Transformation Info pass.
Referenced by llvm::ARMBaseTargetMachine::addAnalysisPasses().
MCObjectWriter * llvm::createARMWinCOFFObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit | ||
) |
createARMWinCOFFObjectWriter - Construct an ARM PE/COFF object writer.
Definition at line 77 of file ARMWinCOFFObjectWriter.cpp.
References createWinCOFFObjectWriter().
MCStreamer * llvm::createARMWinCOFFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | MAB, | ||
MCCodeEmitter & | Emitter, | ||
raw_ostream & | OS | ||
) |
createARMWinCOFFStreamer - Construct a PE/COFF machine code streamer which will generate a PE/COFF object file.
Definition at line 41 of file ARMWinCOFFStreamer.cpp.
Referenced by createMCStreamer().
MCStreamer * llvm::createAsmStreamer | ( | MCContext & | Ctx, |
formatted_raw_ostream & | OS, | ||
bool | isVerboseAsm, | ||
bool | useDwarfDirectory, | ||
MCInstPrinter * | InstPrint, | ||
MCCodeEmitter * | CE, | ||
MCAsmBackend * | TAB, | ||
bool | ShowInst | ||
) |
createAsmStreamer - Create a machine code streamer which will print out assembly for the native target, suitable for compiling with a native assembler.
InstPrint | - If given, the instruction printer to use. If not given the MCInst representation will be printed. This method takes ownership of InstPrint. |
CE | - If given, a code emitter to use to show the instruction encoding inline with the assembly. This method takes ownership of CE . |
TAB | - If given, a target asm backend to use to show the fixup information in conjunction with encoding information. This method takes ownership of TAB . |
ShowInst | - Whether to show the MCInst representation inline with the assembly. |
Definition at line 1309 of file MCAsmStreamer.cpp.
Referenced by createMCAsmStreamer(), createMCAsmStreamer(), and createXCoreMCAsmStreamer().
FunctionPass* llvm::createAtomicExpandPass | ( | const TargetMachine * | TM | ) |
createBarrierNoopPass - This pass is purely a module pass barrier in a pass manager.
Definition at line 43 of file BarrierNoopPass.cpp.
Referenced by llvm::PassManagerBuilder::populateModulePassManager().
Basic Alias false ImmutablePass * llvm::createBasicAliasAnalysisPass | ( | ) |
Definition at line 590 of file BasicAliasAnalysis.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses(), and LLVMAddBasicAliasAnalysisPass().
BasicRegisterAllocation Pass - This pass implements a degenerate global register allocator using the basic regalloc framework.
Definition at line 295 of file RegAllocBasic.cpp.
ImmutablePass* llvm::createBasicTargetTransformInfoPass | ( | const TargetMachine * | TM | ) |
Create a basic TargetTransformInfo analysis pass.
This pass implements the target transform info analysis using the target independent information available to the LLVM code generator.
Referenced by llvm::XCoreTargetMachine::addAnalysisPasses(), llvm::ARMBaseTargetMachine::addAnalysisPasses(), llvm::PPCTargetMachine::addAnalysisPasses(), llvm::AArch64TargetMachine::addAnalysisPasses(), llvm::AMDGPUTargetMachine::addAnalysisPasses(), and llvm::LLVMTargetMachine::addAnalysisPasses().
Definition at line 3201 of file BBVectorize.cpp.
Referenced by LLVMAddBBVectorizePass(), and llvm::PassManagerBuilder::populateModulePassManager().
ModulePass * llvm::createBitcodeWriterPass | ( | raw_ostream & | Str | ) |
Create and return a pass that writes the module to the specified ostream. Note that this pass is designed for use with the legacy pass manager.
Definition at line 45 of file BitcodeWriterPass.cpp.
createBlockExtractorPass - This pass extracts all blocks (except those specified in the argument list) from the functions in the module.
Definition at line 209 of file BoundsChecking.cpp.
llvm::ScheduleDAGSDNodes * llvm::createBURRListDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createBURRListDAGScheduler - This creates a bottom up register usage reduction list scheduler.
Definition at line 2980 of file ScheduleDAGRRList.cpp.
References llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, and llvm::SystemZISD::TM.
Referenced by createDefaultScheduler().
Definition at line 90 of file CallPrinter.cpp.
Definition at line 162 of file CFGPrinter.cpp.
Definition at line 158 of file CFGPrinter.cpp.
Simplify the false FunctionPass * llvm::createCFGSimplificationPass | ( | ) |
Definition at line 69 of file SimplifyCFGPass.cpp.
Referenced by LLVMAddCFGSimplificationPass(), llvm::PassManagerBuilder::populateFunctionPassManager(), and llvm::PassManagerBuilder::populateModulePassManager().
Referenced by llvm::TargetPassConfig::addIRPasses().
CGSCCToFunctionPassAdaptor<FunctionPassT> llvm::createCGSCCToFunctionPassAdaptor | ( | FunctionPassT | Pass | ) |
A function to deduce a function pass type and wrap it in the templated adaptor.
Definition at line 585 of file CGSCCPassManager.h.
createCleanupLocalDynamicTLSPass() - This pass combines multiple accesses to local-dynamic TLS variables so that the TLS base address for the module is only fetched once per execution path through the function.
Definition at line 5636 of file X86InstrInfo.cpp.
FunctionPass* llvm::createCodeGenPreparePass | ( | const TargetMachine * | TM = nullptr | ) |
createCodeGenPreparePass - Transform the code to expose more pattern matching during instruction selection.
Referenced by llvm::TargetPassConfig::addCodeGenPrepare().
Definition at line 776 of file COFFAsmParser.cpp.
Definition at line 183 of file ConstantHoisting.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses().
createConstantMergePass - This function returns a new pass that merges duplicate global constants together into a single constant that is shared. This is useful because some passes (ie TraceValues) insert a lot of string constants into the program, regardless of whether or not they duplicate an existing string.
Referenced by LLVMAddConstantMergePass(), and llvm::PassManagerBuilder::populateModulePassManager().
Simple constant false FunctionPass * llvm::createConstantPropagationPass | ( | ) |
Definition at line 60 of file ConstantProp.cpp.
Referenced by LLVMAddConstantPropagationPass().
correlated Value false Pass * llvm::createCorrelatedValuePropagationPass | ( | ) |
Definition at line 68 of file CorrelatedValuePropagation.cpp.
Referenced by LLVMAddCorrelatedValuePropagationPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 74 of file CostModel.cpp.
llvm::ScheduleDAGSDNodes * llvm::createDAGLinearizer | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createDAGLinearizer - This creates a "no-scheduling" scheduler which linearize the DAG using topological order.
Definition at line 799 of file ScheduleDAGFast.cpp.
References llvm::SelectionDAGISel::MF.
Definition at line 913 of file DarwinAsmParser.cpp.
ModulePass* llvm::createDataFlowSanitizerPass | ( | StringRef | ABIListFile = StringRef() , |
void *(*)() | getArgTLS = nullptr , |
||
void *(*)() | getRetValTLS = nullptr |
||
) |
createDeadArgEliminationPass - This pass removes arguments from functions which are not used by the body of the function.
Referenced by LLVMAddDeadArgEliminationPass(), and llvm::PassManagerBuilder::populateModulePassManager().
DeadArgHacking pass - Same as DAE, but delete arguments of external functions as well. This is definitely not safe, and should only be used by bugpoint.
Definition at line 189 of file DeadArgumentElimination.cpp.
Definition at line 102 of file DeadStoreElimination.cpp.
Referenced by LLVMAddDeadStoreEliminationPass(), and llvm::PassManagerBuilder::populateModulePassManager().
ModulePass * llvm::createDebugInfoVerifierPass | ( | bool | FatalErrors = true | ) |
Create a debug-info verifier pass.
Check a module for validity of debug info. This is essentially a pass wrapped around the debug-info parts of verifyModule(). When the pass detects a verification error it is always printed to stderr, and by default they are fatal. You can override that by passing false
to FatalErrors
.
Note that this creates a pass suitable for the legacy pass manager. It has nothing to do with VerifierPass
.
Definition at line 2696 of file Verifier.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses(), llvm::TargetPassConfig::addISelPrepare(), and llvm::PassManagerBuilder::populateLTOPassManager().
ModulePass * llvm::createDebugIRPass | ( | bool | HideDebugIntrinsics, |
bool | HideDebugMetadata, | ||
StringRef | Directory = StringRef() , |
||
StringRef | Filename = StringRef() |
||
) |
createDebugIRPass - Enable interactive stepping through LLVM IR in LLDB (or GDB) and generate a file with the LLVM IR to be displayed in the debugger.
Existing debug metadata is preserved (but may be modified) in order to allow accessing variables in the original source. The line table and file information is modified to correspond to the lines in the LLVM IR. If Filename and Directory are empty, a file name is generated based on existing debug information. If no debug information is available, a temporary file name is generated.
HideDebugIntrinsics | Omit debug intrinsics in emitted IR source file. |
HideDebugMetadata | Omit debug metadata in emitted IR source file. |
Directory | Embed this directory in the debug information. |
Filename | Embed this file name in the debug information. |
Definition at line 610 of file DebugIR.cpp.
createDebugIRPass - Enable interactive stepping through LLVM IR in LLDB (or GDB) with an existing IR file on disk. When creating a DebugIR pass with this function, no source file is output to disk and the existing one is unmodified. Debug metadata in the Module is created/updated to point to the existing textual IR file on disk. NOTE: If the IR file to be debugged is not on disk, use the version of this function with parameters in order to generate the file that will be seen by the debugger.
Definition at line 617 of file DebugIR.cpp.
PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean Quadratic Prograaming (PBQP) based register allocator.
Definition at line 623 of file RegAllocPBQP.cpp.
References createPBQPRegisterAllocator(), and pbqpCoalescing.
ScheduleDAGSDNodes * llvm::createDefaultScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createDefaultScheduler - This creates an instruction scheduler appropriate for the target.
Definition at line 285 of file SelectionDAGISel.cpp.
References createBURRListDAGScheduler(), createHybridListDAGScheduler(), createILPListDAGScheduler(), createSourceListDAGScheduler(), createVLIWDAGScheduler(), llvm::TargetLoweringBase::getSchedulingPreference(), llvm::TargetMachine::getSubtarget(), llvm::SelectionDAGISel::getTargetLowering(), llvm::Sched::Hybrid, llvm::Sched::ILP, llvm::CodeGenOpt::None, llvm::Sched::RegPressure, llvm::Sched::Source, llvm::AArch64DB::ST, llvm::SelectionDAGISel::TM, llvm::TargetSubtargetInfo::useMachineScheduler(), and llvm::Sched::VLIW.
Definition at line 131 of file Reg2Mem.cpp.
Referenced by LLVMAddDemoteMemoryToRegisterPass().
createDependenceAnalysisPass - This creates an instance of the DependenceAnalysis pass.
Definition at line 126 of file DependenceAnalysis.cpp.
Definition at line 228 of file DomPrinter.cpp.
Definition at line 236 of file DomPrinter.cpp.
Definition at line 232 of file DomPrinter.cpp.
createDwarfEHPass - This pass mulches exception handling code into a form adapted to code generation. Required if using dwarf exception handling.
Definition at line 69 of file DwarfEHPrepare.cpp.
Referenced by llvm::TargetPassConfig::addPassesToHandleExceptions().
Definition at line 394 of file EarlyCSE.cpp.
Referenced by LLVMAddEarlyCSEPass(), llvm::PassManagerBuilder::populateFunctionPassManager(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 758 of file ELFAsmParser.cpp.
MCObjectWriter * llvm::createELFObjectWriter | ( | MCELFObjectTargetWriter * | MOTW, |
raw_ostream & | OS, | ||
bool | IsLittleEndian | ||
) |
Construct a new ELF writer instance.
MOTW | - The target specific ELF writer subclass. |
OS | - The stream to write to. |
Definition at line 1834 of file ELFObjectWriter.cpp.
Referenced by createAArch64ELFObjectWriter(), createAMDGPUELFObjectWriter(), createARMELFObjectWriter(), createMipsELFObjectWriter(), createPPCELFObjectWriter(), createSparcELFObjectWriter(), createSystemZObjectWriter(), and createX86ELFObjectWriter().
MCStreamer * llvm::createELFStreamer | ( | MCContext & | Ctx, |
MCAsmBackend & | TAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | CE, | ||
bool | RelaxAll, | ||
bool | NoExecStack | ||
) |
createELFStreamer - Create a machine code streamer which will generate ELF format object files.
Definition at line 544 of file MCELFStreamer.cpp.
References llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::setNoExecStack(), and llvm::MCAssembler::setRelaxAll().
Referenced by createMCStreamer(), and createSystemZMCObjectStreamer().
createX86EmitCodeToMemory - Returns a pass that converts a register allocated function into raw machine code in a dynamically allocated chunk of memory.
createExecutionDependencyFixPass - This pass fixes execution time problems with dependent instructions, such as switching execution domains to match.
The pass will examine instructions using and defining registers in RC.
Definition at line 797 of file ExecutionDepsFix.cpp.
llvm::ScheduleDAGSDNodes * llvm::createFastDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createFastDAGScheduler - This creates a "fast" scheduler.
Definition at line 794 of file ScheduleDAGFast.cpp.
References llvm::SelectionDAGISel::MF.
FastRegisterAllocation Pass - This pass register allocates as fast as possible. It is best suited for debug code where live ranges are short.
Definition at line 1112 of file RegAllocFast.cpp.
Referenced by llvm::TargetPassConfig::createTargetRegisterAllocator().
Flatten the false FunctionPass * llvm::createFlattenCFGPass | ( | ) |
Definition at line 49 of file FlattenCFGPass.cpp.
Deduce function false Pass * llvm::createFunctionAttrsPass | ( | ) |
createFunctionAttrsPass - This pass discovers functions that do not access memory, or only read memory, and gives them the readnone/readonly attribute. It also discovers function arguments that are not captured by the function and marks them with the nocapture attribute.
Definition at line 146 of file FunctionAttrs.cpp.
Referenced by LLVMAddFunctionAttrsPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Function Integration false Pass * llvm::createFunctionInliningPass | ( | ) |
createFunctionInliningPass - Return a new pass object that uses a heuristic to inline direct function calls to small functions.
The Threshold can be passed directly, or asked to be computed from the given optimization and size optimization arguments.
The -inline-threshold command line option takes precedence over the threshold given here.
Definition at line 85 of file InlineSimple.cpp.
Referenced by LLVMAddFunctionInliningPass(), LLVMPassManagerBuilderPopulateLTOPassManager(), and LLVMPassManagerBuilderUseInlinerWithThreshold().
Pass * llvm::createFunctionInliningPass | ( | int | Threshold | ) |
Definition at line 87 of file InlineSimple.cpp.
Pass * llvm::createFunctionInliningPass | ( | unsigned | OptLevel, |
unsigned | SizeOptLevel | ||
) |
Definition at line 91 of file InlineSimple.cpp.
Definition at line 29 of file FunctionTargetTransformInfo.cpp.
FunctionPass * llvm::createGCInfoPrinter | ( | raw_ostream & | OS | ) |
Creates a pass to print GC metadata.
Definition at line 110 of file GCMetadata.cpp.
References Printer.
Referenced by llvm::TargetPassConfig::addMachinePasses().
GCLowering Pass - Performs target-independent LLVM IR transformations for highly portable strategies.
Referenced by llvm::TargetPassConfig::addIRPasses().
ModulePass* llvm::createGCOVProfilerPass | ( | const GCOVOptions & | Options = GCOVOptions::getDefault() | ) |
Definition at line 69 of file NVPTXGenericToNVVM.cpp.
createGlobalDCEPass - This transform is designed to eliminate unreachable internal globals (functions or global variables)
Referenced by LLVMAddGlobalDCEPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Pass * llvm::createGlobalMergePass | ( | const TargetMachine * | TM = nullptr | ) |
Definition at line 360 of file GlobalMerge.cpp.
Global Variable false ModulePass * llvm::createGlobalOptimizerPass | ( | ) |
createGlobalOptimizerPass - This function returns a new pass that optimizes non-address taken internal globals.
Definition at line 101 of file GlobalOpt.cpp.
Referenced by LLVMAddGlobalOptimizerPass(), and llvm::PassManagerBuilder::populateModulePassManager().
globalsmodref Simple mod ref analysis for false Pass * llvm::createGlobalsModRefPass | ( | ) |
Definition at line 202 of file GlobalsModRef.cpp.
std::string llvm::createGraphFilename | ( | const Twine & | Name, |
int & | FD | ||
) |
Definition at line 68 of file GraphWriter.cpp.
References llvm::sys::fs::createTemporaryFile(), errs(), and llvm::SmallString< InternalLen >::str().
Referenced by WriteGraph().
Greedy register allocation pass - This pass implements a global register allocator for optimized builds.
Definition at line 402 of file RegAllocGreedy.cpp.
Referenced by llvm::TargetPassConfig::createTargetRegisterAllocator().
ModulePass * llvm::createGVExtractionPass | ( | std::vector< GlobalValue * > & | GVs, |
bool | deleteFn = false |
||
) |
createGVExtractionPass - If deleteFn is true, this pass deletes the specified global values. Otherwise, it deletes as much of the module as possible, except for the global values specified.
Definition at line 151 of file ExtractGV.cpp.
FunctionPass * llvm::createGVNPass | ( | bool | NoLoads = false | ) |
Definition at line 729 of file GVN.cpp.
Referenced by LLVMAddGVNPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 251 of file HexagonCFGOptimizer.cpp.
Definition at line 674 of file HexagonCopyToCombine.cpp.
FunctionPass* llvm::createHexagonDelaySlotFillerPass | ( | const TargetMachine & | TM | ) |
Definition at line 203 of file HexagonExpandPredSpillCode.cpp.
FunctionPass* llvm::createHexagonFPMoverPass | ( | const TargetMachine & | TM | ) |
Definition at line 292 of file HexagonHardwareLoops.cpp.
FunctionPass * llvm::createHexagonISelDag | ( | HexagonTargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createHexagonISelDag - This pass converts a legalized DAG into a Hexagon-specific DAG, ready for instruction scheduling.
Definition at line 182 of file HexagonISelDAGToDAG.cpp.
Definition at line 654 of file HexagonNewValueJump.cpp.
Definition at line 1423 of file HexagonVLIWPacketizer.cpp.
Definition at line 343 of file HexagonPeephole.cpp.
Definition at line 87 of file HexagonRemoveSZExtArgs.cpp.
Definition at line 179 of file HexagonSplitConst32AndConst64.cpp.
Definition at line 235 of file HexagonSplitTFRCondSets.cpp.
llvm::ScheduleDAGSDNodes * llvm::createHybridListDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createHybridListDAGScheduler - This creates a bottom up register pressure aware list scheduler that make use of latency information to avoid stalls for long latency instructions in low register pressure mode. In high register pressure mode it schedules to reduce register pressure.
Definition at line 3008 of file ScheduleDAGRRList.cpp.
References llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), llvm::SelectionDAGISel::getTargetLowering(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, and llvm::SystemZISD::TM.
Referenced by createDefaultScheduler().
llvm::ScheduleDAGSDNodes * llvm::createILPListDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createILPListDAGScheduler - This creates a bottom up register pressure aware list scheduler that tries to increase instruction level parallelism in low register pressure mode. In high register pressure mode it schedules to reduce register pressure.
Definition at line 3024 of file ScheduleDAGRRList.cpp.
References llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), llvm::SelectionDAGISel::getTargetLowering(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, and llvm::SystemZISD::TM.
Referenced by createDefaultScheduler().
Induction Variable false Pass * llvm::createIndVarSimplifyPass | ( | ) |
Definition at line 134 of file IndVarSimplify.cpp.
Referenced by LLVMAddIndVarSimplifyPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 58 of file Timer.cpp.
References errs(), llvm::sys::fs::F_Append, llvm::sys::fs::F_Text, and getLibSupportInfoOutputFilename().
Referenced by PrintStatistics().
DIVariable llvm::createInlinedVariable | ( | MDNode * | DV, |
MDNode * | InlinedScope, | ||
LLVMContext & | VMContext | ||
) |
createInlinedVariable - Create a new inlined variable based on current variable.
DV | Current Variable. |
InlinedScope | Location at current variable is inlined. |
Definition at line 920 of file DebugInfo.cpp.
References llvm::MDNode::get(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by fixupLineNumbers().
Spiller * llvm::createInlineSpiller | ( | MachineFunctionPass & | pass, |
MachineFunction & | mf, | ||
VirtRegMap & | vrm | ||
) |
Create and return a spiller that will insert spill code directly instead of deferring though VirtRegMap.
Definition at line 188 of file InlineSpiller.cpp.
Referenced by createSpiller().
Definition at line 2971 of file InstructionCombining.cpp.
References InstCombiner.
Referenced by LLVMAddInstructionCombiningPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 114 of file SimplifyInstructions.cpp.
ModulePass * llvm::createInternalizePass | ( | ArrayRef< const char * > | ExportList | ) |
createInternalizePass - This pass loops over all of the functions in the input module, internalizing all globals (functions and variables) it can.
The symbols in ExportList
are never internalized.
The symbol in DSOList are internalized if it is safe to drop them from the symbol table.
Note that commandline options that are used with the above function are not used now!
Definition at line 222 of file Internalize.cpp.
Referenced by LLVMAddInternalizePass().
createInternalizePass - Same as above, but with an empty exportList.
Definition at line 220 of file Internalize.cpp.
createIPConstantPropagationPass - This pass propagates constants from call sites into the bodies of functions.
Referenced by LLVMAddIPConstantPropagationPass().
Interprocedural Sparse Conditional Constant false ModulePass * llvm::createIPSCCPPass | ( | ) |
createIPSCCPPass - This pass propagates constants from call sites into the bodies of functions, and keeps track of whether basic blocks are executable in the process.
Definition at line 1656 of file SCCP.cpp.
Referenced by LLVMAddIPSCCPPass(), and llvm::PassManagerBuilder::populateModulePassManager().
iv Induction Variable true Pass * llvm::createIVUsersPass | ( | ) |
Definition at line 42 of file IVUsers.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().
Creates a JumpInstrTables pass for the given type of jump table.
Definition at line 54 of file JumpInstrTables.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().
createJumpInstrTables - This pass creates jump-instruction tables.
Definition at line 49 of file JumpInstrTables.cpp.
References llvm::JumpTable::Single.
jump Jump false FunctionPass * llvm::createJumpThreadingPass | ( | ) |
Definition at line 150 of file JumpThreading.cpp.
Referenced by LLVMAddJumpThreadingPass(), and llvm::PassManagerBuilder::populateModulePassManager().
createLazyValueInfoPass - This creates an instance of the LazyValueInfo pass.
Definition at line 49 of file LazyValueInfo.cpp.
Pass * llvm::createLCSSAPass | ( | ) |
FunctionPass* llvm::createLibCallAliasAnalysisPass | ( | LibCallInfo * | LCI | ) |
createLibCallAliasAnalysisPass - Create an alias analysis pass that knows about the semantics of a set of libcalls specified by LCI. The newly constructed pass takes ownership of the pointer that is provided.
Pass * llvm::createLICMPass | ( | ) |
Definition at line 217 of file LICM.cpp.
Referenced by LLVMAddLICMPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 265 of file LoadCombine.cpp.
Referenced by llvm::PassManagerBuilder::populateModulePassManager().
loop Delete dead false Pass * llvm::createLoopDeletionPass | ( | ) |
Definition at line 73 of file LoopDeletion.cpp.
Referenced by LLVMAddLoopDeletionPass(), and llvm::PassManagerBuilder::populateModulePassManager().
createLoopExtractorPass - This pass extracts all natural loops from the program into a function if it can.
loop Recognize loop false Pass * llvm::createLoopIdiomPass | ( | ) |
Definition at line 229 of file LoopIdiomRecognize.cpp.
Referenced by LLVMAddLoopIdiomPass(), and llvm::PassManagerBuilder::populateModulePassManager().
loop Simplify instructions in false Pass * llvm::createLoopInstSimplifyPass | ( | ) |
Definition at line 67 of file LoopInstSimplify.cpp.
Definition at line 350 of file LoopRerollPass.cpp.
Referenced by LLVMAddLoopRerollPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Pass * llvm::createLoopRotatePass | ( | int | MaxHeaderSize = -1 | ) |
Definition at line 90 of file LoopRotation.cpp.
Referenced by LLVMAddLoopRotatePass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 790 of file LoopSimplify.cpp.
loop Loop Strength false Pass * llvm::createLoopStrengthReducePass | ( | ) |
Definition at line 5051 of file LoopStrengthReduce.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses().
Pass * llvm::createLoopUnrollPass | ( | int | Threshold = -1 , |
int | Count = -1 , |
||
int | AllowPartial = -1 , |
||
int | Runtime = -1 |
||
) |
Definition at line 197 of file LoopUnrollPass.cpp.
Referenced by createSimpleLoopUnrollPass(), LLVMAddLoopUnrollPass(), and llvm::PassManagerBuilder::populateModulePassManager().
loop Unswitch false Pass * llvm::createLoopUnswitchPass | ( | bool | OptimizeForSize = false | ) |
Definition at line 344 of file LoopUnswitch.cpp.
Referenced by LLVMAddLoopUnswitchPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 6073 of file LoopVectorize.cpp.
Referenced by LLVMAddLoopVectorizePass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 203 of file NVPTXLowerAggrCopies.cpp.
Referenced by llvm::TargetPassConfig::addPassesToHandleExceptions().
Referenced by LLVMAddLowerSwitchPass().
MachineFunctionPass* llvm::createMachineFunctionPrinterPass | ( | raw_ostream & | OS, |
const std::string & | Banner = "" |
||
) |
MachineFunctionPrinter pass - This pass prints out the machine function to the given stream as a debugging tool.
Referenced by INITIALIZE_PASS(), and llvm::TargetPassConfig::printAndVerify().
Definition at line 136 of file MachineRegionInfo.cpp.
FunctionPass* llvm::createMachineVerifierPass | ( | const char * | Banner = nullptr | ) |
createMachineVerifierPass - This pass verifies cenerated machine code instructions for correctness.
Referenced by llvm::TargetPassConfig::printAndVerify().
MCObjectWriter * llvm::createMachObjectWriter | ( | MCMachObjectTargetWriter * | MOTW, |
raw_ostream & | OS, | ||
bool | IsLittleEndian | ||
) |
Construct a new Mach-O writer instance.
This routine takes ownership of the target writer subclass.
MOTW | - The target specific Mach-O writer subclass. |
OS | - The stream to write to. |
Definition at line 1035 of file MachObjectWriter.cpp.
Referenced by createAArch64MachObjectWriter(), createARMMachObjectWriter(), createPPCMachObjectWriter(), and createX86MachObjectWriter().
MCStreamer * llvm::createMachOStreamer | ( | MCContext & | Ctx, |
MCAsmBackend & | TAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | CE, | ||
bool | RelaxAll = false , |
||
bool | LabelSections = false |
||
) |
createMachOStreamer - Create a machine code streamer which will generate Mach-O format object files.
Takes ownership of TAB
and CE
.
Definition at line 456 of file MCMachOStreamer.cpp.
Referenced by createMCStreamer().
MCAsmParser * llvm::createMCAsmParser | ( | SourceMgr & | SM, |
MCContext & | C, | ||
MCStreamer & | Out, | ||
const MCAsmInfo & | MAI | ||
) |
Create an MCAsmParser instance.
Definition at line 4722 of file AsmParser.cpp.
Referenced by llvm::object::IRObjectFile::IRObjectFile().
MCStreamer * llvm::createMCAsmStreamer | ( | MCContext & | Ctx, |
formatted_raw_ostream & | OS, | ||
bool | isVerboseAsm, | ||
bool | useDwarfDirectory, | ||
MCInstPrinter * | InstPrint, | ||
MCCodeEmitter * | CE, | ||
MCAsmBackend * | TAB, | ||
bool | ShowInst | ||
) |
Definition at line 1326 of file ARMELFStreamer.cpp.
References createAsmStreamer().
Referenced by LLVMInitializeARMTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializePowerPCTargetMC(), and LLVMInitializeSparcTargetMC().
MCRelocationInfo * llvm::createMCRelocationInfo | ( | StringRef | TT, |
MCContext & | Ctx | ||
) |
Definition at line 37 of file MCRelocationInfo.cpp.
Referenced by createARMMCRelocationInfo(), and createX86MCRelocationInfo().
MCSymbolizer * llvm::createMCSymbolizer | ( | StringRef | TT, |
LLVMOpInfoCallback | GetOpInfo, | ||
LLVMSymbolLookupCallback | SymbolLookUp, | ||
void * | DisInfo, | ||
MCContext * | Ctx, | ||
MCRelocationInfo * | RelInfo | ||
) |
Definition at line 187 of file MCExternalSymbolizer.cpp.
Definition at line 362 of file MemCpyOptimizer.cpp.
Referenced by LLVMAddMemCpyOptPass(), and llvm::PassManagerBuilder::populateModulePassManager().
print Print MemDeps of true FunctionPass * llvm::createMemDepPrinter | ( | ) |
Definition at line 86 of file MemDepPrinter.cpp.
FunctionPass* llvm::createMemorySanitizerPass | ( | int | TrackOrigins = 0 | ) |
createMergedLoadStoreMotionPass - The public interface to this file.
Definition at line 160 of file MergedLoadStoreMotion.cpp.
References MergedLoadStoreMotion.
Referenced by LLVMAddMergedLoadStoreMotionPass(), and llvm::PassManagerBuilder::populateModulePassManager().
createMergeFunctionsPass - This pass discovers identical functions and collapses them.
Definition at line 1137 of file MergeFunctions.cpp.
Referenced by llvm::PassManagerBuilder::populateModulePassManager().
Create MipsFrameLowering objects.
Definition at line 188 of file Mips16FrameLowering.cpp.
Referenced by llvm::MipsFrameLowering::create().
Definition at line 539 of file Mips16HardFloat.cpp.
References Mips16HardFloat.
Create MipsInstrInfo objects.
Definition at line 452 of file Mips16InstrInfo.cpp.
Referenced by llvm::MipsInstrInfo::create().
Definition at line 320 of file Mips16ISelDAGToDAG.cpp.
Referenced by createMipsISelDag().
const MipsTargetLowering * llvm::createMips16TargetLowering | ( | MipsTargetMachine & | TM, |
const MipsSubtarget & | STI | ||
) |
Create MipsTargetLowering objects.
Definition at line 156 of file Mips16ISelLowering.cpp.
Referenced by llvm::MipsTargetLowering::create().
MCAsmBackend * llvm::createMipsAsmBackendEB32 | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 403 of file MipsAsmBackend.cpp.
Referenced by LLVMInitializeMipsTargetMC().
MCAsmBackend * llvm::createMipsAsmBackendEB64 | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 419 of file MipsAsmBackend.cpp.
Referenced by LLVMInitializeMipsTargetMC().
MCAsmBackend * llvm::createMipsAsmBackendEL32 | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 395 of file MipsAsmBackend.cpp.
Referenced by LLVMInitializeMipsTargetMC().
MCAsmBackend * llvm::createMipsAsmBackendEL64 | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 411 of file MipsAsmBackend.cpp.
Referenced by LLVMInitializeMipsTargetMC().
createMipsLongBranchPass - Returns a pass that converts branches to long branches.
Definition at line 444 of file MipsConstantIslandPass.cpp.
createMipsDelaySlotFillerPass - Returns a pass that fills in delay slots in Mips MachineFunctions
Definition at line 533 of file MipsDelaySlotFiller.cpp.
MCObjectWriter * llvm::createMipsELFObjectWriter | ( | raw_ostream & | OS, |
uint8_t | OSABI, | ||
bool | IsLittleEndian, | ||
bool | Is64Bit | ||
) |
Definition at line 255 of file MipsELFObjectWriter.cpp.
References createELFObjectWriter().
Referenced by llvm::MipsAsmBackend::createObjectWriter().
MCELFStreamer * llvm::createMipsELFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | MAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | Emitter, | ||
const MCSubtargetInfo & | STI, | ||
bool | RelaxAll, | ||
bool | NoExecStack | ||
) |
Definition at line 38 of file MipsELFStreamer.cpp.
Referenced by createMCStreamer().
createMipsISelDag - This pass converts a legalized DAG into a MIPS-specific DAG, ready for instruction scheduling.
Definition at line 236 of file MipsISelDAGToDAG.cpp.
References createMips16ISelDag(), createMipsSEISelDag(), llvm::MipsTargetMachine::getSubtargetImpl(), and llvm::MipsSubtarget::inMips16Mode().
createMipsLongBranchPass - Returns a pass that converts branches to long branches.
Definition at line 99 of file MipsLongBranch.cpp.
MCCodeEmitter * llvm::createMipsMCCodeEmitterEB | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 36 of file MipsMCCodeEmitter.cpp.
Referenced by LLVMInitializeMipsTargetMC().
MCCodeEmitter * llvm::createMipsMCCodeEmitterEL | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 43 of file MipsMCCodeEmitter.cpp.
Referenced by LLVMInitializeMipsTargetMC().
llvm::FunctionPass * llvm::createMipsModuleISelDag | ( | MipsTargetMachine & | TM | ) |
createMipsISelDag - This pass converts a legalized DAG into a MIPS-specific DAG, ready for instruction scheduling.
Definition at line 32 of file MipsModuleISelDAGToDAG.cpp.
MCELFStreamer * llvm::createMipsNaClELFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | TAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | Emitter, | ||
const MCSubtargetInfo & | STI, | ||
bool | RelaxAll, | ||
bool | NoExecStack | ||
) |
Definition at line 254 of file MipsNaClELFStreamer.cpp.
References MIPS_NACL_BUNDLE_ALIGN.
Referenced by createMCStreamer().
Return an OptimizeCall object.
Definition at line 299 of file MipsOptimizePICCall.cpp.
ModulePass * llvm::createMipsOs16 | ( | MipsTargetMachine & | TM | ) |
Definition at line 143 of file MipsOs16.cpp.
Definition at line 703 of file MipsSEFrameLowering.cpp.
Referenced by llvm::MipsFrameLowering::create().
Definition at line 638 of file MipsSEInstrInfo.cpp.
Referenced by llvm::MipsInstrInfo::create().
Definition at line 876 of file MipsSEISelDAGToDAG.cpp.
Referenced by createMipsISelDag().
const MipsTargetLowering * llvm::createMipsSETargetLowering | ( | MipsTargetMachine & | TM, |
const MipsSubtarget & | STI | ||
) |
Definition at line 231 of file MipsSEISelLowering.cpp.
Referenced by llvm::MipsTargetLowering::create().
Definition at line 395 of file MLxExpansionPass.cpp.
ModuleToFunctionPassAdaptor<FunctionPassT> llvm::createModuleToFunctionPassAdaptor | ( | FunctionPassT | Pass | ) |
A function to deduce a function pass type and wrap it in the templated adaptor.
Definition at line 1024 of file IR/PassManager.h.
ModuleToPostOrderCGSCCPassAdaptor<CGSCCPassT> llvm::createModuleToPostOrderCGSCCPassAdaptor | ( | CGSCCPassT | Pass | ) |
A function to deduce a function pass type and wrap it in the templated adaptor.
Definition at line 371 of file CGSCCPassManager.h.
createMSP430BranchSelectionPass - returns an instance of the Branch Selection Pass
Definition at line 52 of file MSP430BranchSelector.cpp.
FunctionPass * llvm::createMSP430ISelDag | ( | MSP430TargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createMSP430ISelDag - This pass converts a legalized DAG into a MSP430-specific DAG, ready for instruction scheduling.
Definition at line 131 of file MSP430ISelDAGToDAG.cpp.
Create the base case instance of a pass in the TTI analysis group.
This class provides the base case for the stack of TTI analyzes. It doesn't delegate to anything and uses the STTI and VTTI objects passed in to satisfy the queries.
Referenced by llvm::MipsTargetMachine::addAnalysisPasses().
MCStreamer * llvm::createNullStreamer | ( | MCContext & | Ctx | ) |
createNullStreamer - Create a dummy machine code streamer, which does nothing. This is useful for timing the assembler front end.
Definition at line 42 of file MCNullStreamer.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), createARMNullStreamer(), and createMipsNullStreamer().
Definition at line 82 of file NVPTXAssignValidGlobalNames.cpp.
Definition at line 193 of file NVPTXFavorNonGenericAddrSpaces.cpp.
Definition at line 176 of file NVPTXImageOptimizer.cpp.
FunctionPass * llvm::createNVPTXISelDag | ( | NVPTXTargetMachine & | TM, |
llvm::CodeGenOpt::Level | OptLevel | ||
) |
createNVPTXISelDag - This pass converts a legalized DAG into a NVPTX-specific DAG, ready for instruction scheduling.
Definition at line 46 of file NVPTXISelDAGToDAG.cpp.
Definition at line 44 of file NVPTXPrologEpilogPass.cpp.
Definition at line 187 of file NVPTXReplaceImageHandles.cpp.
Definition at line 79 of file NVVMReflect.cpp.
ModulePass * llvm::createNVVMReflectPass | ( | const StringMap< int > & | Mapping | ) |
Definition at line 83 of file NVVMReflect.cpp.
objc arc ObjC ARC false Pass * llvm::createObjCARCContractPass | ( | ) |
Definition at line 103 of file ObjCARCContract.cpp.
objc ObjC ARC false Pass * llvm::createObjCARCOptPass | ( | ) |
Definition at line 1173 of file ObjCARCOpts.cpp.
createPartialInliningPass - This pass inlines parts of functions.
Definition at line 159 of file PartiallyInlineLibCalls.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses(), and LLVMAddPartiallyInlineLibCallsPass().
FunctionPass * llvm::createPBQPRegisterAllocator | ( | std::unique_ptr< PBQPBuilder > | builder, |
char * | customPassID = nullptr |
||
) |
Definition at line 618 of file RegAllocPBQP.cpp.
Referenced by createAArch64A57PBQPRegAlloc(), and createDefaultPBQPRegisterAllocator().
Definition at line 244 of file DomPrinter.cpp.
Definition at line 252 of file DomPrinter.cpp.
Definition at line 240 of file DomPrinter.cpp.
Definition at line 47 of file PostDominators.cpp.
Definition at line 248 of file DomPrinter.cpp.
MCAsmBackend * llvm::createPPCAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 236 of file PPCAsmBackend.cpp.
References llvm::Triple::getArch(), llvm::MCELFObjectTargetWriter::getOSABI(), and llvm::Triple::ppc64le.
Referenced by LLVMInitializePowerPCTargetMC().
ppc ctr PowerPC CTR false FunctionPass * llvm::createPPCCTRLoops | ( | PPCTargetMachine & | TM | ) |
Definition at line 154 of file PPCCTRLoops.cpp.
ppc ctr loops PowerPC CTR Loops false FunctionPass * llvm::createPPCCTRLoopsVerify | ( | ) |
Definition at line 165 of file PPCCTRLoops.cpp.
MCObjectWriter * llvm::createPPCELFObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit, | ||
bool | IsLittleEndian, | ||
uint8_t | OSABI | ||
) |
createPPCELFObjectWriter - Construct an PPC ELF object writer.
Definition at line 412 of file PPCELFObjectWriter.cpp.
References createELFObjectWriter().
createPPCISelDag - This pass converts a legalized DAG into a PowerPC-specific DAG, ready for instruction scheduling.
Definition at line 2198 of file PPCISelDAGToDAG.cpp.
MCObjectWriter * llvm::createPPCMachObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit, | ||
uint32_t | CPUType, | ||
uint32_t | CPUSubtype | ||
) |
createPPCELFObjectWriter - Construct a PPC Mach-O object writer.
Definition at line 383 of file PPCMachObjectWriter.cpp.
References createMachObjectWriter().
MCCodeEmitter * llvm::createPPCMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 162 of file PPCMCCodeEmitter.cpp.
References llvm::Triple::getArch(), llvm::MCSubtargetInfo::getTargetTriple(), and llvm::Triple::ppc64le.
Referenced by LLVMInitializePowerPCTargetMC().
ImmutablePass* llvm::createPPCTargetTransformInfoPass | ( | const PPCTargetMachine * | TM | ) |
Creates an PPC-specific Target Transformation Info pass.
Referenced by llvm::PPCTargetMachine::addAnalysisPasses().
Definition at line 1872 of file PPCInstrInfo.cpp.
BasicBlockPass * llvm::createPrintBasicBlockPass | ( | llvm::raw_ostream & | OS, |
const std::string & | Banner = "" |
||
) |
Create and return a pass that writes the BB to the specified raw_ostream
.
Definition at line 124 of file IRPrintingPasses.cpp.
Referenced by llvm::BasicBlockPass::createPrinterPass().
FunctionPass * llvm::createPrintFunctionPass | ( | llvm::raw_ostream & | OS, |
const std::string & | Banner = "" |
||
) |
Create and return a pass that prints functions to the specified raw_ostream
as they are processed.
Definition at line 119 of file IRPrintingPasses.cpp.
Referenced by llvm::TargetPassConfig::addIRPasses(), llvm::TargetPassConfig::addISelPrepare(), llvm::legacy::FunctionPassManagerImpl::createPrinterPass(), and llvm::FunctionPass::createPrinterPass().
ModulePass* llvm::createPrintModulePass | ( | raw_ostream & | OS, |
const std::string & | Banner = "" |
||
) |
Create and return a pass that writes the module to the specified raw_ostream
.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), llvm::ModulePass::createPrinterPass(), and llvm::legacy::PassManagerImpl::createPrinterPass().
Definition at line 93 of file Mem2Reg.cpp.
Referenced by LLVMAddPromoteMemoryToRegisterPass().
prune Remove unused exception handling info false false Pass * llvm::createPruneEHPass | ( | ) | [final] |
createPruneEHPass - Return a new pass object which transforms invoke instructions into calls, if the callee can _not_ unwind the stack.
Definition at line 59 of file PruneEH.cpp.
Referenced by LLVMAddPruneEHPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 204 of file R600ClauseMergePass.cpp.
Definition at line 681 of file R600ControlFlowFinalizer.cpp.
R600 Emit Clause false llvm::FunctionPass * llvm::createR600EmitClauseMarkers | ( | ) |
Definition at line 333 of file R600EmitClauseMarkers.cpp.
Definition at line 55 of file R600ExpandSpecialInstrs.cpp.
MCCodeEmitter * llvm::createR600MCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 83 of file R600MCCodeEmitter.cpp.
Referenced by createAMDGPUMCCodeEmitter().
Definition at line 406 of file R600Packetizer.cpp.
Definition at line 301 of file R600TextureIntrinsicsReplacer.cpp.
Definition at line 381 of file R600OptimizeVectorRegisters.cpp.
Referenced by LLVMAddReassociatePass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 169 of file RegionInfo.cpp.
Definition at line 217 of file RegionPrinter.cpp.
Definition at line 209 of file RegionPrinter.cpp.
Definition at line 213 of file RegionPrinter.cpp.
static std::unique_ptr<RuntimeDyldELF> llvm::createRuntimeDyldELF | ( | RTDyldMemoryManager * | MM, |
bool | ProcessAllSections, | ||
RuntimeDyldCheckerImpl * | Checker | ||
) | [static] |
Definition at line 782 of file RuntimeDyld.cpp.
Referenced by llvm::RuntimeDyld::loadObject().
static std::unique_ptr<RuntimeDyldMachO> llvm::createRuntimeDyldMachO | ( | Triple::ArchType | Arch, |
RTDyldMemoryManager * | MM, | ||
bool | ProcessAllSections, | ||
RuntimeDyldCheckerImpl * | Checker | ||
) | [static] |
Definition at line 791 of file RuntimeDyld.cpp.
References llvm::RuntimeDyldMachO::create().
Referenced by llvm::RuntimeDyld::loadObject().
Definition at line 753 of file SampleProfile.cpp.
References SampleProfileFile.
Definition at line 757 of file SampleProfile.cpp.
scev ScalarEvolution based Alias false FunctionPass * llvm::createScalarEvolutionAliasAnalysisPass | ( | ) |
Definition at line 69 of file ScalarEvolutionAliasAnalysis.cpp.
Definition at line 663 of file Scalarizer.cpp.
Referenced by LLVMAddScalarizerPass().
FunctionPass* llvm::createScalarReplAggregatesPass | ( | signed | Threshold = -1 , |
bool | UseDomTree = true , |
||
signed | StructMemberThreshold = -1 , |
||
signed | ArrayElementThreshold = -1 , |
||
signed | ScalarLoadThreshold = -1 |
||
) |
Referenced by LLVMAddSCCPPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Referenced by llvm::TargetPassConfig::addIRPasses(), and LLVMAddScopedNoAliasAAPass().
separate const offset from Split GEPs to a variadic base and a constant offset for better false FunctionPass * llvm::createSeparateConstOffsetFromGEPPass | ( | ) |
Definition at line 292 of file SeparateConstOffsetFromGEP.cpp.
Create the annotation pass.
Definition at line 327 of file SIAnnotateControlFlow.cpp.
FunctionPass* llvm::createSICodeEmitterPass | ( | formatted_raw_ostream & | OS | ) |
Definition at line 114 of file SIFixSGPRCopies.cpp.
Definition at line 70 of file SIFixSGPRLiveRanges.cpp.
Definition at line 120 of file SIInsertWaits.cpp.
Definition at line 112 of file SILowerControlFlow.cpp.
Definition at line 68 of file SILowerI1Copies.cpp.
MCCodeEmitter * llvm::createSIMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 79 of file SIMCCodeEmitter.cpp.
Referenced by createAMDGPUMCCodeEmitter().
Definition at line 202 of file LoopUnrollPass.cpp.
References createLoopUnrollPass().
Referenced by llvm::PassManagerBuilder::populateModulePassManager().
createSingleLoopExtractorPass - This pass extracts one natural loop from the program into a function if it can. This is used by bugpoint.
Definition at line 155 of file LoopExtractor.cpp.
Definition at line 69 of file SIShrinkInstructions.cpp.
Definition at line 160 of file SITypeRewriter.cpp.
createSjLjEHPreparePass - This pass adapts exception handling code to use the GCC-style builtin setjmp/longjmp (sjlj) to handling EH control flow.
Definition at line 86 of file SjLjEHPrepare.cpp.
Referenced by llvm::TargetPassConfig::addPassesToHandleExceptions().
SlotTracker * llvm::createSlotTracker | ( | const Module * | M | ) |
Create a new SlotTracker for a Module.
Definition at line 606 of file AsmWriter.cpp.
static SlotTracker* llvm::createSlotTracker | ( | const Value * | V | ) | [static] |
Definition at line 610 of file AsmWriter.cpp.
Definition at line 3754 of file SLPVectorizer.cpp.
Referenced by LLVMAddSLPVectorizePass(), and llvm::PassManagerBuilder::populateModulePassManager().
llvm::ScheduleDAGSDNodes * llvm::createSourceListDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createBURRListDAGScheduler - This creates a bottom up list scheduler that schedules nodes in source code order when possible.
Definition at line 2994 of file ScheduleDAGRRList.cpp.
References llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, and llvm::SystemZISD::TM.
Referenced by createDefaultScheduler().
MCAsmBackend * llvm::createSparcAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 256 of file SparcAsmBackend.cpp.
Referenced by LLVMInitializeSparcTargetMC().
createSparcDelaySlotFillerPass - Returns a pass that fills in delay slots in Sparc MachineFunctions
Definition at line 102 of file DelaySlotFiller.cpp.
MCObjectWriter * llvm::createSparcELFObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit, | ||
uint8_t | OSABI | ||
) |
Definition at line 107 of file SparcELFObjectWriter.cpp.
References createELFObjectWriter().
createSparcISelDag - This pass converts a legalized DAG into a SPARC-specific DAG, ready for instruction scheduling.
Definition at line 220 of file SparcISelDAGToDAG.cpp.
MCCodeEmitter * llvm::createSparcMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 75 of file SparcMCCodeEmitter.cpp.
Referenced by LLVMInitializeSparcTargetMC().
llvm::Spiller * llvm::createSpiller | ( | MachineFunctionPass & | pass, |
MachineFunction & | mf, | ||
VirtRegMap & | vrm | ||
) |
Create and return a spiller object, as specified on the command line.
Definition at line 176 of file Spiller.cpp.
References createInlineSpiller(), llvm_unreachable, and spillerOpt.
FunctionPass * llvm::createSROAPass | ( | bool | RequiresDomTree = true | ) |
Definition at line 1002 of file SROA.cpp.
Referenced by llvm::PassManagerBuilder::populateFunctionPassManager(), and llvm::PassManagerBuilder::populateModulePassManager().
FunctionPass* llvm::createStackProtectorPass | ( | const TargetMachine * | TM | ) |
createStackProtectorPass - This pass adds stack protectors to functions.
Referenced by llvm::TargetPassConfig::addISelPrepare().
createStripDeadPrototypesPass - This pass removes any function declarations (prototypes) that are not used.
Definition at line 72 of file StripDeadPrototypes.cpp.
Referenced by LLVMAddStripDeadPrototypesPass(), and llvm::PassManagerBuilder::populateModulePassManager().
ModulePass* llvm::createStripSymbolsPass | ( | bool | OnlyDebugInfo = false | ) |
Referenced by LLVMAddStripSymbolsPass(), and llvm::PassManagerBuilder::populateLTOPassManager().
Create the pass.
Definition at line 889 of file StructurizeCFG.cpp.
Definition at line 95 of file SystemZElimCompare.cpp.
FunctionPass * llvm::createSystemZISelDag | ( | SystemZTargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
Definition at line 337 of file SystemZISelDAGToDAG.cpp.
Definition at line 169 of file SystemZLongBranch.cpp.
MCAsmBackend * llvm::createSystemZMCAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 112 of file SystemZMCAsmBackend.cpp.
References llvm::MCELFObjectTargetWriter::getOSABI().
Referenced by LLVMInitializeSystemZTargetMC().
MCCodeEmitter * llvm::createSystemZMCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 95 of file SystemZMCCodeEmitter.cpp.
Referenced by LLVMInitializeSystemZTargetMC().
MCObjectWriter * llvm::createSystemZObjectWriter | ( | raw_ostream & | OS, |
uint8_t | OSABI | ||
) |
Definition at line 111 of file SystemZMCObjectWriter.cpp.
References createELFObjectWriter().
Definition at line 51 of file SystemZShortenInst.cpp.
Tail Call false FunctionPass * llvm::createTailCallEliminationPass | ( | ) |
Definition at line 132 of file TailRecursionElimination.cpp.
Referenced by LLVMAddTailCallEliminationPass(), and llvm::PassManagerBuilder::populateModulePassManager().
Definition at line 123 of file ThreadSanitizer.cpp.
createThumb2ITBlockPass - Returns an instance of the Thumb2 IT blocks insertion pass.
Definition at line 281 of file Thumb2ITBlockPass.cpp.
createThumb2SizeReductionPass - Returns an instance of the Thumb2 size reduction pass.
Definition at line 1032 of file Thumb2SizeReduction.cpp.
MCAsmBackend * llvm::createThumbBEAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 796 of file ARMAsmBackend.cpp.
References createARMAsmBackend().
Referenced by LLVMInitializeARMTargetMC().
MCAsmBackend * llvm::createThumbLEAsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 790 of file ARMAsmBackend.cpp.
References createARMAsmBackend().
Referenced by LLVMInitializeARMTargetMC().
Referenced by llvm::TargetPassConfig::addIRPasses(), and LLVMAddTypeBasedAliasAnalysisPass().
createUnreachableBlockEliminationPass - The LLVM code generator does not work well with unreachable basic blocks (what live ranges make sense for a block that cannot be reached?). As such, a code generator should either not instruction select unreachable blocks, or run this pass as its last LLVM modifying pass to clean up blocks that are not reachable from the entry block.
Referenced by llvm::TargetPassConfig::addIRPasses(), and llvm::TargetPassConfig::addPassesToHandleExceptions().
FunctionPass* llvm::createVerifierPass | ( | bool | FatalErrors = true | ) |
Create a verifier pass.
Check a module or function for validity. This is essentially a pass wrapped around the above verifyFunction and verifyModule routines and functionality. When the pass detects a verification error it is always printed to stderr, and by default they are fatal. You can override that by passing false
to FatalErrors
.
Note that this creates a pass suitable for the legacy pass manager. It has nothing to do with VerifierPass
.
Referenced by llvm::TargetPassConfig::addIRPasses(), llvm::TargetPassConfig::addISelPrepare(), LLVMAddVerifierPass(), and llvm::PassManagerBuilder::populateLTOPassManager().
ScheduleDAGSDNodes * llvm::createVLIWDAGScheduler | ( | SelectionDAGISel * | IS, |
CodeGenOpt::Level | OptLevel | ||
) |
createVLIWDAGScheduler - This creates a top-down list scheduler.
createVLIWDAGScheduler - Scheduler for VLIW targets. This creates top down DFA driven list scheduler with clustering heuristic to control register pressure.
Definition at line 280 of file ScheduleDAGVLIW.cpp.
References llvm::SelectionDAGISel::AA, and llvm::SelectionDAGISel::MF.
Referenced by createDefaultScheduler().
MCObjectWriter * llvm::createWinCOFFObjectWriter | ( | MCWinCOFFObjectTargetWriter * | MOTW, |
raw_ostream & | OS | ||
) |
Construct a new Win COFF writer instance.
MOTW | - The target specific WinCOFF writer subclass. |
OS | - The stream to write to. |
Definition at line 1095 of file WinCOFFObjectWriter.cpp.
Referenced by createARMWinCOFFObjectWriter(), and createX86WinCOFFObjectWriter().
MCAsmBackend * llvm::createX86_32AsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 822 of file X86AsmBackend.cpp.
References llvm::Triple::getOS(), llvm::MCELFObjectTargetWriter::getOSABI(), llvm::Triple::isOSBinFormatELF(), llvm::Triple::isOSBinFormatMachO(), and llvm::Triple::isOSWindows().
Referenced by LLVMInitializeX86TargetMC().
MCAsmBackend * llvm::createX86_64AsmBackend | ( | const Target & | T, |
const MCRegisterInfo & | MRI, | ||
StringRef | TT, | ||
StringRef | CPU | ||
) |
Definition at line 838 of file X86AsmBackend.cpp.
References llvm::MachO::CPU_SUBTYPE_X86_64_ALL, llvm::MachO::CPU_SUBTYPE_X86_64_H, llvm::StringSwitch< T, R >::Default(), llvm::Triple::getArchName(), llvm::Triple::getEnvironment(), llvm::Triple::getOS(), llvm::MCELFObjectTargetWriter::getOSABI(), llvm::Triple::GNUX32, llvm::Triple::isOSBinFormatELF(), llvm::Triple::isOSBinFormatMachO(), and llvm::Triple::isOSWindows().
Referenced by LLVMInitializeX86TargetMC().
createX86_64ELFORelocationInfo - Construct X86-64 ELF relocation info.
createX86ELFRelocationInfo - Construct an X86 Mach-O RelocationInfo.
Definition at line 132 of file X86ELFRelocationInfo.cpp.
Referenced by createX86MCRelocationInfo().
createX86_64MachORelocationInfo - Construct X86-64 Mach-O relocation info.
createX86_64MachORelocationInfo - Construct an X86-64 Mach-O RelocationInfo.
Definition at line 114 of file X86MachORelocationInfo.cpp.
Referenced by createX86MCRelocationInfo().
X86AsmInstrumentation * llvm::CreateX86AsmInstrumentation | ( | const MCTargetOptions & | MCOptions, |
const MCContext & | Ctx, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 839 of file X86AsmInstrumentation.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCSubtargetInfo::getTargetTriple(), llvm::MCTargetOptions::SanitizeAddress, and T.
MCObjectWriter * llvm::createX86ELFObjectWriter | ( | raw_ostream & | OS, |
bool | IsELF64, | ||
uint8_t | OSABI, | ||
uint16_t | EMachine | ||
) |
createX86ELFObjectWriter - Construct an X86 ELF object writer.
Definition at line 265 of file X86ELFObjectWriter.cpp.
References createELFObjectWriter().
createX86FixupLEAs - Return a a pass that selectively replaces certain instructions (like add, sub, inc, dec, some shifts, and some multiplies) by equivalent LEA instructions, in order to eliminate execution delays in some Atom processors.
Definition at line 149 of file X86FixupLEAs.cpp.
createX86FloatingPointStackifierPass - This function returns a pass which converts floating point register references and pseudo instructions into floating point stack references and physical instructions.
Definition at line 284 of file X86FloatingPoint.cpp.
createX86GlobalBaseRegPass - This pass initializes a global base register for PIC on x86-32.
Definition at line 5522 of file X86InstrInfo.cpp.
FunctionPass * llvm::createX86ISelDag | ( | X86TargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createX86ISelDag - This pass converts a legalized DAG into a X86-specific DAG, ready for instruction scheduling.
Definition at line 2793 of file X86ISelDAGToDAG.cpp.
createX86IssueVZeroUpperPass - This pass inserts AVX vzeroupper instructions before each call to avoid transition penalty between functions encoded with AVX and SSE.
Definition at line 91 of file X86VZeroUpper.cpp.
MCObjectWriter * llvm::createX86MachObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit, | ||
uint32_t | CPUType, | ||
uint32_t | CPUSubtype | ||
) |
createX86MachObjectWriter - Construct an X86 Mach-O object writer.
Definition at line 601 of file X86MachObjectWriter.cpp.
References createMachObjectWriter().
MCCodeEmitter * llvm::createX86MCCodeEmitter | ( | const MCInstrInfo & | MCII, |
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI, | ||
MCContext & | Ctx | ||
) |
Definition at line 172 of file X86MCCodeEmitter.cpp.
Referenced by LLVMInitializeX86TargetMC().
createX86PadShortFunctions - Return a pass that pads short functions with NOOPs. This will prevent a stall when returning on the Atom.
Definition at line 89 of file X86PadShortFunction.cpp.
ImmutablePass* llvm::createX86TargetTransformInfoPass | ( | const X86TargetMachine * | TM | ) |
Creates an X86-specific Target Transformation Info pass.
MCObjectWriter * llvm::createX86WinCOFFObjectWriter | ( | raw_ostream & | OS, |
bool | Is64Bit | ||
) |
createX86WinCOFFObjectWriter - Construct an X86 Win COFF object writer.
Definition at line 91 of file X86WinCOFFObjectWriter.cpp.
References createWinCOFFObjectWriter().
MCStreamer * llvm::createX86WinCOFFStreamer | ( | MCContext & | C, |
MCAsmBackend & | AB, | ||
MCCodeEmitter * | CE, | ||
raw_ostream & | OS, | ||
bool | RelaxAll | ||
) |
createX86WinCOFFStreamer - Construct an X86 Windows COFF machine code streamer which will generate PE/COFF format object files.
Takes ownership of AB
and CE
.
Definition at line 52 of file X86WinCOFFStreamer.cpp.
Referenced by createMCStreamer().
createXCoreFrameToArgsOffsetEliminationPass - returns an instance of the Frame to args offset elimination pass
Definition at line 41 of file XCoreFrameToArgsOffsetElim.cpp.
FunctionPass * llvm::createXCoreISelDag | ( | XCoreTargetMachine & | TM, |
CodeGenOpt::Level | OptLevel | ||
) |
createXCoreISelDag - This pass converts a legalized DAG into a XCore-specific DAG, ready for instruction scheduling.
Definition at line 85 of file XCoreISelDAGToDAG.cpp.
ImmutablePass* llvm::createXCoreTargetTransformInfoPass | ( | const XCoreTargetMachine * | TM | ) |
Referenced by llvm::XCoreTargetMachine::addAnalysisPasses().
raw_ostream & llvm::dbgs | ( | ) |
dbgs - Return a circular-buffered debug stream.
dbgs() - This returns a reference to a raw_ostream for debugging messages. If debugging is disabled it returns errs(). Use it like: dbgs() << "foo" << "bar";
Definition at line 102 of file Debug.cpp.
References llvm::sys::AddSignalHandler(), debug_user_sig_handler(), DebugBufferSize, DebugFlag, EnableDebugBuffering, and errs().
Referenced by llvm::InstCombineWorklist::Add(), addChainDependency(), llvm::ExecutionEngine::addGlobalMapping(), llvm::InstCombineWorklist::AddInitialGroup(), llvm::TargetPassConfig::addIRPasses(), llvm::TargetPassConfig::addISelPrepare(), llvm::PMDataManager::addLowerLevelRequiredPass(), llvm::TargetPassConfig::addMachinePasses(), AddReachableCodeToWorklist(), llvm::DwarfUnit::addRegisterOpPiece(), llvm::DIEHash::addSLEB128(), llvm::BlockFrequencyInfoImplBase::addToDist(), llvm::DIEHash::addULEB128(), llvm::IVUsers::AddUsersImpl(), AdjustStackOffset(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::RegAllocBase::allocatePhysRegs(), llvm::AllocationOrder::AllocationOrder(), llvm::HexagonInstrInfo::AnalyzeBranch(), llvm::Hexagon_CCState::AnalyzeCallOperands(), llvm::CCState::AnalyzeCallOperands(), llvm::MipsTargetLowering::MipsCC::analyzeCallOperands(), llvm::Hexagon_CCState::AnalyzeCallResult(), llvm::CCState::AnalyzeCallResult(), llvm::Hexagon_CCState::AnalyzeFormalArguments(), llvm::CCState::AnalyzeFormalArguments(), llvm::MipsTargetLowering::MipsCC::analyzeFormalArguments(), AnalyzeLoadFromClobberingWrite(), llvm::Hexagon_CCState::AnalyzeReturn(), llvm::CCState::AnalyzeReturn(), llvm::LiveRegMatrix::assign(), llvm::SelectionDAG::AssignTopologicalOrder(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), BreakUpSubtract(), BUCompareLatency(), llvm::PBQPBuilderWithCoalescing::build(), llvm::SchedBoundary::bumpCycle(), llvm::SchedBoundary::bumpNode(), BURRSort(), llvm::LiveRangeEdit::calculateRegClassAndHint(), calculateSpillWeightsAndHints(), CanPropagatePredecessorsForPHIs(), llvm::RuntimeDyldCheckerImpl::check(), llvm::GenericScheduler::checkAcyclicLatency(), checkForCyclesHelper(), llvm::SchedBoundary::checkHazard(), clampStackAlignment(), collectInvolvedReg(), llvm::SCEVAddRecExpr::collectParametricTerms(), completeEphemeralValues(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::SCEVAddRecExpr::computeAccessFunctions(), computeADRP(), llvm::ScheduleDAGMILive::computeCyclicCriticalPath(), llvm::LiveIntervals::computeDeadValues(), llvm::BlockFrequencyInfoImplBase::computeLoopScale(), computeOthers(), convertFloatingToInteger(), llvm::SchedBoundary::countResource(), createIrreducibleLoop(), llvm::X86Disassembler::Debug(), debug_user_sig_handler(), DeleteInstructionInBlock(), llvm::SCEVAddRecExpr::delinearize(), llvm::DependenceAnalysis::depends(), llvm::Constant::destroyConstantImpl(), llvm::BlockFrequencyInfoImplBase::distributeMass(), llvm::BlockFrequencyInfoImpl< BT >::doFunction(), llvm::InstCombiner::DoOneIteration(), llvm::Comdat::dump(), llvm::MCLabel::dump(), llvm::BranchProbability::dump(), llvm::RegisterPressure::dump(), llvm::MachineLoop::dump(), llvm::MCValue::dump(), llvm::LiveDebugVariables::dump(), llvm::ILPValue::dump(), llvm::MCParsedAsmOperand::dump(), llvm::LatencyPriorityQueue::dump(), llvm::PHITransAddr::dump(), llvm::SubtargetFeatures::dump(), llvm::ValueEnumerator::dump(), llvm::DIEAbbrev::dump(), llvm::DominanceFrontierBase< BlockT >::dump(), llvm::DebugLoc::dump(), llvm::CallGraph::dump(), llvm::LiveVariables::VarInfo::dump(), llvm::Trace::dump(), llvm::LexicalScope::dump(), llvm::bfi_detail::BlockMass::dump(), llvm::Type::dump(), llvm::MachineJumpTableInfo::dump(), llvm::Pass::dump(), llvm::ResourcePriorityQueue::dump(), llvm::SCEV::dump(), llvm::LivePhysRegs::dump(), llvm::DwarfAccelTable::Atom::dump(), llvm::MCOperand::dump(), llvm::MCSymbol::dump(), llvm::PMStack::dump(), llvm::DIDescriptor::dump(), llvm::SlotIndex::dump(), llvm::MachineConstantPool::dump(), llvm::IVUsers::dump(), llvm::VirtRegMap::dump(), llvm::AliasSet::dump(), llvm::LiveRange::Segment::dump(), llvm::MCInst::dump(), llvm::Value::dump(), llvm::DIE::dump(), llvm::DominanceFrontier::dump(), llvm::CallGraphNode::dump(), llvm::DIEValue::dump(), llvm::DwarfAccelTable::dump(), llvm::ConstantRange::dump(), llvm::GCOVFunction::dump(), llvm::MachineFunction::dump(), llvm::NamedMDNode::dump(), llvm::GCOVBlock::dump(), llvm::AttributeSet::dump(), llvm::SlotIndexes::dump(), llvm::CallGraphWrapperPass::dump(), llvm::AliasSetTracker::dump(), llvm::SplitEditor::dump(), llvm::RegPressureTracker::dump(), llvm::ScaledNumberBase::dump(), llvm::RegionBase< Tr >::dump(), llvm::Twine::dump(), llvm::BlockFrequencyInfoImplBase::dump(), llvm::Loop::dump(), llvm::DIETypeSignature::dump(), llvm::SUnit::dump(), llvm::LiveRange::dump(), llvm::ReadyQueue::dump(), llvm::LiveInterval::dump(), llvm::Module::dump(), llvm::MachineFrameInfo::dump(), llvm::ConstantUniqueMap< ConstantStruct >::dump(), llvm::MachineBasicBlock::dump(), llvm::SDNode::dump(), llvm::RegionInfoBase< Tr >::dump(), llvm::MachineInstr::dump(), llvm::SelectionDAG::dump(), llvm::APInt::dump(), llvm::SUnit::dumpAll(), llvm::PMTopLevelManager::dumpArguments(), sampleprof::SampleProfileReader::dumpFunctionProfile(), llvm::PMDataManager::dumpLastUses(), dumpMachineInstrRangeWithSlotIndex(), llvm::ScheduleDAGSDNodes::dumpNode(), DumpNodes(), llvm::PMDataManager::dumpPassArguments(), llvm::PMDataManager::dumpPassInfo(), llvm::Pass::dumpPassStructure(), llvm::FPPassManager::dumpPassStructure(), llvm::SDNode::dumpr(), dumpRegSetPressure(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::Twine::dumpRepr(), llvm::SDNode::dumprWithDepth(), llvm::ScheduleDAGSDNodes::dumpSchedule(), llvm::ScheduleDAGMI::dumpSchedule(), llvm::SchedBoundary::dumpScheduledState(), dumpSectionMemory(), dumpSmallBitVector(), llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::LiveRangeEdit::eliminateDeadDefs(), EliminateDeadSwitchCases(), llvm::RuntimeDyldImpl::emitCommonSymbols(), llvm::PPCDispatchGroupSBHazardRecognizer::EmitInstruction(), llvm::TargetLowering::EmitInstrWithCustomInserter(), llvm::RuntimeDyldImpl::emitSection(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvAtEnd(), llvm::SplitEditor::enterIntvBefore(), llvm::InstCombiner::EraseInstFromFunction(), EvaluateStaticConstructor(), executeCmpInst(), executeFAddInst(), executeFCMP_OEQ(), executeFCMP_OGE(), executeFCMP_OGT(), executeFCMP_OLE(), executeFCMP_OLT(), executeFCMP_ONE(), executeFDivInst(), executeFMulInst(), executeFRemInst(), executeFSubInst(), executeICMP_EQ(), executeICMP_NE(), executeICMP_SGE(), executeICMP_SGT(), executeICMP_SLE(), executeICMP_SLT(), executeICMP_UGE(), executeICMP_UGT(), executeICMP_ULE(), executeICMP_ULT(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), extractInteger(), extractVector(), fdbgs(), llvm::SchedDFSImpl::finalize(), llvm::ScalarEvolution::findArrayDimensions(), llvm::SSAUpdaterImpl< UpdaterT >::FindAvailableVals(), findCallees(), llvm::GCStrategy::findCustomSafePoints(), findGCD(), findIrreducibleHeaders(), llvm::SchedBoundary::findMaxLatency(), llvm::RegScavenger::FindUnusedReg(), llvm::SplitEditor::finish(), llvm::ScheduleDAGInstrs::fixupKills(), FoldBlockIntoPredecessor(), FoldBranchToCommonDest(), llvm::InstCombiner::FoldShiftByConstant(), FoldTwoEntryPHINode(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::FunctionLoweringInfo::getArgumentFrameIndex(), llvm::ScoreboardHazardRecognizer::getHazardType(), llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::InlineCostAnalysis::getInlineCost(), GetLoadValueForLoad(), llvm::RegPressureTracker::getMaxUpwardPressureDelta(), getNewAlignment(), getNewAlignmentDiff(), llvm::SchedBoundary::getOtherResourceCount(), getPreStartForSignExtend(), llvm::DependenceAnalysis::getSplitIteration(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), hasOutsideLoopUser(), hasVRegCycleUse(), llvm::ExecutionEngine::InitializeMemory(), llvm::ScheduleDAGMILive::initRegPressure(), initVRegCycle(), InlineCallIfPossible(), insertCopy(), insertInteger(), InsertPreheaderForLoop(), insertUniqueBackedgeBlock(), insertVector(), llvm::MachineTraceMetrics::Ensemble::invalidate(), llvm::MachineTraceMetrics::invalidate(), isProfitableChain(), isStridedPtr(), KnuthDiv(), llvm::LazyCallGraph::LazyCallGraph(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvAtTop(), llvm::SplitEditor::leaveIntvBefore(), LinearizeExprTree(), llvm_unreachable_internal(), llvm::RuntimeDyldImpl::loadObject(), llvm::HexagonTargetLowering::LowerCall(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), llvm::AggressiveAntiDepBreaker::Observe(), OptimizeAwayTrappingUsesOfLoads(), optimizeGlobalCtorsList(), llvm::OptLevelChanger::OptLevelChanger(), llvm::SplitEditor::overlapIntv(), llvm::BlockFrequencyInfoImplBase::packageLoop(), llvm::cl::ParseCommandLineOptions(), performBitcastCombine(), performConcatVectorsCombine(), llvm::GCStrategy::performCustomLowering(), llvm::MipsSETargetLowering::PerformDAGCombine(), PerformHeapAllocSRoA(), llvm::R600SchedStrategy::pickNode(), llvm::ConvergingVLIWScheduler::pickNode(), llvm::GenericScheduler::pickNode(), llvm::PostGenericScheduler::pickNode(), llvm::GenericScheduler::pickNodeBidirectional(), llvm::RuntimeDyldMachO::populateIndirectSymbolPointersSection(), llvm::TargetPassConfig::printAndVerify(), PrintOps(), printReachingDef(), llvm::AArch64FrameLowering::processFunctionBeforeCalleeSavedScan(), llvm::RuntimeDyldELF::processRelocationRef(), ProfitableToMerge(), reachedUsesToDefs(), llvm::RuntimeDyldImpl::reassignSectionAddress(), registerADRCandidate(), llvm::GenericScheduler::registerRoots(), llvm::PostGenericScheduler::registerRoots(), llvm::R600SchedStrategy::releaseBottomNode(), llvm::ScheduleDAGMI::releasePred(), llvm::ScheduleDAGMI::releaseSucc(), llvm::R600SchedStrategy::releaseTopNode(), llvm::PMDataManager::removeDeadPasses(), llvm::LazyCallGraph::SCC::removeInterSCCEdge(), llvm::PMDataManager::removeNotPreservedAnalysis(), llvm::SlotIndexes::renumberIndexes(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::InstCombiner::ReplaceInstUsesWith(), replaceSymbolicStrideSCEV(), ReplaceUsesOfWith(), llvm::GenericScheduler::reschedulePhysRegCopies(), llvm::VLIWResourceModel::reserveResources(), llvm::MipsTargetMachine::resetSubtarget(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::RuntimeDyldImpl::resolveRelocations(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), rewriteLoopExitBlock(), llvm::CGSCCPassManager::run(), llvm::VerifierPass::run(), llvm::DAGTypeLegalizer::run(), llvm::Interpreter::run(), llvm::ModulePassManager::run(), llvm::FunctionPassManager::run(), llvm::BranchProbabilityInfo::runOnFunction(), llvm::RGPassManager::runOnFunction(), llvm::StackMapLiveness::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::SlotIndexes::runOnMachineFunction(), llvm::MipsOs16::runOnModule(), llvm::Inliner::runOnSCC(), llvm::RegScavenger::scavengeRegister(), llvm::R600SchedStrategy::schedNode(), llvm::VLIWMachineScheduler::schedule(), llvm::ScheduleDAGMI::schedule(), llvm::ScheduleDAGMILive::schedule(), llvm::PMTopLevelManager::schedulePass(), llvm::SchedDFSResult::scheduleTree(), llvm::ConvergingVLIWScheduler::SchedulingCost(), llvm::ScoreboardHazardRecognizer::ScoreboardHazardRecognizer(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::FastISel::selectIntrinsicCall(), llvm::SplitEditor::selectIntv(), separateNestedLoop(), llvm::StackMaps::serializeToStackMapSection(), llvm::BranchProbabilityInfo::setEdgeWeight(), llvm::GenericSchedulerBase::setPolicy(), llvm::ARMBaseRegisterInfo::shouldCoalesce(), llvm::LiveIntervals::shrinkToUses(), SimplifyBranchOnICmpChain(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), simplifyOneLoop(), SinkThenElseCodeToEnd(), llvm::LoopPass::skipOptnoneFunction(), llvm::FunctionPass::skipOptnoneFunction(), llvm::BasicBlockPass::skipOptnoneFunction(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SparseSolver::Solve(), speculatePHINodeLoads(), speculateSelectInstLoads(), SpeculativelyExecuteBB(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SplitEditor::splitLiveThroughBlock(), llvm::SplitEditor::splitRegInBlock(), llvm::SplitEditor::splitRegOutBlock(), SRAGlobal(), llvm::DbgValueHistoryMap::startInstrRange(), llvm::ExecutionEngine::StoreValueToMemory(), llvm::ConvergingVLIWScheduler::traceCandidate(), llvm::GenericSchedulerBase::traceCandidate(), tracePick(), truncateIVUse(), llvm::GenericScheduler::tryCandidate(), tryLowerToSLI(), tryPromoteAllocaToVector(), TryToShrinkGlobalToBoolean(), TryToSimplifyUncondBranchFromEmptyBlock(), llvm::LiveRegMatrix::unassign(), UnrollLoop(), unwrapLoop(), llvm::LiveIntervals::HMEditor::updateAllRanges(), llvm::ScheduleDAGMILive::updatePressureDiffs(), llvm::ScheduleDAGMILive::updateScheduledPressure(), llvm::MipsSubtarget::useConstantIslands(), llvm::SplitEditor::useIntv(), llvm::ValueHandleBase::ValueIsDeleted(), llvm::ValueHandleBase::ValueIsRAUWd(), llvm::ScalarEvolution::verifyAnalysis(), verifyCTRBranch(), VerifyPHIs(), llvm::ScheduleDAG::VerifyScheduledDAG(), llvm::Interpreter::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::Interpreter::visitBinaryOperator(), llvm::Interpreter::visitExtractElementInst(), llvm::Interpreter::visitFCmpInst(), llvm::Interpreter::visitICmpInst(), llvm::ObjectSizeOffsetVisitor::visitInstruction(), llvm::ObjectSizeOffsetEvaluator::visitInstruction(), llvm::Interpreter::visitLoadInst(), llvm::InstCombiner::visitSExt(), llvm::Interpreter::visitStoreInst(), llvm::InstCombiner::visitTrunc(), llvm::Interpreter::visitVAArgInst(), llvm::InstCombiner::visitZExt(), llvm::MachObjectWriter::WriteObject(), llvm::OptLevelChanger::~OptLevelChanger(), llvm::Value::~Value(), and llvm::ValueSymbolTable::~ValueSymbolTable().
void llvm::DecodeBLENDMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Decode a BLEND immediate mask into a shuffle mask.
Definition at line 277 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments().
void llvm::DecodeINSERTPSMask | ( | unsigned | Imm, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 25 of file X86ShuffleDecode.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and SM_SentinelZero.
Referenced by EmitAnyX86InstComments().
void llvm::DecodeMOVHLPSMask | ( | unsigned | NElts, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 49 of file X86ShuffleDecode.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeMOVLHPSMask | ( | unsigned | NElts, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 58 of file X86ShuffleDecode.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeMOVSHDUPMask | ( | MVT | VT, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 74 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeMOVSLDUPMask | ( | MVT | VT, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 66 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodePALIGNRMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 82 of file X86ShuffleDecode.cpp.
References llvm::MVT::getSizeInBits(), llvm::MVT::getVectorElementType(), llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodePSHUFBMask | ( | const ConstantDataSequential * | C, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Decode a PSHUFB mask from an IR-level vector constant.
Definition at line 227 of file X86ShuffleDecode.cpp.
References llvm::ConstantDataSequential::getElementAsInteger(), llvm::ConstantDataSequential::getNumElements(), llvm::ConstantDataSequential::getType(), llvm::Type::getVectorElementType(), llvm::Type::getVectorNumElements(), llvm::Type::isIntegerTy(), llvm::Type::isVectorTy(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and SM_SentinelZero.
Referenced by llvm::X86AsmPrinter::EmitInstruction(), and getTargetShuffleMask().
void llvm::DecodePSHUFBMask | ( | ArrayRef< uint64_t > | RawMask, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Decode a PSHUFB mask from a raw array of constants such as from BUILD_VECTOR.
Definition at line 258 of file X86ShuffleDecode.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::ArrayRef< T >::size(), and SM_SentinelZero.
void llvm::DecodePSHUFHWMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 119 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodePSHUFLWMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 135 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodePSHUFMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
DecodePSHUFMask - This decodes the shuffle masks for pshufd, and vpermilp*. VT indicates the type of the vector allowing it to handle different datatypes and vector widths.
Definition at line 103 of file X86ShuffleDecode.cpp.
References llvm::MVT::getSizeInBits(), llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeSHUFPMask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
DecodeSHUFPMask - This decodes the shuffle masks for shufp*. VT indicates the type of the vector allowing it to handle different datatypes and vector widths.
Definition at line 154 of file X86ShuffleDecode.cpp.
References llvm::MVT::getSizeInBits(), llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
int64_t llvm::decodeSLEB128 | ( | const uint8_t * | p, |
unsigned * | n = nullptr |
||
) | [inline] |
uint64_t llvm::decodeULEB128 | ( | const uint8_t * | p, |
unsigned * | n = nullptr |
||
) | [inline] |
Utility function to decode a ULEB128 value.
Definition at line 80 of file LEB128.h.
Referenced by decodeTestingFormat(), and llvm::coverage::RawCoverageReader::readULEB128().
void llvm::DecodeUNPCKHMask | ( | MVT | VT, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
DecodeUNPCKHMask - This decodes the shuffle masks for unpckhps/unpckhpd and punpckh*. VT indicates the type of the vector allowing it to handle different datatypes and vector widths.
Definition at line 176 of file X86ShuffleDecode.cpp.
References llvm::MVT::getSizeInBits(), llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeUNPCKLMask | ( | MVT | VT, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
DecodeUNPCKLMask - This decodes the shuffle masks for unpcklps/unpcklpd and punpckl*. VT indicates the type of the vector allowing it to handle different datatypes and vector widths.
Definition at line 196 of file X86ShuffleDecode.cpp.
References llvm::MVT::getSizeInBits(), llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeVPERM2X128Mask | ( | MVT | VT, |
unsigned | Imm, | ||
SmallVectorImpl< int > & | ShuffleMask | ||
) |
Definition at line 213 of file X86ShuffleDecode.cpp.
References llvm::MVT::getVectorNumElements(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
void llvm::DecodeVPERMMask | ( | unsigned | Imm, |
SmallVectorImpl< int > & | ShuffleMask | ||
) |
DecodeVPERMMask - this decodes the shuffle masks for VPERMQ/VPERMPD. No VT provided since it only works on 256-bit, 4 element vectors.
Definition at line 286 of file X86ShuffleDecode.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by EmitAnyX86InstComments(), and getTargetShuffleMask().
llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | char | ) |
llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | signed | char | ) |
llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | short | ) |
llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | long | ) |
llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | unsigned long | long | ) |
void llvm::DeleteContainerPointers | ( | Container & | C | ) |
For a container of pointers, deletes the pointers and then clears the container.
Definition at line 361 of file STLExtras.h.
References I.
void llvm::DeleteContainerSeconds | ( | Container & | C | ) |
In a container of pairs (usually a map) whose second element is a pointer, deletes the second elements and then clears the container.
Definition at line 370 of file STLExtras.h.
References I.
Referenced by llvm::LLVMContextImpl::~LLVMContextImpl().
void llvm::DeleteDeadBlock | ( | BasicBlock * | BB | ) |
DeleteDeadBlock - Delete the specified block, which must have no predecessors.
Definition at line 36 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::back(), llvm::BasicBlock::empty(), llvm::BasicBlock::eraseFromParent(), llvm::UndefValue::get(), llvm::BasicBlock::getInstList(), llvm::TerminatorInst::getNumSuccessors(), llvm::BasicBlock::getSinglePredecessor(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), I, llvm::iplist< NodeTy, Traits >::pop_back(), pred_begin(), pred_end(), llvm::BasicBlock::removePredecessor(), llvm::Value::replaceAllUsesWith(), and llvm::Value::use_empty().
Referenced by CloneAndPruneFunctionInto().
bool llvm::DeleteDeadPHIs | ( | BasicBlock * | BB, |
const TargetLibraryInfo * | TLI = nullptr |
||
) |
DeleteDeadPHIs - Examine each PHI in the given block and delete it if it is dead. Also recursively delete any operands that become dead as a result. This includes tracing the def-use list from the PHI to see if it is ultimately unused or if it reaches an unused cycle. Return true if any PHIs were deleted.
DeleteDeadPHIs - Examine each PHI in the given block and delete it if it is dead. Also recursively delete any operands that become dead as a result. This includes tracing the def-use list from the PHI to see if it is ultimately unused or if it reaches an unused cycle.
Definition at line 98 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), dyn_cast(), I, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), RecursivelyDeleteDeadPHINode(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
void llvm::deleter | ( | T * | Ptr | ) | [inline] |
Definition at line 189 of file STLExtras.h.
AllocaInst * llvm::DemotePHIToStack | ( | PHINode * | P, |
Instruction * | AllocaPoint = nullptr |
||
) |
DemotePHIToStack - This function takes a virtual register computed by a phi node and replaces it with a slot in the stack frame, allocated via alloca. The phi node is deleted and it returns the pointer to the alloca inserted.
DemotePHIToStack - This function takes a virtual register computed by a PHI node and replaces it with a slot in the stack frame allocated via alloca. The PHI node is deleted. It returns the pointer to the alloca inserted.
Definition at line 110 of file DemoteRegToStack.cpp.
References llvm::BasicBlock::begin(), llvm::Instruction::eraseFromParent(), F(), llvm::Function::getEntryBlock(), llvm::PHINode::getIncomingBlock(), llvm::PHINode::getIncomingValue(), llvm::Value::getName(), llvm::PHINode::getNumIncomingValues(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), llvm::Value::replaceAllUsesWith(), and llvm::Value::use_empty().
AllocaInst * llvm::DemoteRegToStack | ( | Instruction & | I, |
bool | VolatileLoads = false , |
||
Instruction * | AllocaPoint = nullptr |
||
) |
DemoteRegToStack - This function takes a virtual register computed by an Instruction and replaces it with a slot in the stack frame, allocated via alloca. This allows the CFG to be changed around without fear of invalidating the SSA information for the value. It returns the pointer to the alloca inserted to create a stack slot for X.
DemoteRegToStack - This function takes a virtual register computed by an Instruction and replaces it with a slot in the stack frame, allocated via alloca. This allows the CFG to be changed around without fear of invalidating the SSA information for the value. It returns the pointer to the alloca inserted to create a stack slot for I.
Definition at line 24 of file DemoteRegToStack.cpp.
References llvm::BasicBlock::begin(), llvm::Instruction::eraseFromParent(), F(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getFirstInsertionPt(), llvm::Value::getName(), llvm::InvokeInst::getNormalDest(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getSinglePredecessor(), GetSuccessorNumber(), llvm::Value::getType(), I, isCriticalEdge(), llvm::User::replaceUsesOfWith(), SplitCriticalEdge(), llvm::Value::use_empty(), and llvm::Instruction::user_back().
iterator_range<df_iterator<T> > llvm::depth_first | ( | const T & | G | ) |
Definition at line 213 of file DepthFirstIterator.h.
References df_begin(), and df_end().
Referenced by llvm::LoopBase< BlockT, LoopT >::verifyLoop().
iterator_range<df_ext_iterator<T, SetTy> > llvm::depth_first_ext | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 235 of file DepthFirstIterator.h.
References df_ext_begin(), and df_ext_end().
Referenced by llvm::LiveVariables::runOnMachineFunction().
df_iterator<T> llvm::df_begin | ( | const T & | G | ) |
Definition at line 202 of file DepthFirstIterator.h.
References llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::begin().
Referenced by depth_first(), llvm::GraphTraits< PostDominatorTree * >::nodes_begin(), llvm::GraphTraits< DomTreeNode * >::nodes_begin(), and llvm::GraphTraits< DominatorTree * >::nodes_begin().
df_iterator<T> llvm::df_end | ( | const T & | G | ) |
Definition at line 207 of file DepthFirstIterator.h.
References llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::end().
Referenced by depth_first(), llvm::GraphTraits< PostDominatorTree * >::nodes_begin(), llvm::GraphTraits< PostDominatorTree * >::nodes_end(), llvm::GraphTraits< DomTreeNode * >::nodes_end(), and llvm::GraphTraits< DominatorTree * >::nodes_end().
df_ext_iterator<T, SetTy> llvm::df_ext_begin | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 225 of file DepthFirstIterator.h.
References llvm::df_iterator< T, SetTy, true >::begin().
Referenced by depth_first_ext(), llvm::LiveIntervals::pruneValue(), and llvm::LoopBase< BlockT, LoopT >::verifyLoop().
df_ext_iterator<T, SetTy> llvm::df_ext_end | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 230 of file DepthFirstIterator.h.
References llvm::df_iterator< T, SetTy, true >::end().
Referenced by depth_first_ext(), llvm::LiveIntervals::pruneValue(), and llvm::LoopBase< BlockT, LoopT >::verifyLoop().
unsigned llvm::DFSPass | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, |
typename GraphT::NodeType * | V, | ||
unsigned | N | ||
) |
Definition at line 34 of file GenericDomTreeConstruction.h.
References llvm::DominatorTreeBase< NodeT >::InfoRec::DFSNum, llvm::DominatorTreeBase< NodeT >::Info, llvm::DominatorTreeBase< NodeT >::InfoRec::Label, llvm::DominatorTreeBase< NodeT >::InfoRec::Parent, llvm::DominatorBase< NodeT >::Roots, llvm::DominatorTreeBase< NodeT >::InfoRec::Semi, succ_begin(), succ_end(), and llvm::DominatorTreeBase< NodeT >::Vertex.
int llvm::DiffFilesWithTolerance | ( | StringRef | NameA, |
StringRef | NameB, | ||
double | AbsTol, | ||
double | RelTol, | ||
std::string * | Error = nullptr |
||
) |
DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match, 1 if they are different, and 2 if there is a file error. This function allows you to specify an absolute and relative FP error that is allowed to exist. If you specify a string to fill in for the error option, it will set the string to an error message if an error occurs, or if the files are different.
DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match, 1 if they are different, and 2 if there is a file error. This function differs from DiffFiles in that you can specify an absolete and relative FP error that is allowed to exist. If you specify a string to fill in for the error option, it will set the string to an error message if an error occurs, allowing the caller to distinguish between a failed diff and a file system error.
Definition at line 173 of file FileUtilities.cpp.
References BackupNumber(), CompareNumbers(), llvm::ErrorOr< T >::get(), llvm::MemoryBuffer::getBufferEnd(), llvm::MemoryBuffer::getBufferSize(), llvm::MemoryBuffer::getBufferStart(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFile(), isNumberChar(), and llvm::LibFunc::memcmp.
static void llvm::discoverAndMapSubloop | ( | LoopT * | L, |
ArrayRef< BlockT * > | Backedges, | ||
LoopInfoBase< BlockT, LoopT > * | LI, | ||
DominatorTreeBase< BlockT > & | DomTree | ||
) | [static] |
Stable LoopInfo Analysis - Build a loop tree using stable iterators so the result does / not depend on use list (block predecessor) order. Discover a subloop with the specified backedges such that: All blocks within this loop are mapped to this loop or a subloop. And all subloops within this loop have their parent loop set to this loop or a subloop.
Definition at line 346 of file LoopInfoImpl.h.
References llvm::ArrayRef< T >::begin(), llvm::LoopInfoBase< BlockT, LoopT >::changeLoopFor(), llvm::ArrayRef< T >::end(), llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor(), and llvm::DominatorTreeBase< NodeT >::isReachableFromEntry().
Referenced by llvm::LoopInfoBase< BlockT, LoopT >::Analyze().
bool llvm::DisplayGraph | ( | StringRef | Filename, |
bool | wait = true , |
||
GraphProgram::Name | program = GraphProgram::DOT |
||
) |
Definition at line 133 of file GraphWriter.cpp.
References errs(), ExecGraphViewer(), getProgramName(), llvm_unreachable, GraphSession::LogBuffer, GraphSession::TryFindProgram(), and ViewBackground.
Referenced by ViewGraph().
uint64_t llvm::DoubleToBits | ( | double | Double | ) | [inline] |
DoubleToBits - This function takes a double and returns the bit equivalent 64-bit integer. Note that copying doubles around changes the bits of NaNs on some hosts, notably x86, so this routine cannot be used if these bits are needed.
Definition at line 512 of file MathExtras.h.
References T.
static void llvm::dropRegDescribedVar | ( | RegDescribedVarsMap & | RegVars, |
unsigned | RegNo, | ||
const MDNode * | Var | ||
) | [static] |
Definition at line 78 of file DbgValueHistoryCalculator.cpp.
References I.
Referenced by calculateDbgValueHistory().
void llvm::dump | ( | const SparseBitVector< ElementSize > & | LHS, |
raw_ostream & | out | ||
) |
Definition at line 883 of file SparseBitVector.h.
References llvm::SparseBitVector< ElementSize >::begin(), and llvm::SparseBitVector< ElementSize >::end().
Referenced by llvm::BlockFrequencyInfoImplBase::finalizeMetrics(), and llvm::VLIWResourceModel::reserveResources().
void llvm::dumpBlock | ( | Value * | v, |
char * | blockName | ||
) |
Definition at line 465 of file NVPTXUtilities.cpp.
References llvm::Function::begin(), llvm::StringRef::data(), llvm::Value::dump(), llvm::Function::end(), F(), llvm::Value::getName(), getParentFunction(), and llvm::LibFunc::strcmp.
void llvm::dumpInst | ( | Value * | base, |
char * | instName | ||
) |
Definition at line 496 of file NVPTXUtilities.cpp.
References llvm::Value::dump(), getInst(), and I.
void llvm::dumpInstRec | ( | Value * | v, |
std::set< Instruction * > * | visited | ||
) |
void llvm::dumpInstRec | ( | Value * | v | ) |
Definition at line 519 of file NVPTXUtilities.cpp.
References dumpInstRec().
void llvm::dumpParent | ( | Value * | v | ) |
Definition at line 528 of file NVPTXUtilities.cpp.
LLVM_DUMP_METHOD void llvm::dumpRegSetPressure | ( | ArrayRef< unsigned > | SetPressure, |
const TargetRegisterInfo * | TRI | ||
) |
Definition at line 45 of file RegisterPressure.cpp.
References dbgs(), llvm::TargetRegisterInfo::getRegPressureSetName(), and llvm::ArrayRef< T >::size().
Referenced by llvm::RegisterPressure::dump(), llvm::RegPressureTracker::dump(), and llvm::ScheduleDAGMILive::initRegPressure().
static void llvm::dumpSectionMemory | ( | const SectionEntry & | S, |
StringRef | State | ||
) | [static] |
Definition at line 45 of file RuntimeDyld.cpp.
References llvm::SectionEntry::Address, dbgs(), format(), llvm::SectionEntry::LoadAddress, llvm::SectionEntry::Name, and llvm::SectionEntry::Size.
Referenced by llvm::RuntimeDyldImpl::resolveRelocations().
LLVM_ATTRIBUTE_UNUSED_RESULT std::enable_if< !is_simple_type<Y>::value, typename cast_retty<X, const Y>::ret_type>::type llvm::dyn_cast | ( | const Y & | Val | ) | [inline] |
Definition at line 265 of file Casting.h.
Referenced by llvm::GEPOperator::accumulateConstantOffset(), AddAliasScopeMetadata(), AddCombineToVPADDL(), AddPHINodeEntriesForMappedBlock(), AddPredecessorToBlock(), AddReachableCodeToWorklist(), adjustForFNeg(), llvm::X86FrameLowering::adjustForHiPEPrologue(), adjustForLTGFR(), adjustForTestUnderMask(), adjustZeroCmp(), llvm::DebugRecVH::allUsesReplacedWith(), AnalyzeLoadFromClobberingMemInst(), llvm::SelectInst::areInvalidOperands(), llvm::RecordRecTy::baseClassOf(), BuildConstantFromSCEV(), BuildSubAggregate(), cacheAnnotationFromMD(), llvm::EHStreamer::callToNoUnwindFunction(), canBeCheaplyTransformed(), CanEvaluateSExtd(), CanEvaluateShifted(), CanEvaluateShuffled(), CanEvaluateTruncated(), CanEvaluateZExtd(), canExpandBackedgeTakenCount(), canFoldInAddressingMode(), canFoldIVIncExpr(), canIfConvertPHINodes(), CannotBeNegativeZero(), CanPropagatePredecessorsForPHIs(), CanSelectOperandBeMappingIntoPredBlock(), canTrapImpl(), llvm::CastInst::castIsValid(), ChangeVSETULTtoVSETULE(), CheapToScalarize(), CheckAndImm(), checkBoolTestSetCCCombine(), CheckInteger(), CheckOrImm(), CleanupPointerRootUsers(), ClearSubclassDataAfterReassociation(), CloneAliasScopeMetadata(), CloneAndPruneFunctionInto(), CloneNodeWithValues(), CollectAddOperandsWithScales(), CollectInsertionElements(), llvm::InstCombiner::commonPointerCastTransforms(), computeKnownBits(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), ComputeMultiple(), ComputeNumSignBits(), llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), computePointerICmp(), ConnectProlog(), ConstantFoldGetElementPtrImpl(), ConstantFoldInsertElementInstruction(), ConstantFoldInstruction(), ConstantFoldLoadFromConstPtr(), ConstantFoldLoadThroughBitcast(), ConstantFoldSelectInstruction(), ConstantFoldTerminator(), ConstHasGlobalValuePredicate(), contains(), ConvertDebugDeclareToDebugValue(), llvm::TypedInit::convertInitializerBitRange(), llvm::TypedInit::convertInitListSlice(), convertMemSetToLoop(), convertTransferToLoop(), copyGVAttributes(), createPHIsForSplitLoopExit(), createReplacementInstr(), decomposeBitTestICmp(), DecomposeGEPExpression(), DecomposeSimpleLinearExpr(), DeleteDeadPHIs(), DemandedBitsLHSMask(), llvm::BitcodeReader::Dematerialize(), llvm::DependenceAnalysis::depends(), detectLog2OfHalf(), llvm::DominatorTree::dominates(), DominatesMergePoint(), llvm::Value::DoPHITranslation(), EliminateDuplicatePHINodes(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EmitVectorComparison(), llvm::ARMAsmPrinter::EmitXXStructor(), EraseTerminatorInstAndDCECond(), llvm::SetTheory::evaluate(), EvaluateExpression(), evaluateFCmpRelation(), EvaluateGEPOffsetExpression(), evaluateICmpRelation(), EvaluateOperation(), expandDivision(), llvm::ARMTargetLowering::ExpandInlineAsm(), expandRemainder(), ExtractBranchMetadata(), ExtractConstantBytes(), ExtractEquivalentCondition(), extractMallocCall(), ExtractTypeInfo(), FindInitTrampoline(), FindInitTrampolineFromAlloca(), FindLoopCounter(), llvm::SelectionDAGBuilder::FindMergedConditions(), FindPHIForConditionForwarding(), FindPhiPredForUseInBlock(), llvm::MCAssembler::Finish(), fixupFPReturnAndCall(), llvm::BinOpInit::Fold(), llvm::TernOpInit::Fold(), llvm::InstCombiner::FoldAndOfICmps(), FoldBitCast(), FoldBranchToCommonDest(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), FoldCondBranchOnPHI(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::InstCombiner::foldFMulConst(), llvm::InstCombiner::FoldICmpShrCst(), foldLogOpOfMaskedICmps(), FoldOperand(), FoldOperationIntoSelectOperand(), llvm::InstCombiner::FoldOrOfICmps(), llvm::InstCombiner::FoldOrWithConstants(), FoldReinterpretLoadFromConstPtr(), foldSelectICmpAnd(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), FoldTwoEntryPHINode(), llvm::InstCombiner::FoldXorWithConstants(), ForeachHelper(), llvm::ScalarEvolution::forgetValue(), GatherConstantCompares(), genLoopLimit(), GEPToVectorIndex(), llvm::RecordRecTy::get(), llvm::GlobalAlias::getBaseObject(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getCalledFunction(), llvm::CallInst::getCalledFunction(), llvm::InvokeInst::getCalledFunction(), getCommonReturnValue(), getConstantEvolvingPHI(), getConstantEvolvingPHIOperands(), GetConstantInt(), getConstantStringInfo(), llvm::ExecutionEngine::getConstantValue(), getEdgeValueLocal(), llvm::ListInit::getElementAsRecord(), getExactSDiv(), getExtendTypeForNode(), llvm::ConstantInt::getFalse(), llvm::BasicBlock::getFirstNonPHIOrDbgOrLifetime(), getGatherNode(), GetIfCondition(), getIndexedTypeInternal(), getInsertPointForUses(), llvm::SCEVExpander::getIVIncOperand(), llvm::TargetLoweringObjectFile::getKindForGlobal(), getKnownConstant(), llvm::BasicBlock::getLandingPadInst(), getLocForWrite(), getLoopPhiForCounter(), getLoopTest(), llvm::SelectionDAG::getMemcpy(), getMemcpyLoadsAndStores(), llvm::SelectionDAG::getMemmove(), getMemmoveLoadsAndStores(), llvm::SelectionDAG::getMemset(), getMemSetPatternValue(), getMemsetStores(), llvm::ScalarEvolution::getMulExpr(), llvm::VarInit::getName(), llvm::RecordVal::getName(), llvm::Record::getName(), getNaturalGEPRecursively(), llvm::SelectionDAG::getNode(), getNoopInput(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), GetOffsetFromIndex(), getOpenCLAlignment(), llvm::NamedMDNode::getOperand(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::MemoryDependenceAnalysis::getPointerDependencyFrom(), getPredicateResult(), getPrefetchNode(), getPreStartForSignExtend(), llvm::NVPTXTargetLowering::getPrototype(), llvm::Constant::getRelocationInfo(), getScatterNode(), getShuffleAndOtherOprd(), llvm::ScalarEvolution::getSignExtendExpr(), llvm::ScalarEvolution::getSmallConstantTripCount(), llvm::ScalarEvolution::getSmallConstantTripMultiple(), llvm::DependenceAnalysis::getSplitIteration(), llvm::SparcTargetLowering::getSRetArgSize(), getStrideFromPointer(), getTargetShuffleMask(), llvm::BasicBlock::getTerminatingMustTailCall(), llvm::BasicBlock::getTerminator(), llvm::ConstantInt::getTrue(), getTypeOfMaskedICmp(), getTypePartition(), llvm::ScalarEvolution::getUDivExactExpr(), llvm::ScalarEvolution::getUDivExpr(), getUniqueCastUse(), GetUnrollMetadata(), getValueFromFromCondition(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), getVShiftImm(), getVZextMovL(), getWeakRef(), HandleCallsInBlockInlinedThroughInvoke(), hasComputableBounds(), hasConcreteDefImpl(), HasNoDuplicateCall(), hasReturnsTwiceAttr(), llvm::ARMConstantPoolConstant::hasSameValue(), llvm::ARMConstantPoolSymbol::hasSameValue(), llvm::ARMConstantPoolMBB::hasSameValue(), llvm::FastISel::hasTrivialKill(), HoistThenElseCodeToIf(), llvm::CompositeType::indexValid(), INITIALIZE_PASS(), InlineCallIfPossible(), InlineFunction(), insertVector(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::SSAUpdaterTraits< SSAUpdater >::InstrIsPHI(), InstructionDereferencesPointer(), isAllConstantBuildVector(), isAllOnes(), isAssumeIntrinsic(), isBLACompatibleAddress(), isBSwapHWordElement(), isCalleeLoad(), isConstantBuildVectorOrConstantInt(), IsConstantOffsetFromGlobal(), IsConstantOne(), isConstantSplatVector(), llvm::Constant::isConstantUsed(), llvm::TargetLowering::isConstFalseVal(), llvm::TargetLowering::isConstTrueVal(), isConstVecPow2(), llvm::BitcodeReader::isDematerializable(), isDereferenceablePointer(), llvm::Type::isEmptyTy(), isExistingPhi(), isExtendedBUILD_VECTOR(), isFiniteNonZeroFp(), isFMulOrFDivWithConstant(), isFormingBranchFromSelectProfitable(), isFreeCall(), llvm::TargetLowering::isGAPlusOffset(), llvm::ConstantExpr::isGEPWithNoNotionalOverIndexing(), llvm::HexagonTargetObjectFile::IsGlobalInSmallSection(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isHighCostExpansion(), isImageOrSamplerVal(), llvm::X86Operand::isImmSExti16i8(), llvm::X86Operand::isImmSExti32i8(), llvm::X86Operand::isImmSExti64i32(), llvm::X86Operand::isImmSExti64i8(), isInTailCallPosition(), llvm::ScalarEvolution::isKnownPredicate(), isLikelyComplexAddressComputation(), llvm::ScalarEvolution::isLoopBackedgeGuardedByCond(), llvm::ScalarEvolution::isLoopEntryGuardedByCond(), isLoopInvariant(), isNaturalMemoryOperand(), llvm::SCEV::isNonConstantNegative(), isNormalFp(), llvm::ISD::isNormalLoad(), llvm::ISD::isNormalStore(), isOnlyCopiedFromConstantGlobal(), IsPointerOffset(), llvm::PHITransAddr::IsPotentiallyPHITranslatable(), llvm::objcarc::IsPotentialRetainableObjPtr(), isProfitableToFoldUnconditional(), llvm::DominatorTree::isReachableFromEntry(), isReportingError(), isSafePHIToSpeculate(), isSafeSelectToSpeculate(), isSafeSROAElementUse(), isSafeToHoistInvoke(), isSafeToSpeculateStore(), isSafeToSpeculativelyExecute(), isSameCompare(), isScaledConstantInRange(), isSelect01(), isSetCC(), isSimpleEnoughPointerToCommit(), isSimpleIVUser(), isSimpleShift(), isStridedPtr(), llvm::MCAssembler::isThumbFunc(), isTruncateOf(), isTypeCongruent(), isUndefShift(), llvm::Value::isUsedInBasicBlock(), llvm::Instruction::isUsedOutsideOfBlock(), IsUserOfGlobalSafeForSRA(), llvm::ShuffleVectorInst::isValidOperands(), isVectorAllOnes(), isVectorPromotionViable(), isVSplat(), isXor1OfSetCC(), isZero(), isZeroLengthArray(), isZeroOrAllOnes(), IVUseShouldUsePostIncValue(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::NVPTXTargetLowering::LowerCall(), nvptx::LowerConstant(), lowerConstant(), LowerF128Load(), LowerF128Store(), llvm::SITargetLowering::LowerFormalArguments(), LowerScalarImmediateShift(), llvm::IntrinsicLowering::LowerToByteSwap(), LowerVectorIntExtend(), LowerXOR(), LowerZERO_EXTEND_AVX512(), MaintainNoSignedWrap(), MapValue(), llvm::PatternMatch::specific_intval::match(), llvm::PatternMatch::MaxMin_match< CmpInst_t, LHS_t, RHS_t, Pred_t >::match(), llvm::PatternMatch::IntrinsicID_match::match(), MatchingStackOffset(), matchPairwiseReduction(), matchPairwiseReductionAtLevel(), matchRotateSub(), MatchSelectPattern(), matchVectorSplittingReduction(), llvm::BitcodeReader::Materialize(), mergeEmptyReturnBlocks(), needsLFTR(), onlyUsedByLifetimeMarkers(), OptimizeGlobalAddressOfMalloc(), llvm::TargetLowering::ParseConstraints(), passingValueIsAlwaysUndefined(), patchReplacementInstruction(), performANDCombine(), PerformANDCombine(), PerformAndCombine(), PerformBFICombine(), llvm::SITargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::SystemZTargetLowering::PerformDAGCombine(), performDSPShiftCombine(), PerformMULCombine(), PerformMulCombine(), PerformORCombine(), PerformOrCombine(), performSELECTCombine(), PerformSHLCombine(), performSRACombine(), PerformZExtCombine(), llvm::AArch64InstPrinter::printAlignedLabel(), printExpr(), llvm::DebugInfoFinder::processDeclare(), ProcessUAddIdiom(), ProcessUGT_ADDCST_ADD(), llvm::DebugInfoFinder::processValue(), llvm::ListInit::Profile(), promoteSingleBlockAlloca(), PushLoopPHIs(), QualifyName(), RecognizePersonality(), RecursivelyDeleteTriviallyDeadInstructions(), llvm::Constant::removeDeadConstantUsers(), removeDeadUsersOfConstant(), RemoveInstInputs(), llvm::BasicBlock::removePredecessor(), removeUndefIntroducingPredecessor(), ReorganizeVector(), llvm::SCEVExpander::replaceCongruentIVs(), replaceConstantExprOp(), llvm::LoopInfo::replacementPreservesLCSSAForm(), llvm::BasicBlock::replaceSuccessorsPhiUsesWith(), llvm::OpInit::resolveListElementReference(), llvm::VarInit::resolveListElementReference(), llvm::TernOpInit::resolveReferences(), rewriteNonInstructionUses(), RewriteUsesOfClonedInstructions(), llvm::NVPTXLowerAggrCopies::runOnFunction(), llvm::NVPTXAllocaHoisting::runOnFunction(), llvm::ExecutionEngine::runStaticConstructorsDestructors(), safeCxtI(), selectCCOpsAreFMaxCompatible(), llvm::FastISel::selectExtractValue(), llvm::FunctionLoweringInfo::set(), SetLoopAlreadyUnrolled(), shouldConvertUse(), shouldSwapCmpOperands(), ShrinkDemandedConstant(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant(), SimplifyAssociativeBinOp(), SimplifyBranchOnICmpChain(), SimplifyCall(), SimplifyCondBranchToCondBranch(), llvm::TargetLowering::SimplifyDemandedBits(), SimplifyICmpInst(), SimplifyIndirectBrOnSelect(), simplifyOneLoop(), SimplifyOrInst(), SimplifySwitchOnSelect(), SimplifyWithOpReplaced(), SinkShiftAndTruncate(), SinkThenElseCodeToEnd(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), SolveQuadraticEquation(), SpeculativelyExecuteBB(), llvm::BasicBlock::splitBasicBlock(), SplitCriticalSideEffectEdges(), llvm::DbgInfoIntrinsic::StripCast(), stripGetElementPtr(), swapMayExposeCSEOpportunities(), SymbolicallyEvaluateGEP(), ThreadBinOpOverSelect(), tryCombineCRC32(), tryCombineToBSL(), tryLowerToSLI(), TryMULWIDECombine(), tryPromoteAllocaToVector(), TryToOptimizeStoreOfMallocToGlobal(), TryToSimplifyUncondBranchWithICmpInIt(), UnrollLoop(), UpdateCallGraphAfterInlining(), upgradeGlobalArray(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::validate(), ValueDominatesPHI(), llvm::SSAUpdaterTraits< SSAUpdater >::ValueIsPHI(), llvm::InlineAsm::Verify(), VerifySubExpr(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAllocaInst(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), llvm::InstCombiner::visitFAdd(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFMul(), llvm::InstCombiner::visitFPToSI(), llvm::InstCombiner::visitFPToUI(), llvm::InstCombiner::visitFPTrunc(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithCastAndCast(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitInsertValueInst(), llvm::InstCombiner::visitLandingPadInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitSelectInstWithICmp(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitXor(), and llvm::InstCombiner::visitZExt().
LLVM_ATTRIBUTE_UNUSED_RESULT cast_retty<X, Y>::ret_type llvm::dyn_cast | ( | Y & | Val | ) | [inline] |
LLVM_ATTRIBUTE_UNUSED_RESULT cast_retty<X, Y *>::ret_type llvm::dyn_cast | ( | Y * | Val | ) | [inline] |
LLVM_ATTRIBUTE_UNUSED_RESULT cast_retty<X, Y *>::ret_type llvm::dyn_cast_or_null | ( | Y * | Val | ) | [inline] |
EliminateDuplicatePHINodes - Check for and eliminate duplicate PHI nodes in this block. This doesn't try to be clever about PHI nodes which differ only in the order of the incoming values, but instcombine orders them so it usually won't matter.
Definition at line 825 of file Local.cpp.
References llvm::BasicBlock::begin(), llvm::PHINode::block_begin(), llvm::PHINode::block_end(), dyn_cast(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::end(), llvm::Instruction::eraseFromParent(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::find(), I, llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::insert(), llvm::User::op_begin(), llvm::User::op_end(), and llvm::Value::replaceAllUsesWith().
static void llvm::EmitAbsDifference | ( | MCStreamer & | Streamer, |
const MCSymbol * | LHS, | ||
const MCSymbol * | RHS | ||
) | [static] |
Definition at line 50 of file MCWin64EH.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateSub(), llvm::MCStreamer::EmitValue(), and llvm::MCStreamer::getContext().
Referenced by EmitUnwindCode(), and EmitUnwindInfo().
bool llvm::EmitAnyX86InstComments | ( | const MCInst * | MI, |
raw_ostream & | OS, | ||
const char *(*)(unsigned) | getRegName | ||
) |
EmitAnyX86InstComments - This function decodes x86 instructions and prints newline terminated strings to the specified string if desired. This information is shown in disassembly dumps when verbose assembly is enabled.
Definition at line 31 of file X86InstComments.cpp.
References DecodeBLENDMask(), DecodeINSERTPSMask(), DecodeMOVHLPSMask(), DecodeMOVLHPSMask(), DecodeMOVSHDUPMask(), DecodeMOVSLDUPMask(), DecodePALIGNRMask(), DecodePSHUFHWMask(), DecodePSHUFLWMask(), DecodePSHUFMask(), DecodeSHUFPMask(), DecodeUNPCKHMask(), DecodeUNPCKLMask(), DecodeVPERM2X128Mask(), DecodeVPERMMask(), llvm::SmallVectorBase::empty(), llvm::MCOperand::getImm(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isImm(), llvm::SmallVectorTemplateCommon< T >::size(), SM_SentinelZero, llvm::MVT::v16i16, llvm::MVT::v16i8, llvm::MVT::v2f64, llvm::MVT::v2i64, llvm::MVT::v32i8, llvm::MVT::v4f32, llvm::MVT::v4f64, llvm::MVT::v4i32, llvm::MVT::v4i64, llvm::MVT::v8f32, llvm::MVT::v8i16, and llvm::MVT::v8i32.
void llvm::emitARMRegPlusImmediate | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator & | MBBI, | ||
DebugLoc | dl, | ||
unsigned | DestReg, | ||
unsigned | BaseReg, | ||
int | NumBytes, | ||
ARMCC::CondCodes | Pred, | ||
unsigned | PredReg, | ||
const ARMBaseInstrInfo & | TII, | ||
unsigned | MIFlags = 0 |
||
) |
emitARMRegPlusImmediate / emitT2RegPlusImmediate - Emits a series of instructions to materializea destreg = basereg + immediate in ARM / Thumb2 code.
Definition at line 1897 of file ARMBaseInstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), BuildMI(), llvm::ARM_AM::getSOImmVal(), llvm::ARM_AM::getSOImmValRotate(), llvm::RegState::Kill, llvm::ARM_AM::rotr32(), and llvm::MachineInstrBuilder::setMIFlags().
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::ARMFrameLowering::emitEpilogue(), and emitRegPlusImmediate().
Value * llvm::EmitBinaryFloatFnCall | ( | Value * | Op1, |
Value * | Op2, | ||
StringRef | Name, | ||
IRBuilder<> & | B, | ||
const AttributeSet & | Attrs | ||
) |
EmitUnaryFloatFnCall - Emit a call to the binary function named 'Name' (e.g. 'fmin'). This function is known to take type matching 'Op1' and 'Op2' and return one value with the same type. If 'Op1/Op2' are long double, 'l' is added as the suffix of name, if 'Op1/Op2' are float, we add a 'f' suffix.
EmitBinaryFloatFnCall - Emit a call to the binary function named 'Name' (e.g. 'fmin'). This function is known to take type matching 'Op1' and 'Op2' and return one value with the same type. If 'Op1/Op2' are long double, 'l' is added as the suffix of name, if 'Op1/Op2' is a float, we add a 'f' suffix.
Definition at line 324 of file BuildLibCalls.cpp.
References AppendTypeSuffix(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), F(), llvm::IRBuilderBase::GetInsertBlock(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::CallInst::setAttributes(), llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
Value * llvm::EmitFPutC | ( | Value * | Char, |
Value * | File, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitFPutC - Emit a call to the fputc function. This assumes that Char is an i32, and File is a pointer to FILE.
EmitFPutC - Emit a call to the fputc function. This assumes that Char is an integer and File is a pointer to FILE.
Definition at line 388 of file BuildLibCalls.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateIntCast(), F(), llvm::LibFunc::fputc, llvm::AttributeSet::FunctionIndex, llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::TargetLibraryInfo::has(), llvm::Type::isPointerTy(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, and llvm::CallInst::setCallingConv().
Value * llvm::EmitFPutS | ( | Value * | Str, |
Value * | File, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitFPutS - Emit a call to the puts function. Str is required to be a pointer and File is a pointer to FILE.
Definition at line 421 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), F(), llvm::LibFunc::fputs, llvm::AttributeSet::FunctionIndex, llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::TargetLibraryInfo::getName(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::TargetLibraryInfo::has(), llvm::Type::isPointerTy(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::CallInst::setCallingConv(), and llvm::Constant::stripPointerCasts().
void llvm::emitFrameOffset | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator | MBBI, | ||
DebugLoc | DL, | ||
unsigned | DestReg, | ||
unsigned | SrcReg, | ||
int | Offset, | ||
const TargetInstrInfo * | TII, | ||
MachineInstr::MIFlag | Flag = MachineInstr::NoFlags , |
||
bool | SetNZCV = false |
||
) |
emitFrameOffset - Emit instructions as needed to set DestReg to SrcReg plus Offset. This is intended to be used from within the prolog/epilog insertion (PEI) pass, where a virtual scratch register may be allocated if necessary, to be replaced by the scavenger at the end of PEI.
Definition at line 1982 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), BuildMI(), llvm::MCInstrInfo::get(), llvm::AArch64_AM::getShifterImm(), llvm::AArch64_AM::LSL, and llvm::MachineInstrBuilder::setMIFlag().
Referenced by llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::AArch64FrameLowering::emitPrologue(), and rewriteAArch64FrameIndex().
Value * llvm::EmitFWrite | ( | Value * | Ptr, |
Value * | Size, | ||
Value * | File, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitFWrite - Emit a call to the fwrite function. This assumes that Ptr is a pointer, Size is an 'intptr_t', and File is a pointer to FILE.
Definition at line 453 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall4(), F(), llvm::AttributeSet::FunctionIndex, llvm::LibFunc::fwrite, llvm::ConstantInt::get(), llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::TargetLibraryInfo::getName(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::TargetLibraryInfo::has(), llvm::Type::isPointerTy(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::CallInst::setCallingConv(), and llvm::Constant::stripPointerCasts().
Value* llvm::EmitGEPOffset | ( | IRBuilderTy * | Builder, |
const DataLayout & | TD, | ||
User * | GEP, | ||
bool | NoAssumptions = false |
||
) |
EmitGEPOffset - Given a getelementptr instruction/constantexpr, emit the code necessary to compute the offset from the base pointer (without adding in the base pointer). Return the result as a signed integer of intptr size. When NoAssumptions is true, no assumptions about index computation not overflowing is made.
Definition at line 196 of file Local.h.
References gep_type_begin(), llvm::ConstantInt::get(), llvm::StructLayout::getElementOffset(), llvm::ConstantExpr::getIntegerCast(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getMul(), llvm::Value::getName(), llvm::Constant::getNullValue(), llvm::DataLayout::getStructLayout(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::GEPOperator::isInBounds(), llvm::SystemZISD::OC, llvm::User::op_begin(), and llvm::User::op_end().
Referenced by llvm::InstCombiner::FoldGEPICmp(), llvm::InstCombiner::OptimizePointerDifference(), and llvm::ObjectSizeOffsetEvaluator::visitGEPOperator().
static void llvm::EmitLabelDiff | ( | MCStreamer & | Streamer, |
const MCSymbol * | From, | ||
const MCSymbol * | To | ||
) | [static] |
Definition at line 119 of file WinCodeViewLineTables.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::Create(), llvm::MCStreamer::EmitValue(), llvm::MCStreamer::getContext(), llvm::MCBinaryExpr::Sub, and llvm::MCSymbolRefExpr::VK_None.
void llvm::emitLoopInterleaveWarning | ( | LLVMContext & | Ctx, |
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) |
Emit a warning when loop interleaving is specified but fails. Fn
is the function triggering the warning, DLoc
is the debug location where the diagnostic is generated. Msg
is the message string to use.
Definition at line 204 of file DiagnosticInfo.cpp.
References llvm::LLVMContext::diagnose().
void llvm::emitLoopVectorizeWarning | ( | LLVMContext & | Ctx, |
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) |
Emit a warning when loop vectorization is specified but fails. Fn
is the function triggering the warning, DLoc
is the debug location where the diagnostic is generated. Msg
is the message string to use.
Definition at line 198 of file DiagnosticInfo.cpp.
References llvm::LLVMContext::diagnose().
Value * llvm::EmitMemChr | ( | Value * | Ptr, |
Value * | Val, | ||
Value * | Len, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitMemChr - Emit a call to the memchr function. This assumes that Ptr is a pointer, Val is an i32 value, and Len is an 'intptr_t' value.
Definition at line 228 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall3(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::LibFunc::memchr, llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
Value * llvm::EmitMemCmp | ( | Value * | Ptr1, |
Value * | Ptr2, | ||
Value * | Len, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitMemCmp - Emit a call to the memcmp function.
Definition at line 255 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall3(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::LibFunc::memcmp, llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
Value * llvm::EmitMemCpyChk | ( | Value * | Dst, |
Value * | Src, | ||
Value * | Len, | ||
Value * | ObjSize, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitMemCpyChk - Emit a call to the __memcpy_chk function to the builder. This expects that the Len and ObjSize have type 'intptr_t' and Dst/Src are pointers.
Definition at line 200 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall4(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::LibFunc::memcpy_chk, llvm::Attribute::NoUnwind, llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
void llvm::emitOptimizationRemark | ( | LLVMContext & | Ctx, |
const char * | PassName, | ||
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) |
Emit an optimization-applied message. PassName
is the name of the pass emitting the message. If -Rpass= is given and PassName
matches the regular expression in -Rpass, then the remark will be emitted. Fn
is the function triggering the remark, DLoc
is the debug location where the diagnostic is generated. Msg
is the message string to use.
Definition at line 171 of file DiagnosticInfo.cpp.
References llvm::LLVMContext::diagnose().
Referenced by llvm::Inliner::runOnSCC(), and UnrollLoop().
void llvm::emitOptimizationRemarkAnalysis | ( | LLVMContext & | Ctx, |
const char * | PassName, | ||
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) |
Emit an optimization analysis remark message. PassName
is the name of the pass emitting the message. If -Rpass-analysis= is given and PassName
matches the regular expression in -Rpass, then the remark will be emitted. Fn
is the function triggering the remark, DLoc
is the debug location where the diagnostic is generated. Msg
is the message string to use.
Definition at line 184 of file DiagnosticInfo.cpp.
References llvm::LLVMContext::diagnose().
Referenced by emitAnalysis().
void llvm::emitOptimizationRemarkMissed | ( | LLVMContext & | Ctx, |
const char * | PassName, | ||
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) |
Emit an optimization-missed message. PassName
is the name of the pass emitting the message. If -Rpass-missed= is given and PassName
matches the regular expression in -Rpass, then the remark will be emitted. Fn
is the function triggering the remark, DLoc
is the debug location where the diagnostic is generated. Msg
is the message string to use.
Definition at line 177 of file DiagnosticInfo.cpp.
References llvm::LLVMContext::diagnose().
Referenced by llvm::Inliner::runOnSCC().
Value * llvm::EmitPutChar | ( | Value * | Char, |
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitPutChar - Emit a call to the putchar function. This assumes that Char is an integer.
Definition at line 342 of file BuildLibCalls.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateIntCast(), F(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::LibFunc::putchar, llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
Value * llvm::EmitPutS | ( | Value * | Str, |
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitPutS - Emit a call to the puts function. This assumes that Str is some pointer.
Definition at line 364 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall(), F(), llvm::AttributeSet::FunctionIndex, llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::LibFunc::puts, and llvm::CallInst::setCallingConv().
static void llvm::EmitRuntimeFunction | ( | MCStreamer & | streamer, |
const WinEH::FrameInfo * | info | ||
) | [static] |
Definition at line 138 of file MCWin64EH.cpp.
References llvm::WinEH::FrameInfo::Begin, llvm::MCSymbolRefExpr::Create(), EmitSymbolRefWithOfs(), llvm::MCStreamer::EmitValue(), llvm::MCStreamer::EmitValueToAlignment(), llvm::WinEH::FrameInfo::End, llvm::WinEH::FrameInfo::Function, llvm::MCStreamer::getContext(), llvm::WinEH::FrameInfo::Symbol, and llvm::MCSymbolRefExpr::VK_COFF_IMGREL32.
Referenced by llvm::Win64EH::UnwindEmitter::Emit(), and EmitUnwindInfo().
void llvm::emitSourceFileHeader | ( | StringRef | Desc, |
raw_ostream & | OS | ||
) |
emitSourceFileHeader - Output an LLVM style file header to the specified raw_ostream.
Definition at line 35 of file TableGenBackend.cpp.
References MAX_LINE_LEN, llvm::cl::Prefix, printLine(), llvm::StringRef::size(), and llvm::StringRef::slice().
Value * llvm::EmitStrChr | ( | Value * | Ptr, |
char | C, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitStrChr - Emit a call to the strchr function to the builder, for the specified pointer and character. Ptr is required to be some pointer type, and the return value has 'i8*' type.
Definition at line 93 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), F(), llvm::AttributeSet::FunctionIndex, llvm::ConstantInt::get(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), llvm::LibFunc::strchr, and llvm::Constant::stripPointerCasts().
Value * llvm::EmitStrCpy | ( | Value * | Dst, |
Value * | Src, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI, | ||
StringRef | Name = "strcpy" |
||
) |
EmitStrCpy - Emit a call to the strcpy function to the builder, for the specified pointer arguments.
Definition at line 149 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), F(), llvm::AttributeSet::FunctionIndex, llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::CallInst::setCallingConv(), llvm::LibFunc::strcpy, and llvm::Value::stripPointerCasts().
Referenced by llvm::SimplifyFortifiedLibCalls::fold().
Value * llvm::EmitStrLen | ( | Value * | Ptr, |
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitStrLen - Emit a call to the strlen function to the builder, for the specified pointer. Ptr is required to be some pointer type, and the return value has 'intptr_t' type.
EmitStrLen - Emit a call to the strlen function to the builder, for the specified pointer. This always returns an integer value of size intptr_t.
Definition at line 36 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), llvm::Constant::stripPointerCasts(), and llvm::LibFunc::strlen.
Value * llvm::EmitStrNCmp | ( | Value * | Ptr1, |
Value * | Ptr2, | ||
Value * | Len, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitStrNCmp - Emit a call to the strncmp function to the builder.
Definition at line 117 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall3(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32Ty(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), llvm::Value::stripPointerCasts(), and llvm::LibFunc::strncmp.
Value * llvm::EmitStrNCpy | ( | Value * | Dst, |
Value * | Src, | ||
Value * | Len, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI, | ||
StringRef | Name = "strncpy" |
||
) |
EmitStrNCpy - Emit a call to the strncpy function to the builder, for the specified pointer arguments and length.
EmitStrNCpy - Emit a call to the strncpy function to the builder, for the specified pointer arguments.
Definition at line 173 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall3(), F(), llvm::AttributeSet::FunctionIndex, llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::CallInst::setCallingConv(), llvm::Value::stripPointerCasts(), and llvm::LibFunc::strncpy.
Referenced by llvm::SimplifyFortifiedLibCalls::fold().
Value * llvm::EmitStrNLen | ( | Value * | Ptr, |
Value * | MaxLen, | ||
IRBuilder<> & | B, | ||
const DataLayout * | TD, | ||
const TargetLibraryInfo * | TLI | ||
) |
EmitStrNLen - Emit a call to the strnlen function to the builder, for the specified pointer. Ptr is required to be some pointer type, MaxLen must be of size_t type, and the return value has 'intptr_t' type.
Definition at line 64 of file BuildLibCalls.cpp.
References CastToCStr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), F(), llvm::AttributeSet::FunctionIndex, llvm::BasicBlock::getContext(), llvm::Module::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::DataLayout::getIntPtrType(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::TargetLibraryInfo::has(), llvm::Attribute::NoCapture, llvm::Attribute::NoUnwind, llvm::Attribute::ReadOnly, llvm::CallInst::setCallingConv(), llvm::Constant::stripPointerCasts(), and llvm::LibFunc::strnlen.
static void llvm::EmitSymbolRefWithOfs | ( | MCStreamer & | streamer, |
const MCSymbol * | Base, | ||
const MCSymbol * | Other | ||
) | [static] |
Definition at line 125 of file MCWin64EH.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateAdd(), llvm::MCBinaryExpr::CreateSub(), llvm::MCStreamer::EmitValue(), llvm::MCStreamer::getContext(), and llvm::MCSymbolRefExpr::VK_COFF_IMGREL32.
Referenced by EmitRuntimeFunction().
void llvm::emitT2RegPlusImmediate | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator & | MBBI, | ||
DebugLoc | dl, | ||
unsigned | DestReg, | ||
unsigned | BaseReg, | ||
int | NumBytes, | ||
ARMCC::CondCodes | Pred, | ||
unsigned | PredReg, | ||
const ARMBaseInstrInfo & | TII, | ||
unsigned | MIFlags = 0 |
||
) |
Definition at line 221 of file Thumb2InstrInfo.cpp.
References AddDefaultCC(), AddDefaultPred(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), BuildMI(), countLeadingZeros(), llvm::ARM_AM::getT2SOImmVal(), llvm::RegState::Kill, llvm::ARM_AM::rotr32(), and llvm::MachineInstrBuilder::setMIFlags().
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::ARMFrameLowering::emitEpilogue(), and emitRegPlusImmediate().
void llvm::emitThumbRegPlusImmediate | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator & | MBBI, | ||
DebugLoc | dl, | ||
unsigned | DestReg, | ||
unsigned | BaseReg, | ||
int | NumBytes, | ||
const TargetInstrInfo & | TII, | ||
const ARMBaseRegisterInfo & | MRI, | ||
unsigned | MIFlags = 0 |
||
) |
emitThumbRegPlusImmediate - Emits a series of instructions to materialize a destreg = basereg + immediate in Thumb code.
Definition at line 165 of file Thumb1RegisterInfo.cpp.
References AddDefaultPred(), AddDefaultT1CC(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), BuildMI(), calcNumMI(), emitThumbRegPlusImmInReg(), llvm::MCInstrInfo::get(), getKillRegState(), isARMLowRegister(), llvm::RegState::Kill, llvm::MachineInstrBuilder::setMIFlags(), and Threshold.
Referenced by llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::Thumb1FrameLowering::emitEpilogue(), emitSPUpdate(), emitThumbConstant(), and llvm::Thumb1RegisterInfo::rewriteFrameIndex().
Value * llvm::EmitUnaryFloatFnCall | ( | Value * | Op, |
StringRef | Name, | ||
IRBuilder<> & | B, | ||
const AttributeSet & | Attrs | ||
) |
EmitUnaryFloatFnCall - Emit a call to the unary function named 'Name' (e.g. 'floor'). This function is known to take a single of type matching 'Op' and returns one value with the same type. If 'Op' is a long double, 'l' is added as the suffix of name, if 'Op' is a float, we add a 'f' suffix.
Definition at line 303 of file BuildLibCalls.cpp.
References AppendTypeSuffix(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall(), F(), llvm::IRBuilderBase::GetInsertBlock(), llvm::Module::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::CallInst::setAttributes(), llvm::CallInst::setCallingConv(), and llvm::Value::stripPointerCasts().
static void llvm::EmitUnwindCode | ( | MCStreamer & | streamer, |
const MCSymbol * | begin, | ||
WinEH::Instruction & | inst | ||
) | [static] |
Definition at line 59 of file MCWin64EH.cpp.
References EmitAbsDifference(), llvm::MCStreamer::EmitIntValue(), llvm::WinEH::Instruction::Label, llvm::WinEH::Instruction::Offset, llvm::WinEH::Instruction::Operation, llvm::WinEH::Instruction::Register, llvm::Win64EH::UOP_AllocLarge, llvm::Win64EH::UOP_AllocSmall, llvm::Win64EH::UOP_PushMachFrame, llvm::Win64EH::UOP_PushNonVol, llvm::Win64EH::UOP_SaveNonVol, llvm::Win64EH::UOP_SaveNonVolBig, llvm::Win64EH::UOP_SaveXMM128, llvm::Win64EH::UOP_SaveXMM128Big, and llvm::Win64EH::UOP_SetFPReg.
Referenced by EmitUnwindInfo().
static void llvm::EmitUnwindInfo | ( | MCStreamer & | streamer, |
WinEH::FrameInfo * | info | ||
) | [static] |
Definition at line 150 of file MCWin64EH.cpp.
References llvm::WinEH::FrameInfo::Begin, llvm::WinEH::FrameInfo::ChainedParent, CountOfUnwindCodes(), llvm::MCSymbolRefExpr::Create(), llvm::MCContext::CreateTempSymbol(), EmitAbsDifference(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), EmitRuntimeFunction(), EmitUnwindCode(), llvm::MCStreamer::EmitValue(), llvm::MCStreamer::EmitValueToAlignment(), llvm::WinEH::FrameInfo::ExceptionHandler, llvm::MCStreamer::getContext(), llvm::WinEH::FrameInfo::HandlesExceptions, llvm::WinEH::FrameInfo::HandlesUnwind, llvm::WinEH::FrameInfo::Instructions, llvm::WinEH::FrameInfo::LastFrameInst, llvm::WinEH::Instruction::Offset, llvm::WinEH::Instruction::Operation, llvm::WinEH::FrameInfo::PrologEnd, llvm::WinEH::Instruction::Register, llvm::WinEH::FrameInfo::Symbol, llvm::Win64EH::UNW_ChainInfo, llvm::Win64EH::UNW_ExceptionHandler, llvm::Win64EH::UNW_TerminateHandler, llvm::Win64EH::UOP_SetFPReg, and llvm::MCSymbolRefExpr::VK_COFF_IMGREL32.
void llvm::EnablePrettyStackTrace | ( | ) |
Definition at line 143 of file PrettyStackTrace.cpp.
References RegisterCrashPrinter().
Referenced by LLVMEnablePrettyStackTrace(), and llvm::PrettyStackTraceProgram::PrettyStackTraceProgram().
void llvm::EnableStatistics | ( | ) |
Enable the collection and printing of statistics.
Definition at line 92 of file Statistic.cpp.
References Enabled.
static int llvm::encode_leb128 | ( | uint64_t | val, |
int * | nbytes, | ||
char * | space, | ||
int | splen | ||
) | [static] |
Definition at line 36 of file NVPTXutil.cpp.
References DATA_MASK, DIGIT_WIDTH, llvm::sys::path::end(), and MORE_BYTES.
Referenced by encode_leb128().
uint64_t llvm::encode_leb128 | ( | const char * | str | ) |
Definition at line 61 of file NVPTXutil.cpp.
References encode_leb128(), and llvm::LibFunc::strlen.
void llvm::encodeSLEB128 | ( | int64_t | Value, |
raw_ostream & | OS | ||
) | [inline] |
Utility function to encode a SLEB128 value to an output stream.
Definition at line 23 of file LEB128.h.
Referenced by llvm::MCStreamer::EmitSLEB128IntValue(), and llvm::MCDwarfLineAddr::Encode().
void llvm::encodeULEB128 | ( | uint64_t | Value, |
raw_ostream & | OS, | ||
unsigned | Padding = 0 |
||
) | [inline] |
Utility function to encode a ULEB128 value to an output stream.
Definition at line 38 of file LEB128.h.
Referenced by llvm::UnwindOpcodeAssembler::EmitSPOffset(), llvm::MCStreamer::EmitULEB128IntValue(), llvm::MCDwarfLineAddr::Encode(), llvm::coverage::CoverageFilenamesSectionWriter::write(), llvm::coverage::CoverageMappingWriter::write(), and writeCounter().
unsigned llvm::encodeULEB128 | ( | uint64_t | Value, |
uint8_t * | p, | ||
unsigned | Padding = 0 |
||
) | [inline] |
raw_ostream & llvm::errs | ( | ) |
errs() - This returns a reference to a raw_ostream for standard error. Use it like: errs() << "foo" << "bar";
Definition at line 663 of file raw_ostream.cpp.
Referenced by llvm::MipsTargetMachine::addAnalysisPasses(), llvm::Interpreter::callExternalFunction(), CheckBitcodeOutputToConsole(), checkForCyclesHelper(), llvm::SelectionDAG::clearGraphAttrs(), CrashHandler(), llvm::EngineBuilder::create(), createDependencyFile(), createGraphFilename(), CreateInfoOutputFile(), dbgs(), llvm::LLVMContext::diagnose(), DisplayGraph(), llvm::SubMultiClassReference::dump(), llvm::RecTy::dump(), llvm::opt::Arg::dump(), llvm::ARMConstantPoolValue::dump(), llvm::MCFragment::dump(), llvm::opt::Option::dump(), llvm::Init::dump(), llvm::LiveRangeUpdater::dump(), llvm::MCSectionData::dump(), llvm::MCSymbolData::dump(), llvm::MCAssembler::dump(), llvm::RecordVal::dump(), llvm::Record::dump(), llvm::MultiClass::dump(), llvm::RecordKeeper::dump(), dumpDataAux(), llvm::RGPassManager::dumpPassStructure(), llvm::LPPassManager::dumpPassStructure(), llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::MCStreamer::EmitRawTextImpl(), llvm::cl::Option::error(), ExecGraphViewer(), ferrs(), llvm::MCAssembler::Finish(), llvm::SubtargetFeatures::getFeatureBits(), llvm::SelectionDAG::getGraphAttrs(), GetOptionInfo(), llvm::MCSubtargetInfo::getSchedModelForCPU(), llvm::LeakDetectorImpl< Value >::hasGarbage(), Help(), INITIALIZE_PASS(), lle_X_sprintf(), LLVMSetLinkage(), LLVMVerifyFunction(), LLVMVerifyModule(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::PluginLoader::operator=(), OptimizeGlobalAddressOfMalloc(), llvm::DWARFDebugLoc::parse(), llvm::DWARFDebugLocDWO::parse(), llvm::cl::ParseCommandLineOptions(), llvm::PassNameParser::passRegistered(), llvm::PrinterTrait< T >::print(), llvm::PrinterTrait< Value >::print(), llvm::detail::printBumpPtrAllocatorStats(), PrintError(), PrintLoadStoreResults(), llvm::SourceMgr::PrintMessage(), PrintModRefResults(), PrintPercent(), PrintRecyclerStats(), PrintResults(), PrintWarning(), llvm::RandomNumberGenerator::RandomNumberGenerator(), llvm::GCOVFile::readGCDA(), llvm::GCOVFunction::readGCDA(), llvm::GCOVBuffer::readGCDAFormat(), llvm::GCOVFunction::readGCNO(), llvm::GCOVBuffer::readGCNOFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readString(), llvm::GenericScheduler::registerRoots(), llvm::PostGenericScheduler::registerRoots(), removeUseSoftFloat(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::MipsModuleDAGToDAGISel::runOnMachineFunction(), llvm::Mips16HardFloat::runOnModule(), llvm::DOTGraphTraitsModulePrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), llvm::SelectionDAG::setGraphAttrs(), llvm::SelectionDAG::setGraphColor(), llvm::SelectionDAG::setSubgraphColor(), TableGenMain(), llvm::SubtargetFeatures::ToggleFeature(), llvm::PHITransAddr::Verify(), llvm::DominatorTree::verifyDomTree(), VerifySubExpr(), llvm::MachineRegisterInfo::verifyUseList(), llvm::BlockFrequencyInfo::view(), llvm::MachineBlockFrequencyInfo::view(), llvm::MachineFunction::viewCFG(), llvm::MachineFunction::viewCFGOnly(), llvm::SelectionDAG::viewGraph(), llvm::ScheduleDAGMI::viewGraph(), llvm::ScheduleDAG::viewGraph(), llvm::Interpreter::visitInstruction(), and WriteGraph().
GraphT::NodeType* llvm::Eval | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, |
typename GraphT::NodeType * | VIn, | ||
unsigned | LastLinked | ||
) |
Definition at line 108 of file GenericDomTreeConstruction.h.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::DominatorTreeBase< NodeT >::InfoRec::DFSNum, llvm::SmallVectorBase::empty(), llvm::DominatorTreeBase< NodeT >::Info, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::DominatorTreeBase< NodeT >::InfoRec::Label, llvm::DominatorTreeBase< NodeT >::InfoRec::Parent, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::DominatorTreeBase< NodeT >::Vertex.
Referenced by EvaluateStaticConstructor().
bool llvm::expandDivision | ( | BinaryOperator * | Div | ) |
Replace Div with generated code.
Generate code to divide two integers, replacing Div with the generated code. This currently generates code similarly to compiler-rt's implementations, but future work includes generating more specialized code when more information about the operands are known. Implements both 32bit and 64bit scalar division.
Definition at line 434 of file IntegerDivision.cpp.
References llvm::User::dropAllReferences(), dyn_cast(), llvm::Instruction::eraseFromParent(), generateSignedDivisionCode(), generateUnsignedDivisionCode(), llvm::IRBuilderBase::GetInsertPoint(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, and llvm::Value::replaceAllUsesWith().
Referenced by expandDivisionUpTo32Bits(), expandDivisionUpTo64Bits(), and expandRemainder().
Replace Rem with generated code.
Replace Div with emulation code.
Generate code to divide two integers, replacing Div with the generated code. Uses ExpandDivision with a 32bit Div which makes it useful for targets with little or no support for less than 32 bit arithmetic.
Generate code to divide two integers of bitwidth up to 32 bits. Uses the above routines and extends the inputs/truncates the outputs to operate in 32 bits; that is, these routines are good for targets that have no or very little support for smaller than 32 bit integer arithmetic.
Definition at line 586 of file IntegerDivision.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateSDiv(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateSExt(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateTrunc(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateUDiv(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateZExt(), llvm::User::dropAllReferences(), llvm::Instruction::eraseFromParent(), expandDivision(), llvm::IRBuilderBase::getInt32Ty(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, llvm::Value::replaceAllUsesWith(), and Trunc.
Replace Rem with generated code.
Replace Div with emulation code.
Generate code to divide two integers, replacing Div with the generated code. Uses ExpandDivision with a 64bit Div.
Generate code to divide two integers of bitwidth up to 64 bits. Uses the above routines and extends the inputs/truncates the outputs to operate in 64 bits.
Definition at line 636 of file IntegerDivision.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateSDiv(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateSExt(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateTrunc(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateUDiv(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateZExt(), llvm::User::dropAllReferences(), llvm::Instruction::eraseFromParent(), expandDivision(), llvm::IRBuilderBase::getInt64Ty(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, llvm::Value::replaceAllUsesWith(), and Trunc.
bool llvm::expandRemainder | ( | BinaryOperator * | Rem | ) |
Replace Rem with generated code.
Generate code to calculate the remainder of two integers, replacing Rem with the generated code. This currently generates code using the udiv expansion, but future work includes generating more specialized code, e.g. when more information about the operands are known. Implements both 32bit and 64bit scalar division.
Definition at line 376 of file IntegerDivision.cpp.
References llvm::User::dropAllReferences(), dyn_cast(), llvm::Instruction::eraseFromParent(), expandDivision(), generatedUnsignedRemainderCode(), generateSignedRemainderCode(), llvm::IRBuilderBase::GetInsertPoint(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, and llvm::Value::replaceAllUsesWith().
Referenced by expandRemainderUpTo32Bits(), and expandRemainderUpTo64Bits().
Replace Rem with generated code.
Replace Rem with emulation code.
Generate code to calculate the remainder of two integers, replacing Rem with the generated code. Uses ExpandReminder with a 32bit Rem which makes it useful for targets with little or no support for less than 32 bit arithmetic.
Generate code to compute the remainder of two integers of bitwidth up to 32 bits. Uses the above routines and extends the inputs/truncates the outputs to operate in 32 bits; that is, these routines are good for targets that have no or very little suppport for smaller than 32 bit integer arithmetic.
Definition at line 485 of file IntegerDivision.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateSExt(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateSRem(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateTrunc(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateURem(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateZExt(), llvm::User::dropAllReferences(), llvm::Instruction::eraseFromParent(), expandRemainder(), llvm::IRBuilderBase::getInt32Ty(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, llvm::Value::replaceAllUsesWith(), and Trunc.
Replace Rem with generated code.
Replace Rem with emulation code.
Generate code to calculate the remainder of two integers, replacing Rem with the generated code. Uses ExpandReminder with a 64bit Rem.
Generate code to compute the remainder of two integers of bitwidth up to 64 bits. Uses the above routines and extends the inputs/truncates the outputs to operate in 64 bits.
Definition at line 535 of file IntegerDivision.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateSExt(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateSRem(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateTrunc(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateURem(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateZExt(), llvm::User::dropAllReferences(), llvm::Instruction::eraseFromParent(), expandRemainder(), llvm::IRBuilderBase::getInt64Ty(), llvm::Type::getIntegerBitWidth(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isVectorTy(), llvm_unreachable, llvm::Value::replaceAllUsesWith(), and Trunc.
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DomTreeNodeBase< MachineBasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DominatorTreeBase< MachineBasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DomTreeNodeBase< BasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DominatorTreeBase< BasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | void Calculate< Function LLVM_COMMA BasicBlock * > | DominatorTreeBase< GraphTraits< BasicBlock * >::NodeType > &DT LLVM_COMMAFunction &F | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | void Calculate< Function LLVM_COMMA Inverse< BasicBlock * > > | DominatorTreeBase< GraphTraits< Inverse< BasicBlock * > >::NodeType > &DTLLVM_COMMA Function &F | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionBase< RegionTraits< MachineFunction >> | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionNodeBase< RegionTraits< MachineFunction >> | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionInfoBase< RegionTraits< MachineFunction >> | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DominanceFrontierBase< BasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class ForwardDominanceFrontierBase< BasicBlock > | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionBase< RegionTraits< Function >> | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionNodeBase< RegionTraits< Function >> | ) |
llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class RegionInfoBase< RegionTraits< Function >> | ) |
const CallInst * llvm::extractCallocCall | ( | const Value * | I, |
const TargetLibraryInfo * | TLI | ||
) |
extractCallocCall - Returns the corresponding CallInst if the instruction is a calloc call.
Definition at line 310 of file MemoryBuiltins.cpp.
References I, and isCallocLikeFn().
Referenced by extractCallocCall().
static CallInst* llvm::extractCallocCall | ( | Value * | I, |
const TargetLibraryInfo * | TLI | ||
) | [inline, static] |
Definition at line 122 of file MemoryBuiltins.h.
References extractCallocCall().
const CallInst * llvm::extractMallocCall | ( | const Value * | I, |
const TargetLibraryInfo * | TLI | ||
) |
extractMallocCall - Returns the corresponding CallInst if the instruction is a malloc call. Since CallInst::CreateMalloc() only creates calls, we ignore InvokeInst here.
Definition at line 204 of file MemoryBuiltins.cpp.
References dyn_cast(), I, and isMallocLikeFn().
Referenced by extractMallocCall(), isArrayMalloc(), and OptimizeOnceStoredGlobal().
static CallInst* llvm::extractMallocCall | ( | Value * | I, |
const TargetLibraryInfo * | TLI | ||
) | [inline, static] |
Definition at line 80 of file MemoryBuiltins.h.
References extractMallocCall().
GlobalVariable * llvm::ExtractTypeInfo | ( | Value * | V | ) |
ExtractTypeInfo - Returns the type info, possibly bitcast, encoded in V.
Definition at line 112 of file CodeGen/Analysis.cpp.
References dyn_cast(), llvm::GlobalVariable::getInitializer(), llvm::Value::getName(), llvm::GlobalVariable::hasInitializer(), and llvm::Value::stripPointerCasts().
Referenced by AddCatchInfo().
static bool llvm::f64AssignAAPCS | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
CCState & | State, | ||
bool | CanFail | ||
) | [static] |
Definition at line 71 of file ARMCallingConv.h.
References llvm::CCState::addLoc(), llvm::CCState::AllocateReg(), llvm::CCState::AllocateStack(), llvm::CCValAssign::getCustomMem(), llvm::CCValAssign::getCustomReg(), GPRArgRegs, and T.
Referenced by CC_ARM_AAPCS_Custom_f64().
static bool llvm::f64AssignAPCS | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
CCState & | State, | ||
bool | CanFail | ||
) | [static] |
Definition at line 28 of file ARMCallingConv.h.
References llvm::CCState::addLoc(), llvm::CCState::AllocateReg(), llvm::CCState::AllocateStack(), llvm::CCValAssign::getCustomMem(), and llvm::CCValAssign::getCustomReg().
Referenced by CC_ARM_APCS_Custom_f64().
static bool llvm::f64RetAssign | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
CCState & | State | ||
) | [static] |
Definition at line 124 of file ARMCallingConv.h.
References llvm::CCState::addLoc(), llvm::CCState::AllocateReg(), and llvm::CCValAssign::getCustomReg().
Referenced by RetCC_ARM_APCS_Custom_f64().
fdbgs() - This returns a reference to a formatted_raw_ostream for debug output. Use it like: fdbgs() << "foo" << "bar";
fdbgs() - This returns a reference to a formatted_raw_ostream for the debug stream. Use it like: fdbgs() << "foo" << "bar";
Definition at line 103 of file FormattedStream.cpp.
References dbgs().
ferrs() - This returns a reference to a formatted_raw_ostream for standard error. Use it like: ferrs() << "foo" << "bar";
Definition at line 96 of file FormattedStream.cpp.
References errs().
void llvm::finalizeBundle | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::instr_iterator | FirstMI, | ||
MachineBasicBlock::instr_iterator | LastMI | ||
) |
finalizeBundle - Finalize a machine instruction bundle which includes a sequence of instructions starting from FirstMI to LastMI (exclusive). This routine adds a BUNDLE instruction to represent the bundle, it adds IsInternalRead markers to MachineOperands which are defined inside the bundle, and it copies externally visible defs and uses to the BUNDLE instruction.
Referenced by llvm::VLIWPacketizerList::endPacket(), and finalizeBundles().
MachineBasicBlock::instr_iterator llvm::finalizeBundle | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::instr_iterator | FirstMI | ||
) |
finalizeBundle - Same functionality as the previous finalizeBundle except the last instruction in the bundle is not provided as an input. This is used in cases where bundles are pre-determined by marking instructions with 'InsideBundle' marker. It returns the MBB instruction iterator that points to the end of the bundle.
bool llvm::finalizeBundles | ( | MachineFunction & | MF | ) |
finalizeBundles - Finalize instruction bundles in the specified MachineFunction. Return true if any bundles are finalized.
Definition at line 224 of file MachineInstrBundle.cpp.
References llvm::MachineFunction::begin(), llvm::MachineFunction::end(), finalizeBundle(), I, llvm::MachineBasicBlock::instr_begin(), and llvm::MachineBasicBlock::instr_end().
Referenced by INITIALIZE_PASS().
bool llvm::findAllNVVMAnnotation | ( | const llvm::GlobalValue * | gv, |
std::string | prop, | ||
std::vector< unsigned > & | retval | ||
) |
Definition at line 115 of file NVPTXUtilities.cpp.
References annotationCache, cacheAnnotationFromMD(), llvm::GlobalValue::getParent(), and Lock.
Referenced by getAlign(), isImageReadOnly(), isImageReadWrite(), isImageWriteOnly(), and isSampler().
FindAllocaDbgDeclare - Finds the llvm.dbg.declare intrinsic corresponding to an alloca, if any.
FindAllocaDbgDeclare - Finds the llvm.dbg.declare intrinsic describing the alloca 'V', if any.
Definition at line 1091 of file Local.cpp.
References llvm::Value::getContext(), llvm::MDNode::getIfExists(), and llvm::Value::users().
Referenced by replaceDbgDeclareForAlloca().
Value * llvm::FindAvailableLoadedValue | ( | Value * | Ptr, |
BasicBlock * | ScanBB, | ||
BasicBlock::iterator & | ScanFrom, | ||
unsigned | MaxInstsToScan = 6 , |
||
AliasAnalysis * | AA = nullptr , |
||
AAMDNodes * | AATags = nullptr |
||
) |
FindAvailableLoadedValue - Scan the ScanBB block backwards (starting at the instruction before ScanFrom) checking to see if we have the value at the memory address *Ptr locally available within a small number of instructions. If the value is available, return it.
If not, return the iterator for the last validated instruction that the value would be live through. If we scanned the entire block and didn't find something that invalidates *Ptr or provides it, ScanFrom would be left at begin() and this returns null. ScanFrom could also be left
MaxInstsToScan specifies the maximum instructions to scan in the block. If it is set to 0, it will scan the whole block. You can also optionally specify an alias analysis implementation, which makes this more precise.
If AATags is non-null and a load or store is found, the AA tags from the load or store are recorded there. If there are no AA tags or if no access is found, it is left unmodified.
Definition at line 139 of file Loads.cpp.
References AreEquivalentAddressValues(), llvm::BasicBlock::begin(), llvm::AliasAnalysis::getModRefInfo(), llvm::Value::getType(), llvm::AliasAnalysis::getTypeStoreSize(), LI, llvm::Instruction::mayWriteToMemory(), and llvm::AliasAnalysis::Mod.
Referenced by llvm::InstCombiner::visitLoadInst().
std::enable_if< std::numeric_limits< T >::is_integer &&std::numeric_limits< T >::is_signed, T >::type llvm::findFirstSet | ( | T | Val, |
ZeroBehavior | ZB = ZB_Max |
||
) |
Get the index of the first set bit starting from the least significant bit.
Only unsigned integral types are allowed.
ZB | the behavior on an input of 0. Only ZB_Max and ZB_Undefined are valid arguments. |
Definition at line 186 of file MathExtras.h.
References countTrailingZeros(), ZB_Max, and ZB_Undefined.
Referenced by isStringOfOnes().
void llvm::FindFunctionBackedges | ( | const Function & | F, |
SmallVectorImpl< std::pair< const BasicBlock *, const BasicBlock * > > & | Result | ||
) |
Analyze the specified function to find all of the loop backedges in the function and return them. This is a relatively cheap (compared to computing dominators and loop info) analysis.
The output is added to Result, as pairs of <from,to> edge info.
FindFunctionBackedges - Analyze the specified function to find all of the loop backedges in the function and return them. This is a relatively cheap (compared to computing dominators and loop info) analysis.
The output is added to Result, as pairs of <from,to> edge info.
Definition at line 27 of file CFG.cpp.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::SmallVectorBase::empty(), llvm::SmallPtrSetImpl< PtrType >::erase(), llvm::Function::getEntryBlock(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), succ_begin(), and succ_end().
Value * llvm::FindInsertedValue | ( | Value * | V, |
ArrayRef< unsigned > | idx_range, | ||
Instruction * | InsertBefore = nullptr |
||
) |
FindInsertedValue - Given an aggregrate and an sequence of indices, see if the scalar value indexed is already around as a register, for example if it were inserted directly into the aggregrate.
If InsertBefore is not null, this function will duplicate (modified) insertvalues when a part of a nested struct is extracted.
Definition at line 2164 of file ValueTracking.cpp.
References llvm::SmallVectorImpl< T >::append(), llvm::ArrayRef< T >::begin(), BuildSubAggregate(), llvm::CallingConv::C, llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::end(), llvm::ExtractValueInst::getIndexedType(), llvm::Value::getType(), I, llvm::Type::isArrayTy(), llvm::Type::isStructTy(), makeArrayRef(), llvm::SmallVectorImpl< T >::reserve(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::ArrayRef< T >::size(), and llvm::ArrayRef< T >::slice().
Referenced by BuildSubAggregate().
std::enable_if< std::numeric_limits< T >::is_integer &&std::numeric_limits< T >::is_signed, T >::type llvm::findLastSet | ( | T | Val, |
ZeroBehavior | ZB = ZB_Max |
||
) |
Get the index of the last set bit starting from the least significant bit.
Only unsigned integral types are allowed.
ZB | the behavior on an input of 0. Only ZB_Max and ZB_Undefined are valid arguments. |
Definition at line 209 of file MathExtras.h.
References countLeadingZeros(), and ZB_Undefined.
Referenced by llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset().
bool llvm::findOneNVVMAnnotation | ( | const llvm::GlobalValue * | gv, |
std::string | prop, | ||
unsigned & | retval | ||
) |
Definition at line 101 of file NVPTXUtilities.cpp.
References annotationCache, cacheAnnotationFromMD(), llvm::GlobalValue::getParent(), and Lock.
Referenced by getMaxNTIDx(), getMaxNTIDy(), getMaxNTIDz(), getMinCTASm(), getReqNTIDx(), getReqNTIDy(), getReqNTIDz(), isKernelFunction(), isManaged(), isSampler(), isSurface(), and isTexture().
MachineBasicBlock::iterator llvm::findPHICopyInsertPoint | ( | MachineBasicBlock * | MBB, |
MachineBasicBlock * | SuccMBB, | ||
unsigned | SrcReg | ||
) |
findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg when following the CFG edge to SuccMBB. This needs to be after any def of SrcReg, but before any subsequent point where control flow might jump out of the basic block.
Definition at line 22 of file PHIEliminationUtils.cpp.
References llvm::MachineBasicBlock::begin(), llvm::SmallPtrSetImpl< PtrType >::begin(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::SmallPtrSetImplBase::empty(), llvm::MachineBasicBlock::empty(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getFirstTerminator(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::MachineBasicBlock::isLandingPad(), llvm::MachineRegisterInfo::reg_instructions(), llvm::SmallPtrSetImplBase::size(), and llvm::MachineBasicBlock::SkipPHIsAndLabels().
bool llvm::FlattenCFG | ( | BasicBlock * | BB, |
AliasAnalysis * | AA = nullptr |
||
) |
FlatternCFG - This function is used to flatten a CFG. For example, it uses parallel-and and parallel-or mode to collapse
FlattenCFG - This function is used to flatten a CFG. For example, it uses parallel-and and parallel-or mode to collapse
Definition at line 487 of file FlattenCFG.cpp.
Referenced by iterativelyFlattenCFG().
uint32_t llvm::FloatToBits | ( | float | Float | ) | [inline] |
FloatToBits - This function takes a float and returns the bit equivalent 32-bit integer. Note that copying floats around changes the bits of NaNs on some hosts, notably x86, so this routine cannot be used if these bits are needed.
Definition at line 525 of file MathExtras.h.
References F(), llvm::NVPTX::PTXLdStInstCode::Float, I, and T.
Referenced by llvm::PPC::get_VSPLTI_elt().
bool llvm::FoldBranchToCommonDest | ( | BranchInst * | BI, |
const DataLayout * | DL = nullptr |
||
) |
FoldBranchToCommonDest - If this basic block is ONLY a setcc and a branch, and if a predecessor branches to us and one of our successors, fold the setcc into the predecessor and use logical operations to pick the right destination.
FoldBranchToCommonDest - If this basic block is simple enough, and if a predecessor branches to us and one of our successors, fold the block into the predecessor and use logical operations to pick the right destination.
Definition at line 1976 of file SimplifyCFG.cpp.
References AddPredecessorToBlock(), llvm::APIntOps::And(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::BasicBlock::begin(), llvm::WinEH::CE, checkCSEInPredecessor(), llvm::Instruction::clone(), llvm::BranchInst::Create(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateBinOp(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateNot(), dbgs(), DEBUG, llvm::Instruction::dropUnknownMetadata(), dyn_cast(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::BasicBlock::end(), EraseTerminatorInstAndDCECond(), ExtractBranchMetadata(), FitWeights(), llvm::BasicBlock::front(), llvm::BranchInst::getCondition(), llvm::Value::getContext(), llvm::BasicBlock::getInstList(), llvm::CmpInst::getInversePredicate(), llvm::Value::getName(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::BasicBlock::getSinglePredecessor(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::ConstantInt::getType(), llvm::Value::hasOneUse(), I, llvm::iplist< NodeTy, Traits >::insert(), llvm::Instruction::insertBefore(), llvm::BranchInst::isConditional(), llvm::Type::isIntegerTy(), llvm::ConstantInt::isOne(), isProfitableToFoldUnconditional(), isSafeToSpeculativelyExecute(), llvm::BranchInst::isUnconditional(), llvm::LLVMContext::MD_dbg, llvm::LLVMContext::MD_prof, llvm::APIntOps::Or(), pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::User::replaceUsesOfWith(), SafeToMergeTerminators(), llvm::BranchInst::setCondition(), llvm::Instruction::setMetadata(), llvm::Value::setName(), llvm::CmpInst::setPredicate(), llvm::BranchInst::setSuccessor(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::BranchInst::swapSuccessors(), and llvm::Value::takeName().
Referenced by simplifyOneLoop().
ReturnInst * llvm::FoldReturnIntoUncondBranch | ( | ReturnInst * | RI, |
BasicBlock * | BB, | ||
BasicBlock * | Pred | ||
) |
FoldReturnIntoUncondBranch - This method duplicates the specified return instruction into a predecessor which ends in an unconditional branch. If the return instruction returns a value defined by a PHI, propagate the right value into the return. It returns the new return instruction in the predecessor.
Definition at line 615 of file BasicBlockUtils.cpp.
References llvm::Instruction::clone(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getTerminator(), llvm::iplist< NodeTy, Traits >::insert(), llvm::User::op_begin(), llvm::User::op_end(), llvm::iplist< NodeTy, Traits >::push_back(), llvm::BasicBlock::removePredecessor(), and llvm::User::setOperand().
void llvm::FoldSingleEntryPHINodes | ( | BasicBlock * | BB, |
Pass * | P = nullptr |
||
) |
FoldSingleEntryPHINodes - We know that BB has one predecessor. If there are any single-entry PHI nodes in it, fold them away. This handles the case when all entries to the PHI nodes in a block are guaranteed equal, such as when the block has exactly one predecessor.
Definition at line 68 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), llvm::AliasAnalysis::deleteValue(), llvm::UndefValue::get(), llvm::Pass::getAnalysisIfAvailable(), and llvm::MemoryDependenceAnalysis::removeInstruction().
Referenced by FoldBlockIntoPredecessor(), FoldCondBranchOnPHI(), and MergeBlockIntoPredecessor().
cl::opt<bool> llvm::ForceBottomUp | ( | "misched-bottomup" | , |
cl::Hidden | , | ||
cl:: | desc"Force bottom-up list scheduling" | ||
) |
cl::opt<bool> llvm::ForceTopDown | ( | "misched-topdown" | , |
cl::Hidden | , | ||
cl:: | desc"Force top-down list scheduling" | ||
) |
format_object1<T> llvm::format | ( | const char * | Fmt, |
const T & | Val | ||
) | [inline] |
These are helper functions used to produce formatted output. They use template type deduction to construct the appropriate instance of the format_object class to simplify their construction.
This is typically used like:
OS << format("%0.4f", myfloat) << '\n';
Definition at line 189 of file Format.h.
Referenced by dbgprintf(), llvm::DWARFCompileUnit::dump(), llvm::DWARFTypeUnit::dump(), llvm::DWARFDebugInfoEntryMinimal::dump(), llvm::DWARFAbbreviationDeclaration::dump(), llvm::DWARFDebugLoc::dump(), llvm::DWARFDebugAbbrev::dump(), llvm::DWARFDebugArangeSet::dump(), llvm::DWARFFormValue::dump(), llvm::DWARFDebugRangeList::dump(), llvm::DWARFContext::dump(), llvm::DWARFDebugLocDWO::dump(), llvm::DWARFDebugLine::Prologue::dump(), llvm::DWARFDebugLine::Row::dump(), llvm::DWARFDebugInfoEntryMinimal::dumpAttribute(), dumpPubSection(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), dumpSectionMemory(), llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::RuntimeDyldImpl::emitCommonSymbols(), emitGlobalConstantDataSequential(), emitGlobalConstantImpl(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::RuntimeDyldImpl::emitSection(), llvm::RuntimeDyldCheckerExprEval::evaluate(), llvm::MCInstPrinter::formatDec(), llvm::MCInstPrinter::formatHex(), getSizeForEncoding(), Help(), llvm::RuntimeDyldImpl::loadObject(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), llvm::raw_ostream::operator<<(), llvm::DWARFDebugFrame::parse(), llvm::BranchProbability::print(), llvm::ILPValue::print(), llvm::TimeRecord::print(), llvm::DIEAbbrev::print(), llvm::DIE::print(), llvm::FileInfo::print(), llvm::DIEEntry::print(), llvm::DIETypeSignature::print(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::AArch64InstPrinter::printHexImm(), printRelocationTargetName(), llvm::AArch64InstPrinter::printSIMDType10Operand(), PrintStatistics(), printVal(), llvm::RuntimeDyldImpl::reassignSectionAddress(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::RuntimeDyldImpl::resolveRelocations(), llvm::MD5::stringifyResult(), and llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand().
bool llvm::formLCSSA | ( | Loop & | L, |
DominatorTree & | DT, | ||
ScalarEvolution * | SE = nullptr |
||
) |
Put loop into LCSSA form.
Looks at all instructions in the loop which have uses outside of the current loop. For each, an LCSSA PHI node is inserted and the uses outside the loop are rewritten to use this node.
LoopInfo and DominatorTree are required and preserved.
If ScalarEvolution is passed in, it will be preserved.
Returns true if any modifications are made to the loop.
Definition at line 183 of file LCSSA.cpp.
References llvm::BasicBlock::begin(), llvm::LoopBase< BlockT, LoopT >::block_begin(), llvm::LoopBase< BlockT, LoopT >::block_end(), blockDominatesAnExit(), llvm::SmallVectorBase::empty(), llvm::BasicBlock::end(), llvm::ScalarEvolution::forgetLoop(), llvm::LoopBase< BlockT, LoopT >::getExitBlocks(), I, llvm::Loop::isLCSSAForm(), and processInstruction().
Referenced by formLCSSARecursively().
bool llvm::formLCSSARecursively | ( | Loop & | L, |
DominatorTree & | DT, | ||
ScalarEvolution * | SE = nullptr |
||
) |
Put a loop nest into LCSSA form.
Process a loop nest depth first.
This recursively forms LCSSA for a loop nest.
LoopInfo and DominatorTree are required and preserved.
If ScalarEvolution is passed in, it will be preserved.
Returns true if any modifications are made to the loop.
Definition at line 231 of file LCSSA.cpp.
References llvm::LoopBase< BlockT, LoopT >::begin(), llvm::LoopBase< BlockT, LoopT >::end(), formLCSSA(), llvm::AArch64CC::LE, and LI.
Referenced by UnrollLoop().
fouts() - This returns a reference to a formatted_raw_ostream for standard output. Use it like: fouts() << "foo" << "bar";
Definition at line 89 of file FormattedStream.cpp.
References outs().
DITypeIdentifierMap llvm::generateDITypeIdentifierMap | ( | const NamedMDNode * | CU_Nodes | ) |
Construct DITypeIdentifierMap by going through retained types of each CU.
Update DITypeIdentifierMap by going through retained types of each CU.
Definition at line 986 of file DebugInfo.cpp.
References llvm::NamedMDNode::getNumOperands(), llvm::NamedMDNode::getOperand(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::insert(), and P.
Referenced by llvm::DwarfDebug::beginModule().
gep_type_iterator llvm::gep_type_begin | ( | const User * | GEP | ) | [inline] |
Definition at line 85 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::begin(), llvm::User::getOperand(), llvm::Type::getScalarType(), llvm::Value::getType(), and llvm::User::op_begin().
Referenced by llvm::GEPOperator::accumulateConstantOffset(), computeKnownBits(), ConstantFoldGetElementPtrImpl(), DecomposeGEPExpression(), EmitGEPOffset(), EvaluateGEPOffsetExpression(), evaluateICmpRelation(), getGEPInductionOperand(), llvm::DataLayout::getIndexedOffset(), GetOffsetFromIndex(), isDereferenceablePointer(), isGEPKnownNonNull(), llvm::ConstantExpr::isGEPWithNoNotionalOverIndexing(), IsUserOfGlobalSafeForSRA(), llvm::Interpreter::visitGetElementPtrInst(), and llvm::InstCombiner::visitGetElementPtrInst().
gep_type_iterator llvm::gep_type_begin | ( | const User & | GEP | ) | [inline] |
Definition at line 92 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::begin(), llvm::User::getOperand(), llvm::Type::getScalarType(), llvm::Value::getType(), and llvm::User::op_begin().
generic_gep_type_iterator<const T *> llvm::gep_type_begin | ( | Type * | Op0, |
ArrayRef< T > | A | ||
) | [inline] |
Definition at line 102 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::begin(), and llvm::ArrayRef< T >::begin().
gep_type_iterator llvm::gep_type_end | ( | const User * | GEP | ) | [inline] |
Definition at line 89 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::end(), and llvm::User::op_end().
Referenced by llvm::GEPOperator::accumulateConstantOffset(), ConstantFoldGetElementPtrImpl(), isGEPKnownNonNull(), llvm::ConstantExpr::isGEPWithNoNotionalOverIndexing(), IsUserOfGlobalSafeForSRA(), llvm::Interpreter::visitGetElementPtrInst(), and llvm::InstCombiner::visitGetElementPtrInst().
gep_type_iterator llvm::gep_type_end | ( | const User & | GEP | ) | [inline] |
Definition at line 96 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::end(), and llvm::User::op_end().
generic_gep_type_iterator<const T *> llvm::gep_type_end | ( | Type * | , |
ArrayRef< T > | A | ||
) | [inline] |
Definition at line 108 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::end(), and llvm::ArrayRef< T >::end().
Definition at line 712 of file X86RegisterInfo.cpp.
References llvm_unreachable.
Referenced by copyPhysRegOpcode_AVX512().
bool llvm::getAlign | ( | const llvm::Function & | F, |
unsigned | index, | ||
unsigned & | align | ||
) |
Definition at line 305 of file NVPTXUtilities.cpp.
References findAllNVVMAnnotation(), PROPERTY_ALIGN, and PropertyAnnotationNames.
Referenced by llvm::NVPTXTargetLowering::getPrototype().
bool llvm::getAlign | ( | const llvm::CallInst & | I, |
unsigned | index, | ||
unsigned & | align | ||
) |
Definition at line 321 of file NVPTXUtilities.cpp.
References llvm::Instruction::getMetadata().
bool llvm::getAsSignedInteger | ( | StringRef | Str, |
unsigned | Radix, | ||
long long & | Result | ||
) |
Definition at line 380 of file StringRef.cpp.
References llvm::StringRef::empty(), llvm::StringRef::front(), getAsUnsignedInteger(), and llvm::StringRef::substr().
Referenced by llvm::StringRef::getAsInteger().
bool llvm::getAsUnsignedInteger | ( | StringRef | Str, |
unsigned | Radix, | ||
unsigned long long & | Result | ||
) |
Helper functions for StringRef::getAsInteger.
GetAsUnsignedInteger - Workhorse method that converts a integer character sequence of radix up to 36 to an unsigned long long value.
Definition at line 339 of file StringRef.cpp.
References llvm::StringRef::empty(), GetAutoSenseRadix(), and llvm::StringRef::substr().
Referenced by getAsSignedInteger(), and parsePhysicalReg().
std::string llvm::getBitcodeTargetTriple | ( | MemoryBufferRef | Buffer, |
LLVMContext & | Context | ||
) |
Read the header of the specified bitcode buffer and extract just the triple information. If successful, this returns a string. On error, this returns "".
Definition at line 3589 of file BitcodeReader.cpp.
References llvm::ErrorOr< T >::get(), and llvm::MemoryBuffer::getMemBuffer().
Referenced by llvm::LTOModule::isBitcodeForTarget().
static unsigned llvm::getBRegFromDReg | ( | unsigned | Reg | ) | [inline, static] |
Definition at line 109 of file AArch64BaseInfo.h.
MachineBasicBlock::instr_iterator llvm::getBundleEnd | ( | MachineInstr * | MI | ) | [inline] |
Return an iterator pointing beyond the bundle containing MI.
Definition at line 62 of file MachineInstrBundle.h.
References I, and llvm::AArch64CC::MI.
MachineBasicBlock::const_instr_iterator llvm::getBundleEnd | ( | const MachineInstr * | MI | ) | [inline] |
Return an iterator pointing beyond the bundle containing MI.
Definition at line 71 of file MachineInstrBundle.h.
References I, and llvm::AArch64CC::MI.
MachineInstr* llvm::getBundleStart | ( | MachineInstr * | MI | ) | [inline] |
getBundleStart - Returns the first instruction in the bundle containing MI.
Definition at line 46 of file MachineInstrBundle.h.
References I, and llvm::AArch64CC::MI.
Referenced by llvm::SlotIndexes::getInstructionIndex(), llvm::MachineOperandIteratorBase::MachineOperandIteratorBase(), llvm::MachineRegisterInfo::defusechain_instr_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator*(), llvm::MachineRegisterInfo::defusechain_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), llvm::MachineRegisterInfo::defusechain_instr_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), and llvm::MachineRegisterInfo::defusechain_instr_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator->().
const MachineInstr* llvm::getBundleStart | ( | const MachineInstr * | MI | ) | [inline] |
Definition at line 53 of file MachineInstrBundle.h.
References I, and llvm::AArch64CC::MI.
static unsigned llvm::getComplexity | ( | Value * | V | ) | [inline, static] |
getComplexity: Assign a complexity or rank value to LLVM Values... 0 -> undef, 1 -> Const, 2 -> Other, 3 -> Arg, 3 -> Unary, 4 -> OtherInst
Definition at line 50 of file InstCombine.h.
References llvm::BinaryOperator::isFNeg(), llvm::BinaryOperator::isNeg(), and llvm::BinaryOperator::isNot().
Referenced by llvm::InstCombiner::visitFCmpInst(), and llvm::InstCombiner::visitICmpInst().
bool llvm::getConstantStringInfo | ( | const Value * | V, |
StringRef & | Str, | ||
uint64_t | Offset = 0 , |
||
bool | TrimAtNul = true |
||
) |
getConstantStringInfo - This function computes the length of a null-terminated C string pointed to by V. If successful, it returns true and returns the string in Str. If unsuccessful, it returns false. This does not include the trailing nul character by default. If TrimAtNul is set to false, then this returns any trailing nul characters as well as any other characters that come after it.
getConstantStringInfo - This function computes the length of a null-terminated C string pointed to by V. If successful, it returns true and returns the string in Str. If unsuccessful, it returns false.
Definition at line 2290 of file ValueTracking.cpp.
References dyn_cast(), llvm::StringRef::find(), llvm::Type::getArrayNumElements(), llvm::ConstantDataSequential::getAsString(), llvm::SequentialType::getElementType(), llvm::GlobalVariable::getInitializer(), llvm::ConstantDataArray::getType(), llvm::ConstantInt::getZExtValue(), llvm::GlobalVariable::hasDefinitiveInitializer(), llvm::GlobalVariable::isConstant(), llvm::Constant::isNullValue(), llvm::ConstantDataSequential::isString(), llvm::ConstantInt::isZero(), llvm::Value::stripPointerCasts(), and llvm::StringRef::substr().
Referenced by ConstantFoldLoadFromConstPtr(), GetStringLengthH(), and isMemSrcFromString().
DataStreamer * llvm::getDataFileStreamer | ( | const std::string & | Filename, |
std::string * | Err | ||
) |
Definition at line 81 of file DataStream.cpp.
unsigned llvm::getDeadRegState | ( | bool | B | ) | [inline] |
Definition at line 397 of file MachineInstrBuilder.h.
References llvm::RegState::Dead.
Referenced by AddDefaultT1CC(), llvm::PPCInstrInfo::commuteInstruction(), InsertLDR_STR(), tryOrrMovk(), trySequenceOfOnes(), and tryToreplicateChunks().
Return Debug Info Metadata Version by checking module flags.
Definition at line 1565 of file DebugInfo.cpp.
References llvm::Module::getModuleFlag().
Referenced by UpgradeDebugInfo().
unsigned llvm::getDebugRegState | ( | bool | B | ) | [inline] |
Definition at line 406 of file MachineInstrBuilder.h.
References llvm::RegState::Debug.
unsigned llvm::getDefRegState | ( | bool | B | ) | [inline] |
Definition at line 388 of file MachineInstrBuilder.h.
References llvm::RegState::Define.
Referenced by AddDefaultT1CC(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), emitSPUpdate(), InsertLDR_STR(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), and llvm::AArch64FrameLowering::restoreCalleeSavedRegisters().
getDICompositeType - Find underlying composite type.
Definition at line 968 of file DebugInfo.cpp.
References llvm::DIDescriptor::isCompositeType(), and llvm::DIDescriptor::isDerivedType().
DISubprogram llvm::getDISubprogram | ( | const MDNode * | Scope | ) |
getDISubprogram - Find subprogram that is enclosing this scope.
Definition at line 953 of file DebugInfo.cpp.
References llvm::DILexicalBlock::getContext(), llvm::DILexicalBlockFile::getContext(), llvm::DIDescriptor::isLexicalBlock(), llvm::DIDescriptor::isLexicalBlockFile(), and llvm::DIDescriptor::isSubprogram().
Referenced by llvm::DwarfDebug::beginFunction(), llvm::DIBuilder::createLocalVariable(), and llvm::DebugLoc::getFnDebugLoc().
static unsigned llvm::getDRegFromBReg | ( | unsigned | Reg | ) | [inline, static] |
Definition at line 149 of file AArch64BaseInfo.h.
getEntireVariable - Remove OpPiece exprs from the variable.
Definition at line 941 of file DebugInfo.cpp.
References llvm::MDNode::get(), llvm::DIVariable::getContext(), llvm::DIVariable::isVariablePiece(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by calculateDbgValueHistory(), and llvm::DbgValueHistoryMap::startInstrRange().
getFCmpCodeWithoutNaN - Given an ISD condition code comparing floats, return the equivalent code if we're allowed to assume that NaNs won't occur.
Definition at line 176 of file CodeGen/Analysis.cpp.
References llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETOEQ, llvm::ISD::SETOGE, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETONE, llvm::ISD::SETUEQ, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SETULT, and llvm::ISD::SETUNE.
Referenced by llvm::SelectionDAGBuilder::EmitBranchForMergedCondition().
ISD::CondCode llvm::getFCmpCondCode | ( | FCmpInst::Predicate | Pred | ) |
getFCmpCondCode - Return the ISD condition code corresponding to the given LLVM IR floating-point condition code. This includes consideration of global floating-point math flags.
Definition at line 154 of file CodeGen/Analysis.cpp.
References llvm::CmpInst::FCMP_FALSE, llvm::CmpInst::FCMP_OEQ, llvm::CmpInst::FCMP_OGE, llvm::CmpInst::FCMP_OGT, llvm::CmpInst::FCMP_OLE, llvm::CmpInst::FCMP_OLT, llvm::CmpInst::FCMP_ONE, llvm::CmpInst::FCMP_ORD, llvm::CmpInst::FCMP_TRUE, llvm::CmpInst::FCMP_UEQ, llvm::CmpInst::FCMP_UGE, llvm::CmpInst::FCMP_UGT, llvm::CmpInst::FCMP_ULE, llvm::CmpInst::FCMP_ULT, llvm::CmpInst::FCMP_UNE, llvm::CmpInst::FCMP_UNO, llvm_unreachable, llvm::ISD::SETFALSE, llvm::ISD::SETO, llvm::ISD::SETOEQ, llvm::ISD::SETOGE, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETONE, llvm::ISD::SETTRUE, llvm::ISD::SETUEQ, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SETULT, llvm::ISD::SETUNE, and llvm::ISD::SETUO.
Referenced by llvm::SelectionDAGBuilder::EmitBranchForMergedCondition().
static const MachineInstr* llvm::getFirstEpilogueInst | ( | const MachineBasicBlock & | MBB | ) | [static] |
Definition at line 137 of file DbgValueHistoryCalculator.cpp.
References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getLastNonDebugInstr(), I, and llvm::MachineBasicBlock::rend().
Referenced by collectChangingRegs().
NamedMDNode * llvm::getFnSpecificMDNode | ( | const Module & | M, |
DISubprogram | Fn | ||
) |
getFnSpecificMDNode - Return a NameMDNode, if available, that is suitable to hold function specific information.
Definition at line 902 of file DebugInfo.cpp.
References fixupSubprogramName(), llvm::Module::getNamedMetadata(), Name, and llvm::SmallString< InternalLen >::str().
Referenced by llvm::DIBuilder::finalize().
getGlobalContext - Returns a global context. This is for LLVM clients that only care about operating on a single thread.
Definition at line 30 of file LLVMContext.cpp.
References GlobalContext.
Referenced by llvm::LTOModule::isBitcodeForTarget(), LLVMGetGlobalContext(), LLVMIntPtrType(), LLVMIntPtrTypeForAS(), LLVMModuleCreateWithName(), and LLVMParseBitcode().
getICmpCode - Encode a icmp predicate into a three bit mask. These bits are carefully arranged to allow folding of expressions such as:
(A < B) | (A > B) --> (A != B)
Note that this is only valid if the first and second predicates have the same sign. Is illegal to do: (A u< B) | (A s> B)
Three bits are used to represent the condition, as follows: 0 A > B 1 A == B 2 A < B
<=> Value Definition 000 0 Always false 001 1 A > B 010 2 A == B 011 3 A >= B 100 4 A < B 101 5 A != B 110 6 A <= B 111 7 Always true
Definition at line 44 of file CmpInstAnalysis.cpp.
References llvm::CmpInst::getInversePredicate(), llvm::CmpInst::getPredicate(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, and llvm_unreachable.
Referenced by llvm::InstCombiner::FoldAndOfICmps(), llvm::InstCombiner::FoldOrOfICmps(), and llvm::InstCombiner::visitXor().
ISD::CondCode llvm::getICmpCondCode | ( | ICmpInst::Predicate | Pred | ) |
getICmpCondCode - Return the ISD condition code corresponding to the given LLVM IR integer condition code.
Definition at line 191 of file CodeGen/Analysis.cpp.
References llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, llvm_unreachable, llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, and llvm::ISD::SETULT.
Referenced by llvm::SelectionDAGBuilder::EmitBranchForMergedCondition().
Value * llvm::getICmpValue | ( | bool | Sign, |
unsigned | Code, | ||
Value * | LHS, | ||
Value * | RHS, | ||
CmpInst::Predicate & | NewICmpPred | ||
) |
getICmpValue - This is the complement of getICmpCode, which turns an opcode and two operands into either a constant true or false, or the predicate for a new ICmp instruction. The sign is passed in to determine which kind of predicate to use in the new icmp instruction. Non-NULL return value will be a true or false constant. NULL return means a new ICmp is needed. The predicate for which is output in NewICmpPred.
Definition at line 72 of file CmpInstAnalysis.cpp.
References llvm::ConstantInt::get(), llvm::Value::getType(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, llvm_unreachable, and llvm::CmpInst::makeCmpResultType().
Referenced by getNewICmpValue().
Value * llvm::GetIfCondition | ( | BasicBlock * | BB, |
BasicBlock *& | IfTrue, | ||
BasicBlock *& | IfFalse | ||
) |
GetIfCondition - Check whether BB is the merge point of a if-region. If so, return the boolean condition that determines which entry into BB will be taken. Also, return by references the block that will be entered from if the condition is true, and the block that will be entered if the condition is false.
GetIfCondition - Given a basic block (BB) with two predecessors, check to see if the merge at this block is due to an "if condition". If so, return the boolean condition that determines which entry into BB will be taken. Also, return by references the block that will be entered from if the condition is true, and the block that will be entered if the condition is false.
This does no checking to see if the true/false blocks have large or unsavory instructions in them.
Definition at line 756 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), dyn_cast(), llvm::BranchInst::getCondition(), llvm::PHINode::getIncomingBlock(), llvm::PHINode::getNumIncomingValues(), llvm::BasicBlock::getSinglePredecessor(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::BranchInst::isConditional(), pred_begin(), pred_end(), and std::swap().
Referenced by FoldTwoEntryPHINode().
unsigned llvm::getImplRegState | ( | bool | B | ) | [inline] |
Definition at line 391 of file MachineInstrBuilder.h.
References llvm::RegState::Implicit.
Referenced by addSavedGPR().
Instruction * llvm::getInst | ( | Value * | base, |
char * | instName | ||
) |
Definition at line 480 of file NVPTXUtilities.cpp.
References llvm::StringRef::data(), F(), llvm::Value::getName(), getParentFunction(), I, inst_begin(), inst_end(), and llvm::LibFunc::strcmp.
Referenced by dumpInst().
ARMCC::CondCodes llvm::getInstrPredicate | ( | const MachineInstr * | MI, |
unsigned & | PredReg | ||
) |
getInstrPredicate - If instruction is predicated, returns its predicate condition, otherwise returns AL. It also returns the condition code register by reference.
Definition at line 1691 of file ARMBaseInstrInfo.cpp.
References llvm::ARMCC::AL, llvm::MachineInstr::findFirstPredOperandIdx(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Referenced by llvm::ARMBaseInstrInfo::commuteInstruction(), getITInstrPredicate(), isMatchingDecrement(), isMatchingIncrement(), llvm::Thumb2InstrInfo::ReplaceTailWithBranchTo(), llvm::Thumb1RegisterInfo::rewriteFrameIndex(), and rewriteT2FrameIndex().
unsigned llvm::getInternalReadRegState | ( | bool | B | ) | [inline] |
Definition at line 403 of file MachineInstrBuilder.h.
References llvm::RegState::InternalRead.
static Intrinsic::ID llvm::getIntrinsicIDForCall | ( | CallInst * | CI, |
const TargetLibraryInfo * | TLI | ||
) | [static] |
Definition at line 97 of file VectorUtils.h.
References llvm::LibFunc::ceil, llvm::LibFunc::ceilf, llvm::LibFunc::ceill, checkBinaryFloatSignature(), checkUnaryFloatSignature(), llvm::LibFunc::copysign, llvm::LibFunc::copysignf, llvm::LibFunc::copysignl, llvm::LibFunc::cos, llvm::LibFunc::cosf, llvm::LibFunc::cosl, llvm::LibFunc::exp, llvm::LibFunc::exp2, llvm::LibFunc::exp2f, llvm::LibFunc::exp2l, llvm::LibFunc::expf, llvm::LibFunc::expl, F(), llvm::LibFunc::fabs, llvm::LibFunc::fabsf, llvm::LibFunc::fabsl, llvm::LibFunc::floor, llvm::LibFunc::floorf, llvm::LibFunc::floorl, llvm::CallInst::getCalledFunction(), llvm::TargetLibraryInfo::getLibFunc(), llvm::Value::getName(), llvm::GlobalValue::hasLocalLinkage(), isTriviallyVectorizable(), llvm::LibFunc::log, llvm::LibFunc::log10, llvm::LibFunc::log10f, llvm::LibFunc::log10l, llvm::LibFunc::log2, llvm::LibFunc::log2f, llvm::LibFunc::log2l, llvm::LibFunc::logf, llvm::LibFunc::logl, llvm::LibFunc::nearbyint, llvm::LibFunc::nearbyintf, llvm::LibFunc::nearbyintl, llvm::Intrinsic::not_intrinsic, llvm::LibFunc::pow, llvm::LibFunc::powf, llvm::LibFunc::powl, llvm::LibFunc::rint, llvm::LibFunc::rintf, llvm::LibFunc::rintl, llvm::LibFunc::round, llvm::LibFunc::roundf, llvm::LibFunc::roundl, llvm::LibFunc::sin, llvm::LibFunc::sinf, llvm::LibFunc::sinl, llvm::LibFunc::trunc, llvm::LibFunc::truncf, and llvm::LibFunc::truncl.
static const IntrinsicData* llvm::getIntrinsicWithChain | ( | unsigned | IntNo | ) | [static] |
Definition at line 108 of file X86IntrinsicsInfo.h.
References llvm::sys::path::begin(), llvm::sys::path::end(), INTR_NO_TYPE, and IntrinsicsWithChain.
Referenced by LowerINTRINSIC_W_CHAIN().
static const IntrinsicData* llvm::getIntrinsicWithoutChain | ( | unsigned | IntNo | ) | [static] |
Definition at line 239 of file X86IntrinsicsInfo.h.
References llvm::sys::path::begin(), llvm::sys::path::end(), INTR_NO_TYPE, and IntrinsicsWithoutChain.
Referenced by LowerINTRINSIC_WO_CHAIN().
ARMCC::CondCodes llvm::getITInstrPredicate | ( | const MachineInstr * | MI, |
unsigned & | PredReg | ||
) |
getITInstrPredicate - Valid only in Thumb2 mode. This function is identical to llvm::getInstrPredicate except it returns AL for conditional branch instructions which are "predicated", but are not in IT blocks.
Definition at line 634 of file Thumb2InstrInfo.cpp.
References llvm::ARMCC::AL, getInstrPredicate(), and llvm::MachineInstr::getOpcode().
Referenced by llvm::Thumb2InstrInfo::isLegalToSplitMBBAt().
unsigned llvm::getKillRegState | ( | bool | B | ) | [inline] |
Definition at line 394 of file MachineInstrBuilder.h.
References llvm::RegState::Kill.
Referenced by addRegOffset(), addRegReg(), addSavedGPR(), llvm::PPCInstrInfo::commuteInstruction(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::Thumb1InstrInfo::copyPhysReg(), llvm::Thumb2InstrInfo::copyPhysReg(), llvm::Mips16InstrInfo::copyPhysReg(), llvm::MipsSEInstrInfo::copyPhysReg(), llvm::NVPTXInstrInfo::copyPhysReg(), llvm::MSP430InstrInfo::copyPhysReg(), llvm::XCoreInstrInfo::copyPhysReg(), llvm::SIInstrInfo::copyPhysReg(), llvm::SparcInstrInfo::copyPhysReg(), llvm::HexagonInstrInfo::copyPhysReg(), llvm::AArch64InstrInfo::copyPhysReg(), llvm::PPCInstrInfo::copyPhysReg(), llvm::ARMBaseInstrInfo::copyPhysReg(), llvm::SystemZInstrInfo::copyPhysReg(), llvm::AArch64InstrInfo::copyPhysRegTuple(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), emitThumbRegPlusImmediate(), llvm::FastISel::fastEmitInst_extractsubreg(), llvm::FastISel::fastEmitInst_r(), llvm::FastISel::fastEmitInst_rf(), llvm::FastISel::fastEmitInst_ri(), llvm::FastISel::fastEmitInst_rii(), llvm::FastISel::fastEmitInst_rr(), llvm::FastISel::fastEmitInst_rri(), llvm::FastISel::fastEmitInst_rrii(), llvm::FastISel::fastEmitInst_rrr(), llvm::ARMBaseInstrInfo::FoldImmediate(), genMadd(), genMaddR(), getPrologueDeath(), insertCopy(), insertDivByZeroTrap(), InsertFPConstInst(), InsertFPImmInst(), InsertLDR_STR(), InsertSPConstInst(), InsertSPImmInst(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), restoreCRs(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), llvm::Mips16InstrInfo::storeRegToStack(), llvm::MipsSEInstrInfo::storeRegToStack(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), and llvm::SystemZInstrInfo::storeRegToStackSlot().
static unsigned llvm::getKnownAlignment | ( | Value * | V, |
const DataLayout * | TD = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) | [inline, static] |
getKnownAlignment - Try to infer an alignment for the specified pointer.
Definition at line 182 of file Local.h.
References getOrEnforceKnownAlignment().
Referenced by llvm::InstCombiner::visitCallInst().
ErrorOr< Module * > llvm::getLazyBitcodeModule | ( | std::unique_ptr< MemoryBuffer > && | Buffer, |
LLVMContext & | Context | ||
) |
Read the header of the specified bitcode buffer and prepare for lazy deserialization of function bodies. If successful, this moves Buffer. On error, this *does not* move Buffer.
Definition at line 3548 of file BitcodeReader.cpp.
References getLazyBitcodeModuleImpl().
Referenced by llvm::object::IRObjectFile::createIRObjectFile(), getLazyIRModule(), and LLVMGetBitcodeModuleInContext().
std::unique_ptr< Module > llvm::getLazyIRFileModule | ( | StringRef | Filename, |
SMDiagnostic & | Err, | ||
LLVMContext & | Context | ||
) |
If the given file holds a bitcode image, return a Module for it which does lazy deserialization of function bodies. Otherwise, attempt to parse it as LLVM Assembly and return a fully populated Module.
Definition at line 51 of file IRReader.cpp.
References llvm::SourceMgr::DK_Error, llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFileOrSTDIN(), and getLazyIRModule().
Type * llvm::getMallocAllocatedType | ( | const CallInst * | CI, |
const TargetLibraryInfo * | TLI | ||
) |
getMallocAllocatedType - Returns the Type allocated by malloc call. The Type depends on the number of bitcast uses of the malloc call: 0: PointerType is the malloc calls' return type. 1: PointerType is the bitcast's result type. >1: Unique PointerType cannot be determined, return NULL.
Definition at line 289 of file MemoryBuiltins.cpp.
References llvm::SequentialType::getElementType(), and getMallocType().
Referenced by computeArraySize(), OptimizeOnceStoredGlobal(), PerformHeapAllocSRoA(), and TryToOptimizeStoreOfMallocToGlobal().
Value * llvm::getMallocArraySize | ( | CallInst * | CI, |
const DataLayout * | DL, | ||
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughSExt = false |
||
) |
getMallocArraySize - Returns the array size of a malloc call. If the argument passed to malloc is a multiple of the size of the malloced type, then return that multiple. For non-array mallocs, the multiple is constant 1. Otherwise, return NULL for mallocs whose array size cannot be determined.
Definition at line 300 of file MemoryBuiltins.cpp.
References computeArraySize(), and isMallocLikeFn().
Referenced by TryToOptimizeStoreOfMallocToGlobal().
PointerType * llvm::getMallocType | ( | const CallInst * | CI, |
const TargetLibraryInfo * | TLI | ||
) |
getMallocType - Returns the PointerType resulting from the malloc call. The PointerType depends on the number of bitcast uses of the malloc call: 0: PointerType is the malloc calls' return type. 1: PointerType is the bitcast's result type. >1: Unique PointerType cannot be determined, return NULL.
getMallocType - Returns the PointerType resulting from the malloc call. The PointerType depends on the number of bitcast uses of the malloc call: 0: PointerType is the calls' return type. 1: PointerType is the bitcast's result type. >1: Unique PointerType cannot be determined, return NULL.
Definition at line 257 of file MemoryBuiltins.cpp.
References llvm::Value::getType(), isMallocLikeFn(), llvm::Value::user_begin(), and llvm::Value::user_end().
Referenced by getMallocAllocatedType().
Definition at line 1703 of file ARMBaseInstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::ARMBaseInstrInfo::PredicateInstruction().
bool llvm::getMaxNTIDx | ( | const llvm::Function & | F, |
unsigned & | x | ||
) |
Definition at line 256 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_MAXNTID_X, and PropertyAnnotationNames.
bool llvm::getMaxNTIDy | ( | const llvm::Function & | F, |
unsigned & | y | ||
) |
Definition at line 261 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_MAXNTID_Y, and PropertyAnnotationNames.
bool llvm::getMaxNTIDz | ( | const llvm::Function & | F, |
unsigned & | z | ||
) |
Definition at line 266 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_MAXNTID_Z, and PropertyAnnotationNames.
bool llvm::getMinCTASm | ( | const llvm::Function & | F, |
unsigned & | x | ||
) |
Definition at line 286 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_MINNCTAPERSM, and PropertyAnnotationNames.
Get the next available kind ID for a plugin diagnostic. Each time this function is called, it returns a different number. Therefore, a plugin that wants to "identify" its own classes with a dynamic identifier, just have to use this method to get a new ID and assign it to each of its classes. The returned ID will be greater than or equal to DK_FirstPluginKind. Thus, the plugin identifiers will not conflict with the DiagnosticKind values.
Definition at line 89 of file DiagnosticInfo.cpp.
References llvm::sys::AtomicIncrement(), and DK_FirstPluginKind.
BasicBlock* llvm::getNodeHeader | ( | BasicBlock * | BB | ) | [inline] |
Definition at line 49 of file IntervalIterator.h.
BasicBlock* llvm::getNodeHeader | ( | Interval * | I | ) | [inline] |
Definition at line 50 of file IntervalIterator.h.
References llvm::Interval::getHeaderNode().
StreamableMemoryObject * llvm::getNonStreamedMemoryObject | ( | const unsigned char * | Start, |
const unsigned char * | End | ||
) |
Definition at line 128 of file StreamableMemoryObject.cpp.
Referenced by llvm::BitstreamReader::init().
std::string llvm::getNVPTXRegClassName | ( | TargetRegisterClass const * | RC | ) |
Definition at line 29 of file NVPTXRegisterInfo.cpp.
std::string llvm::getNVPTXRegClassStr | ( | TargetRegisterClass const * | RC | ) |
Definition at line 51 of file NVPTXRegisterInfo.cpp.
Referenced by llvm::NVPTXAsmPrinter::getVirtualRegisterName().
bool llvm::getObjectSize | ( | const Value * | Ptr, |
uint64_t & | Size, | ||
const DataLayout * | DL, | ||
const TargetLibraryInfo * | TLI, | ||
bool | RoundToAlign = false |
||
) |
Compute the size of the object pointed by Ptr. Returns true and the object size in Size if successful, and false otherwise. In this context, by object we mean the region of memory starting at Ptr to the end of the underlying object pointed to by Ptr. If RoundToAlign is true, then Size is rounded up to the aligment of allocas, byval arguments, and global variables.
Compute the size of the object pointed by Ptr. Returns true and the object size in Size if successful, and false otherwise. If RoundToAlign is true, then Size is rounded up to the aligment of allocas, byval arguments, and global variables.
Definition at line 366 of file MemoryBuiltins.cpp.
References llvm::ObjectSizeOffsetVisitor::compute(), llvm::Value::getContext(), and llvm::APInt::ult().
Referenced by computePointerICmp(), getObjectSize(), getPointerSize(), isObjectSize(), isObjectSmallerThan(), and llvm::InstCombiner::visitCallInst().
static std::error_code llvm::getOffset | ( | const SymbolRef & | Sym, |
uint64_t & | Result | ||
) | [static] |
Definition at line 112 of file RuntimeDyld.cpp.
References llvm::object::SymbolRef::getAddress(), llvm::object::SymbolRef::getObject(), llvm::object::SymbolRef::getSection(), llvm::object::ObjectFile::section_begin(), llvm::object::ObjectFile::section_end(), success, and llvm::object::UnknownAddressOrSize.
Referenced by llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValue(), LLVMGetRelocationOffset(), llvm::RuntimeDyldImpl::loadObject(), llvm::MSP430TargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), and llvm::LSBaseSDNode::LSBaseSDNode().
static StringRef llvm::getOrdinalSuffix | ( | unsigned | Val | ) | [inline, static] |
Returns the English suffix for an ordinal integer (-st, -nd, -rd, -th).
Definition at line 150 of file StringExtras.h.
unsigned llvm::getOrEnforceKnownAlignment | ( | Value * | V, |
unsigned | PrefAlign, | ||
const DataLayout * | DL = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
getOrEnforceKnownAlignment - If the specified pointer has an alignment that we can determine, return it, otherwise return 0. If PrefAlign is specified, and it is more than the alignment of the ultimate object, see if we can increase the alignment of the ultimate object, making this check succeed.
Definition at line 941 of file Local.cpp.
References Align(), computeKnownBits(), enforceKnownAlignment(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::Value::getType(), llvm::Type::isPointerTy(), and llvm::Value::MaximumAlignment.
Referenced by getKnownAlignment(), HandleByValArgument(), llvm::InstCombiner::visitAllocaInst(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitLoadInst(), and llvm::InstCombiner::visitStoreInst().
NamedMDNode * llvm::getOrInsertFnSpecificMDNode | ( | Module & | M, |
DISubprogram | Fn | ||
) |
getOrInsertFnSpecificMDNode - Return a NameMDNode that is suitable to hold function specific information.
Definition at line 910 of file DebugInfo.cpp.
References fixupSubprogramName(), llvm::Module::getOrInsertNamedMetadata(), Name, and llvm::SmallString< InternalLen >::str().
Referenced by llvm::DIBuilder::createLocalVariable().
BasicBlock * llvm::getParentBlock | ( | Value * | v | ) |
Definition at line 441 of file NVPTXUtilities.cpp.
References I.
Function * llvm::getParentFunction | ( | Value * | v | ) |
Definition at line 451 of file NVPTXUtilities.cpp.
Referenced by dumpBlock(), and getInst().
Timer * llvm::getPassTimer | ( | Pass * | P | ) |
If TimingInfo is enabled then start pass timer.
Definition at line 1791 of file LegacyPassManager.cpp.
References TheTimeInfo.
Referenced by llvm::PMDataManager::freePass(), llvm::LPPassManager::runOnFunction(), llvm::RGPassManager::runOnFunction(), llvm::FPPassManager::runOnFunction(), and llvm::PMDataManager::verifyPreservedAnalysis().
Value * llvm::GetPointerBaseWithConstantOffset | ( | Value * | Ptr, |
int64_t & | Offset, | ||
const DataLayout * | DL | ||
) |
GetPointerBaseWithConstantOffset - Analyze the specified pointer to see if it can be expressed as a base pointer plus a constant offset. Return the base and offset to the caller.
Definition at line 2251 of file ValueTracking.cpp.
References AddrSpaceCast, llvm::Operator::getOpcode(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::APInt::getSExtValue(), llvm::Value::getType(), and llvm::Type::isVectorTy().
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingWrite(), llvm::MemoryDependenceAnalysis::getLoadLoadClobberFullWidthSize(), GetPointerBaseWithConstantOffset(), isLoadLoadClobberIfExtendedToFullWidth(), isOverwrite(), and isSafeToLoadUnconditionally().
static const Value* llvm::GetPointerBaseWithConstantOffset | ( | const Value * | Ptr, |
int64_t & | Offset, | ||
const DataLayout * | TD | ||
) | [inline, static] |
Definition at line 144 of file ValueTracking.h.
References GetPointerBaseWithConstantOffset().
static const char* llvm::getPredicateText | ( | unsigned | predicate | ) | [static] |
Definition at line 890 of file AsmWriter.cpp.
References llvm::CmpInst::FCMP_FALSE, llvm::CmpInst::FCMP_OEQ, llvm::CmpInst::FCMP_OGE, llvm::CmpInst::FCMP_OGT, llvm::CmpInst::FCMP_OLE, llvm::CmpInst::FCMP_OLT, llvm::CmpInst::FCMP_ONE, llvm::CmpInst::FCMP_ORD, llvm::CmpInst::FCMP_TRUE, llvm::CmpInst::FCMP_UEQ, llvm::CmpInst::FCMP_UGE, llvm::CmpInst::FCMP_UGT, llvm::CmpInst::FCMP_ULE, llvm::CmpInst::FCMP_ULT, llvm::CmpInst::FCMP_UNE, llvm::CmpInst::FCMP_UNO, llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, and llvm::CmpInst::ICMP_ULT.
Referenced by llvm::AssemblyWriter::printInstruction().
bool llvm::getReqNTIDx | ( | const llvm::Function & | F, |
unsigned & | x | ||
) |
Definition at line 271 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_REQNTID_X, and PropertyAnnotationNames.
bool llvm::getReqNTIDy | ( | const llvm::Function & | F, |
unsigned & | y | ||
) |
Definition at line 276 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_REQNTID_Y, and PropertyAnnotationNames.
bool llvm::getReqNTIDz | ( | const llvm::Function & | F, |
unsigned & | z | ||
) |
Definition at line 281 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_REQNTID_Z, and PropertyAnnotationNames.
void llvm::GetReturnInfo | ( | Type * | ReturnType, |
AttributeSet | attr, | ||
SmallVectorImpl< ISD::OutputArg > & | Outs, | ||
const TargetLowering & | TLI | ||
) |
Given an LLVM IR type and return type attributes, compute the return value EVTs and flags, and optionally also the offsets, if the return value is being lowered to memory.
Get the EVTs and ArgFlags collections that represent the legalized return type of the given function. This does not require a DAG or a return value, and is suitable for use before any DAGs for the function are constructed. TODO: Move this out of TargetLowering.cpp.
Definition at line 1297 of file TargetLoweringBase.cpp.
References llvm::ISD::ANY_EXTEND, llvm::EVT::bitsLT(), ComputeValueVTs(), llvm::Type::getContext(), llvm::TargetLoweringBase::getNumRegisters(), llvm::TargetLoweringBase::getRegisterType(), llvm::AttributeSet::hasAttribute(), llvm::MVT::i32, llvm::Attribute::InReg, llvm::EVT::isInteger(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::AttributeSet::ReturnIndex, llvm::ISD::ArgFlagsTy::setInReg(), llvm::ISD::ArgFlagsTy::setSExt(), llvm::ISD::ArgFlagsTy::setZExt(), llvm::Attribute::SExt, llvm::ISD::SIGN_EXTEND, llvm::SmallVectorTemplateCommon< T >::size(), llvm::ISD::ZERO_EXTEND, and llvm::Attribute::ZExt.
Referenced by llvm::FastISel::lowerCallTo(), llvm::TargetLowering::LowerCallTo(), and llvm::FunctionLoweringInfo::set().
std::string llvm::getSamplerName | ( | const llvm::Value & | val | ) |
Definition at line 251 of file NVPTXUtilities.cpp.
References llvm::Value::getName(), and llvm::Value::hasName().
unsigned llvm::getSLEB128Size | ( | int64_t | Value | ) |
Utility function to get the size of the SLEB128-encoded value.
Definition at line 30 of file LEB128.cpp.
Referenced by llvm::EHStreamer::computeActionsTable(), and llvm::DIEInteger::SizeOf().
BasicBlock* llvm::getSourceGraphNode | ( | Function * | , |
BasicBlock * | BB | ||
) | [inline] |
Definition at line 56 of file IntervalIterator.h.
Referenced by llvm::IntervalIterator< NodeTy, OrigContainer_t, GT, IGT >::operator++().
Interval* llvm::getSourceGraphNode | ( | IntervalPartition * | IP, |
BasicBlock * | BB | ||
) | [inline] |
Definition at line 59 of file IntervalIterator.h.
References llvm::IntervalPartition::getBlockInterval().
Module * llvm::getStreamedBitcodeModule | ( | const std::string & | name, |
DataStreamer * | streamer, | ||
LLVMContext & | Context, | ||
std::string * | ErrMsg = nullptr |
||
) |
getStreamedBitcodeModule - Read the header of the specified stream and prepare for lazy deserialization and streaming of function bodies. On error, this returns null, and fills in *ErrMsg with an error description if ErrMsg is non-null.
Definition at line 3553 of file BitcodeReader.cpp.
References llvm::BitcodeReader::ParseBitcodeInto(), and llvm::Module::setMaterializer().
uint64_t llvm::GetStringLength | ( | Value * | V | ) |
GetStringLength - If we can compute the length of the string pointed to by the specified pointer, return 'len+1'. If we can't, return 0.
Definition at line 2424 of file ValueTracking.cpp.
References GetStringLengthH(), llvm::Value::getType(), and llvm::Type::isPointerTy().
Referenced by isFortifiedCallFoldable(), and llvm::ObjectSizeOffsetVisitor::visitCallSite().
unsigned llvm::GetSuccessorNumber | ( | BasicBlock * | BB, |
BasicBlock * | Succ | ||
) |
Search for the specified successor of basic block BB and return its position in the terminator instruction's list of successors. It is an error to call this with a block that is not a successor.
GetSuccessorNumber - Search for the specified successor of basic block BB and return its position in the terminator instruction's list of successors. It is an error to call this with a block that is not a successor.
Definition at line 72 of file CFG.cpp.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), and llvm::BasicBlock::getTerminator().
Referenced by DemoteRegToStack(), SplitCriticalSideEffectEdges(), and SplitEdge().
std::string llvm::getSurfaceName | ( | const llvm::Value & | val | ) |
Definition at line 246 of file NVPTXUtilities.cpp.
References llvm::Value::getName(), and llvm::Value::hasName().
std::string llvm::getTextureName | ( | const llvm::Value & | val | ) |
Definition at line 241 of file NVPTXUtilities.cpp.
References llvm::Value::getName(), and llvm::Value::hasName().
std::pair< StringRef, StringRef > llvm::getToken | ( | StringRef | Source, |
StringRef | Delimiters = " \t\n\v\f\r" |
||
) |
getToken - This function extracts one token from source, ignoring any leading characters that appear in the Delimiters string, and ending the token at any of the characters that appear in the Delimiters string. If there are no tokens in the source string, an empty string is returned. The function returns a pair containing the extracted token and the remaining tail string.
Definition at line 38 of file StringExtras.cpp.
References llvm::StringRef::find_first_not_of(), llvm::StringRef::find_first_of(), llvm::StringRef::slice(), and llvm::StringRef::substr().
Referenced by llvm::LTOCodeGenerator::setCodeGenDebugOptions(), and SplitString().
unsigned llvm::getULEB128Size | ( | uint64_t | Value | ) |
Utility function to get the size of the ULEB128-encoded value.
Definition at line 20 of file LEB128.cpp.
Referenced by llvm::EHStreamer::computeActionsTable(), llvm::DwarfFile::computeSizeAndOffset(), EmitDwarfLineTable(), llvm::EHStreamer::emitExceptionTable(), llvm::DIEInteger::SizeOf(), llvm::DIELoc::SizeOf(), and llvm::DIEBlock::SizeOf().
unsigned llvm::getUndefRegState | ( | bool | B | ) | [inline] |
Definition at line 400 of file MachineInstrBuilder.h.
References llvm::RegState::Undef.
Referenced by emitSPUpdate(), InsertLDR_STR(), and llvm::ARMBaseInstrInfo::setExecutionDomain().
Value * llvm::GetUnderlyingObject | ( | Value * | V, |
const DataLayout * | TD = nullptr , |
||
unsigned | MaxLookup = 6 |
||
) |
GetUnderlyingObject - This method strips off any GEP address adjustments and pointer casts from the specified value, returning the original object being addressed. Note that the returned value has pointer type if the specified value does. If the MaxLookup value is non-zero, it limits the number of instructions to be stripped off.
Definition at line 2435 of file ValueTracking.cpp.
References AddrSpaceCast, llvm::Operator::getOpcode(), llvm::Value::getType(), I, llvm::Type::isPointerTy(), llvm::JumpTable::Simplified, and SimplifyInstruction().
Referenced by AnalyzeLoadFromClobberingMemInst(), llvm::AliasAnalysis::callCapturesBefore(), ConstantFoldLoadFromConstPtr(), llvm::MemoryDependenceAnalysis::getPointerDependencyFrom(), llvm::objcarc::GetUnderlyingObjCPtr(), GetUnderlyingObject(), GetUnderlyingObjects(), InstructionDereferencesPointer(), isOverwrite(), and underlyingObjectsAlias().
static const Value* llvm::GetUnderlyingObject | ( | const Value * | V, |
const DataLayout * | TD = nullptr , |
||
unsigned | MaxLookup = 6 |
||
) | [inline, static] |
Definition at line 170 of file ValueTracking.h.
References GetUnderlyingObject().
void llvm::GetUnderlyingObjects | ( | Value * | V, |
SmallVectorImpl< Value * > & | Objects, | ||
const DataLayout * | TD = nullptr , |
||
unsigned | MaxLookup = 6 |
||
) |
GetUnderlyingObjects - This method is similar to GetUnderlyingObject except that it can look through phi and select instructions and return multiple objects.
Definition at line 2465 of file ValueTracking.cpp.
References llvm::SmallVectorBase::empty(), GetUnderlyingObject(), llvm::SmallPtrSetImpl< PtrType >::insert(), P, llvm::SmallVectorImpl< T >::pop_back_val(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by AddAliasScopeMetadata(), and getUnderlyingObjects().
static unsigned llvm::getWRegFromXReg | ( | unsigned | Reg | ) | [inline, static] |
Definition at line 29 of file AArch64BaseInfo.h.
Referenced by llvm::AArch64InstPrinter::printInst().
unsigned llvm::getX86SubSuperRegister | ( | unsigned | Reg, |
MVT::SimpleValueType | VT, | ||
bool | High | ||
) |
Definition at line 539 of file X86RegisterInfo.cpp.
References llvm::AArch64CC::AL, llvm::XCoreISD::BL, llvm::N86::EAX, llvm::N86::EBP, llvm::N86::EBX, llvm::N86::ECX, llvm::N86::EDI, llvm::N86::EDX, llvm::N86::ESI, llvm::N86::ESP, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, and llvm_unreachable.
Referenced by copyPhysRegOpcode_AVX512(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), printAsmMRegister(), and printOperand().
static unsigned llvm::getXRegFromWReg | ( | unsigned | Reg | ) | [inline, static] |
Definition at line 69 of file AArch64BaseInfo.h.
uint64_t llvm::GreatestCommonDivisor64 | ( | uint64_t | A, |
uint64_t | B | ||
) | [inline] |
GreatestCommonDivisor64 - Return the greatest common divisor of the two values using Euclid's algorithm.
Definition at line 477 of file MathExtras.h.
References llvm::ARM_PROC::A, and T.
Referenced by llvm::NVPTXTargetLowering::LowerCall(), and UnrollLoop().
void* llvm::GVTOP | ( | const GenericValue & | GV | ) | [inline] |
Definition at line 50 of file GenericValue.h.
References llvm::GenericValue::PointerVal.
Referenced by lle_X_atexit(), lle_X_fprintf(), lle_X_memcpy(), lle_X_memset(), lle_X_scanf(), lle_X_sprintf(), lle_X_sscanf(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::Interpreter::visitCallSite(), llvm::Interpreter::visitIndirectBrInst(), llvm::Interpreter::visitLoadInst(), and llvm::Interpreter::visitStoreInst().
llvm::HANDLE_BINARY_INST | ( | 20 | , |
Shl | , | ||
BinaryOperator | |||
) |
BinaryOperator llvm::HANDLE_BINARY_INST | ( | 22 | , |
AShr | , | ||
BinaryOperator | |||
) |
BinaryOperator AllocaInst TruncInst llvm::HANDLE_CAST_INST | ( | 34 | , |
ZExt | , | ||
ZExtInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst llvm::HANDLE_CAST_INST | ( | 36 | , |
FPToUI | , | ||
FPToUIInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst llvm::HANDLE_CAST_INST | ( | 38 | , |
UIToFP | , | ||
UIToFPInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst llvm::HANDLE_CAST_INST | ( | 40 | , |
FPTrunc | , | ||
FPTruncInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst llvm::HANDLE_CAST_INST | ( | 42 | , |
PtrToInt | , | ||
PtrToIntInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst llvm::HANDLE_CAST_INST | ( | 44 | , |
BitCast | , | ||
BitCastInst | |||
) |
BinaryOperator AllocaInst llvm::HANDLE_MEMORY_INST | ( | 27 | , |
Load | , | ||
LoadInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst llvm::HANDLE_OTHER_INST | ( | 46 | , |
ICmp | , | ||
ICmpInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst llvm::HANDLE_OTHER_INST | ( | 48 | , |
PHI | , | ||
PHINode | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst llvm::HANDLE_OTHER_INST | ( | 50 | , |
Select | , | ||
SelectInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction llvm::HANDLE_OTHER_INST | ( | 52 | , |
UserOp2 | , | ||
Instruction | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst llvm::HANDLE_OTHER_INST | ( | 54 | , |
ExtractElement | , | ||
ExtractElementInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst llvm::HANDLE_OTHER_INST | ( | 56 | , |
ShuffleVector | , | ||
ShuffleVectorInst | |||
) |
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst ExtractValueInst llvm::HANDLE_OTHER_INST | ( | 58 | , |
InsertValue | , | ||
InsertValueInst | |||
) |
hash_code llvm::hash_combine | ( | const T1 & | arg1, |
const T2 & | arg2, | ||
const T3 & | arg3, | ||
const T4 & | arg4, | ||
const T5 & | arg5, | ||
const T6 & | arg6 | ||
) |
Definition at line 673 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
Referenced by llvm::InlineAsmKeyType::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::AnonStructTypeKeyInfo::getHashValue(), llvm::FunctionTypeKeyInfo::getHashValue(), llvm::DenseMapInfo< CIEKey >::getHashValue(), and hash_value().
hash_code llvm::hash_combine | ( | const T1 & | arg1, |
const T2 & | arg2, | ||
const T3 & | arg3, | ||
const T4 & | arg4, | ||
const T5 & | arg5 | ||
) |
Definition at line 680 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
hash_code llvm::hash_combine | ( | const T1 & | arg1, |
const T2 & | arg2, | ||
const T3 & | arg3, | ||
const T4 & | arg4 | ||
) |
Definition at line 687 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
hash_code llvm::hash_combine | ( | const T1 & | arg1, |
const T2 & | arg2, | ||
const T3 & | arg3 | ||
) |
Definition at line 694 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
hash_code llvm::hash_combine | ( | const T1 & | arg1, |
const T2 & | arg2 | ||
) |
Definition at line 699 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
hash_code llvm::hash_combine | ( | const T1 & | arg1 | ) |
Definition at line 704 of file Hashing.h.
References llvm::hashing::detail::hash_combine_recursive_helper::buffer, and llvm::hashing::detail::hash_combine_recursive_helper::combine().
hash_code llvm::hash_combine_range | ( | InputIteratorT | first, |
InputIteratorT | last | ||
) |
Compute a hash_code for a sequence of values.
This hashes a sequence of values. It produces the same hash_code as 'hash_combine(a, b, c, ...)', but can run over arbitrary sized sequences and is significantly faster given pointers and types which can be hashed as a sequence of bytes.
Definition at line 486 of file Hashing.h.
References llvm::hashing::detail::hash_combine_range_impl().
Referenced by llvm::FoldingSetNodeIDRef::ComputeHash(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::AnonStructTypeKeyInfo::getHashValue(), llvm::FunctionTypeKeyInfo::getHashValue(), llvm::MachineInstrExpressionTrait::getHashValue(), and hash_value().
std::enable_if< is_integral_or_enum< T >::value, hash_code >::type llvm::hash_value | ( | T | value | ) |
Compute a hash_code for any integer value.
Note that this function is intended to compute the same hash_code for a particular value without regard to the pre-promotion type. This is in contrast to hash_combine which may produce different hash_codes for differing argument types even if they would implicit promote to a common type without changing the value.
Definition at line 737 of file Hashing.h.
References llvm::hashing::detail::hash_integer_value().
hash_code llvm::hash_value | ( | const T * | ptr | ) |
Compute a hash_code for a pointer's address.
N.B.: This hashes the *address*. Not the value and not the type.
Definition at line 743 of file Hashing.h.
References llvm::hashing::detail::hash_integer_value().
hash_code llvm::hash_value | ( | const std::pair< T, U > & | arg | ) |
Compute a hash_code for a pair of objects.
Definition at line 751 of file Hashing.h.
References hash_combine().
hash_code llvm::hash_value | ( | const std::basic_string< T > & | arg | ) |
Compute a hash_code for a standard string.
Definition at line 758 of file Hashing.h.
References hash_combine_range().
Compute a hash_code for a StringRef.
Definition at line 483 of file StringRef.cpp.
References llvm::StringRef::begin(), llvm::StringRef::end(), and hash_combine_range().
hash_code llvm::hash_value | ( | const APFloat & | Arg | ) |
See friend declaration above.
This additional declaration is required in order to compile LLVM with IBM xlC compiler.
Definition at line 2834 of file APFloat.cpp.
References hash_combine(), hash_combine_range(), llvm::APFloat::isFiniteNonZero(), llvm::APFloat::isNaN(), and llvm::fltSemantics::precision.
Referenced by llvm::DenseMapAPIntKeyInfo::getHashValue(), llvm::DenseMapInfo< TableGenStringKey >::getHashValue(), llvm::DenseMapAPFloatKeyInfo::getHashValue(), and llvm::DenseMapInfo< Expression >::getHashValue().
hash_code llvm::hash_value | ( | const MachineOperand & | MO | ) |
Note that this includes the same information in the hash that isIdenticalTo uses for comparison. It is thus suited for use in hash tables which use that function for equality comparisons only.
Definition at line 216 of file MachineInstr.cpp.
References llvm::MachineOperand::getBlockAddress(), llvm::MachineOperand::getCFIIndex(), llvm::MachineOperand::getCImm(), llvm::MachineOperand::getFPImm(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineOperand::getMBB(), llvm::MachineOperand::getMCSymbol(), llvm::MachineOperand::getMetadata(), llvm::MachineOperand::getOffset(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getRegMask(), llvm::MachineOperand::getSubReg(), llvm::MachineOperand::getSymbolName(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::getType(), hash_combine(), llvm::MachineOperand::isDef(), llvm_unreachable, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_CFIIndex, llvm::MachineOperand::MO_CImmediate, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_FPImmediate, llvm::MachineOperand::MO_FrameIndex, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_MCSymbol, llvm::MachineOperand::MO_Metadata, llvm::MachineOperand::MO_Register, llvm::MachineOperand::MO_RegisterLiveOut, llvm::MachineOperand::MO_RegisterMask, and llvm::MachineOperand::MO_TargetIndex.
hash_code llvm::hash_value | ( | const APInt & | Arg | ) |
Definition at line 664 of file APInt.cpp.
References llvm::APInt::getNumWords(), hash_combine(), hash_combine_range(), llvm::APInt::pVal, and llvm::APInt::VAL.
static unsigned llvm::HashString | ( | StringRef | Str, |
unsigned | Result = 0 |
||
) | [inline, static] |
HashString - Hash function for strings.
This is the Bernstein hash function.
Definition at line 143 of file StringExtras.h.
References llvm::StringRef::size().
Referenced by llvm::StringMapImpl::FindKey(), and llvm::StringMapImpl::LookupBucketFor().
bool llvm::hasInlineAsmMemConstraint | ( | InlineAsm::ConstraintInfoVector & | CInfos, |
const TargetLowering & | TLI | ||
) |
hasInlineAsmMemConstraint - Return true if the inline asm instruction being processed uses a memory 'm' constraint.
Definition at line 132 of file CodeGen/Analysis.cpp.
References llvm::TargetLowering::C_Memory, llvm::InlineAsm::ConstraintInfo::Codes, llvm::TargetLowering::getConstraintType(), and llvm::InlineAsm::ConstraintInfo::isIndirect.
bool llvm::hasUTF16ByteOrderMark | ( | ArrayRef< char > | S | ) |
Definition at line 78 of file ConvertUTFWrapper.cpp.
References llvm::ArrayRef< T >::size().
Referenced by ExpandResponseFile().
static bool llvm::hasVectorInstrinsicScalarOpd | ( | Intrinsic::ID | ID, |
unsigned | ScalarOpdIdx | ||
) | [static] |
Definition at line 60 of file VectorUtils.h.
void llvm::HexagonLowerToMC | ( | const MachineInstr * | MI, |
HexagonMCInst & | MCI, | ||
HexagonAsmPrinter & | AP | ||
) |
Definition at line 42 of file HexagonMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::APFloat::bitcastToAPInt(), llvm::MCSymbolRefExpr::Create(), llvm::MCOperand::CreateExpr(), llvm::MCOperand::CreateImm(), llvm::MCOperand::CreateReg(), llvm::MachineInstr::dump(), llvm::MachineOperand::getBlockAddress(), llvm::AsmPrinter::GetBlockAddressSymbol(), llvm::AsmPrinter::GetCPISymbol(), llvm::MachineInstr::getDesc(), llvm::AsmPrinter::GetExternalSymbolSymbol(), llvm::MachineOperand::getFPImm(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::AsmPrinter::GetJTISymbol(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::APInt::getRawData(), llvm::MachineOperand::getReg(), llvm::AsmPrinter::getSymbol(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getSymbolName(), GetSymbolRef(), llvm::MachineOperand::getType(), llvm::ConstantFP::getValueAPF(), llvm::MachineOperand::isImplicit(), llvm_unreachable, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_FPImmediate, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, llvm::AsmPrinter::OutContext, llvm::HexagonMCInst::setDesc(), and llvm::MCInst::setOpcode().
Referenced by llvm::HexagonAsmPrinter::EmitInstruction().
static char llvm::hexdigit | ( | unsigned | X, |
bool | LowerCase = false |
||
) | [inline, static] |
hexdigit - Return the hexadecimal character for the given number X
(which should be less than 16).
Definition at line 26 of file StringExtras.h.
Referenced by llvm::MCFragment::dump(), PrintEscapedString(), llvm::AssemblyWriter::printNamedMDNode(), utohex_buffer(), and llvm::yaml::BinaryRef::writeAsHex().
static unsigned llvm::hexDigitValue | ( | char | C | ) | [inline, static] |
Interpret the given character C
as a hexadecimal digit and return its value.
If C
is not a valid hex digit, -1U is returned.
Definition at line 40 of file StringExtras.h.
Referenced by trailingHexadecimalFraction(), and UnEscapeLexed().
static unsigned llvm::HI22 | ( | int64_t | imm | ) | [inline, static] |
Definition at line 117 of file Sparc.h.
Referenced by HIX22(), and replaceFI().
uint32_t llvm::Hi_32 | ( | uint64_t | Value | ) | [inline] |
Hi_32 - This function returns the high 32 bits of a 64 bit value.
Definition at line 255 of file MathExtras.h.
static unsigned llvm::HIX22 | ( | int64_t | imm | ) | [inline, static] |
idf_iterator<T> llvm::idf_begin | ( | const T & | G | ) |
Definition at line 252 of file DepthFirstIterator.h.
References llvm::df_iterator< Inverse< T >, SetTy, External >::begin().
Referenced by inverse_depth_first().
idf_iterator<T> llvm::idf_end | ( | const T & | G | ) |
Definition at line 257 of file DepthFirstIterator.h.
References llvm::df_iterator< Inverse< T >, SetTy, External >::end().
Referenced by inverse_depth_first().
idf_ext_iterator<T, SetTy> llvm::idf_ext_begin | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 277 of file DepthFirstIterator.h.
References llvm::df_iterator< Inverse< T >, SetTy, External >::begin().
Referenced by inverse_depth_first_ext().
idf_ext_iterator<T, SetTy> llvm::idf_ext_end | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 282 of file DepthFirstIterator.h.
References llvm::df_iterator< Inverse< T >, SetTy, External >::end().
Referenced by inverse_depth_first_ext().
void llvm::initializeAAEvalPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeAArch64TTIPass | ( | PassRegistry & | ) |
void llvm::initializeADCEPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeAddDiscriminatorsPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeAddressSanitizerModulePass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeAddressSanitizerPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeAliasAnalysisAnalysisGroup | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::SelectionDAGISel::SelectionDAGISel().
void llvm::initializeAliasAnalysisCounterPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeAliasDebuggerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeAliasSetPrinterPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeAlignmentFromAssumptionsPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::InitializeAllAsmParsers | ( | ) | [inline] |
InitializeAllAsmParsers - The main program should call this function if it wants all asm parsers that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 96 of file TargetSelect.h.
void llvm::InitializeAllAsmPrinters | ( | ) | [inline] |
InitializeAllAsmPrinters - The main program should call this function if it wants all asm printers that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 86 of file TargetSelect.h.
void llvm::InitializeAllDisassemblers | ( | ) | [inline] |
InitializeAllDisassemblers - The main program should call this function if it wants all disassemblers that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 106 of file TargetSelect.h.
void llvm::InitializeAllTargetInfos | ( | ) | [inline] |
InitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 53 of file TargetSelect.h.
Referenced by InitializeAllTargets().
void llvm::InitializeAllTargetMCs | ( | ) | [inline] |
InitializeAllTargetMCs - The main program should call this function if it wants access to all available target MC that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 76 of file TargetSelect.h.
void llvm::InitializeAllTargets | ( | ) | [inline] |
InitializeAllTargets - The main program should call this function if it wants access to all available target machines that LLVM is configured to support, to make them available via the TargetRegistry.
It is legal for a client to make multiple calls to this function.
Definition at line 63 of file TargetSelect.h.
References InitializeAllTargetInfos().
void llvm::initializeAlwaysInlinerPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeAMDGPUTTIPass | ( | PassRegistry & | ) |
void llvm::initializeAnalysis | ( | PassRegistry & | Registry | ) |
initializeAnalysis - Initialize all passes linked into the Analysis library.
Definition at line 22 of file Analysis/Analysis.cpp.
References initializeAAEvalPass(), initializeAliasAnalysisAnalysisGroup(), initializeAliasAnalysisCounterPass(), initializeAliasDebuggerPass(), initializeAliasSetPrinterPass(), initializeBasicAliasAnalysisPass(), initializeBlockFrequencyInfoPass(), initializeBranchProbabilityInfoPass(), initializeCFGOnlyPrinterPass(), initializeCFGOnlyViewerPass(), initializeCFGPrinterPass(), initializeCFGViewerPass(), initializeCFLAliasAnalysisPass(), initializeCostModelAnalysisPass(), initializeDelinearizationPass(), initializeDependenceAnalysisPass(), initializeDominanceFrontierPass(), initializeDomOnlyPrinterPass(), initializeDomOnlyViewerPass(), initializeDomPrinterPass(), initializeDomViewerPass(), initializeInstCountPass(), initializeIntervalPartitionPass(), initializeIVUsersPass(), initializeJumpInstrTableInfoPass(), initializeLazyValueInfoPass(), initializeLibCallAliasAnalysisPass(), initializeLintPass(), initializeLoopInfoPass(), initializeMemDepPrinterPass(), initializeMemoryDependenceAnalysisPass(), initializeModuleDebugInfoPrinterPass(), initializeNoAAPass(), initializePostDominatorTreePass(), initializePostDomOnlyPrinterPass(), initializePostDomOnlyViewerPass(), initializePostDomPrinterPass(), initializePostDomViewerPass(), initializeRegionInfoPassPass(), initializeRegionOnlyPrinterPass(), initializeRegionOnlyViewerPass(), initializeRegionPrinterPass(), initializeRegionViewerPass(), initializeScalarEvolutionAliasAnalysisPass(), initializeScalarEvolutionPass(), initializeScopedNoAliasAAPass(), initializeTargetTransformInfoAnalysisGroup(), and initializeTypeBasedAliasAnalysisPass().
Referenced by LLVMInitializeAnalysis().
void llvm::initializeArgPromotionPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeARMTTIPass | ( | PassRegistry & | ) |
void llvm::initializeAssumptionTrackerPass | ( | PassRegistry & | ) |
Referenced by llvm::AssumptionTracker::AssumptionTracker().
void llvm::initializeAtomicExpandPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeBarrierNoopPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeBasicAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeBasicTTIPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeBBVectorizePass | ( | PassRegistry & | ) |
Referenced by initializeVectorization().
void llvm::initializeBlockExtractorPassPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeBlockFrequencyInfoPass | ( | PassRegistry & | ) |
Referenced by llvm::BlockFrequencyInfo::BlockFrequencyInfo(), and initializeAnalysis().
void llvm::initializeBoundsCheckingPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeBranchFolderPassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeBranchProbabilityInfoPass | ( | PassRegistry & | ) |
void llvm::initializeBreakCriticalEdgesPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeCallGraphPrinterPass | ( | PassRegistry & | ) |
Referenced by initializeIPA().
void llvm::initializeCallGraphViewerPass | ( | PassRegistry & | ) |
Referenced by initializeIPA().
void llvm::initializeCallGraphWrapperPassPass | ( | PassRegistry & | ) |
Referenced by llvm::CallGraphWrapperPass::CallGraphWrapperPass(), and initializeIPA().
void llvm::initializeCFGOnlyPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializeCFGOnlyViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeCFGPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializeCFGSimplifyPassPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeCFGViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeCFLAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeCodeGen | ( | PassRegistry & | Registry | ) |
initializeCodeGen - Initialize all passes linked into the CodeGen library.
Definition at line 22 of file CodeGen.cpp.
References initializeAtomicExpandPass(), initializeBasicTTIPass(), initializeBranchFolderPassPass(), initializeCodeGenPreparePass(), initializeDeadMachineInstructionElimPass(), initializeEarlyIfConverterPass(), initializeExpandISelPseudosPass(), initializeExpandPostRAPass(), initializeFinalizeMachineBundlesPass(), initializeGCMachineCodeAnalysisPass(), initializeGCModuleInfoPass(), initializeIfConverterPass(), initializeLiveDebugVariablesPass(), initializeLiveIntervalsPass(), initializeLiveStacksPass(), initializeLiveVariablesPass(), initializeLocalStackSlotPassPass(), initializeLowerIntrinsicsPass(), initializeMachineBlockFrequencyInfoPass(), initializeMachineBlockPlacementPass(), initializeMachineBlockPlacementStatsPass(), initializeMachineCombinerPass(), initializeMachineCopyPropagationPass(), initializeMachineCSEPass(), initializeMachineDominatorTreePass(), initializeMachineFunctionPrinterPassPass(), initializeMachineLICMPass(), initializeMachineLoopInfoPass(), initializeMachineModuleInfoPass(), initializeMachinePostDominatorTreePass(), initializeMachineSchedulerPass(), initializeMachineSinkingPass(), initializeMachineVerifierPassPass(), initializeOptimizePHIsPass(), initializePeepholeOptimizerPass(), initializePEIPass(), initializePHIEliminationPass(), initializePostMachineSchedulerPass(), initializePostRASchedulerPass(), initializeProcessImplicitDefsPass(), initializeRegisterCoalescerPass(), initializeSlotIndexesPass(), initializeStackColoringPass(), initializeStackMapLivenessPass(), initializeStackProtectorPass(), initializeStackSlotColoringPass(), initializeTailDuplicatePassPass(), initializeTargetPassConfigPass(), initializeTwoAddressInstructionPassPass(), initializeUnpackMachineBundlesPass(), initializeUnreachableBlockElimPass(), initializeUnreachableMachineBlockElimPass(), initializeVirtRegMapPass(), and initializeVirtRegRewriterPass().
Referenced by LLVMInitializeCodeGen(), and llvm::TargetPassConfig::TargetPassConfig().
void llvm::initializeCodeGenPreparePass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeConstantHoistingPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeConstantMergePass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeConstantPropagationPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeCore | ( | PassRegistry & | Registry | ) |
initializeCore - Initialize all passes linked into the TransformUtils library.
Definition at line 47 of file Core.cpp.
References initializeDominatorTreeWrapperPassPass(), initializePrintBasicBlockPassPass(), initializePrintFunctionPassWrapperPass(), initializePrintModulePassWrapperPass(), and initializeVerifierLegacyPassPass().
Referenced by LLVMInitializeCore().
void llvm::initializeCorrelatedValuePropagationPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeCostModelAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeDAEPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeDAHPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeDataFlowSanitizerPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeDataLayoutPassPass | ( | PassRegistry & | ) |
Referenced by llvm::DataLayoutPass::DataLayoutPass(), and initializeTarget().
void llvm::initializeDCEPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeDeadInstEliminationPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeDeadMachineInstructionElimPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeDebugInfoVerifierLegacyPassPass | ( | PassRegistry & | ) |
void llvm::initializeDebugIRPass | ( | PassRegistry & | ) |
void llvm::initializeDelinearizationPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeDependenceAnalysisPass | ( | PassRegistry & | ) |
Referenced by llvm::DependenceAnalysis::DependenceAnalysis(), and initializeAnalysis().
void llvm::initializeDominanceFrontierPass | ( | PassRegistry & | ) |
Referenced by llvm::DominanceFrontier::DominanceFrontier(), and initializeAnalysis().
void llvm::initializeDominatorTreeWrapperPassPass | ( | PassRegistry & | ) |
Referenced by llvm::DominatorTreeWrapperPass::DominatorTreeWrapperPass(), and initializeCore().
void llvm::initializeDomOnlyPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializeDomOnlyViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeDomPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializeDomViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeDSEPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeEarlyCSEPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeEarlyIfConverterPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeEdgeBundlesPass | ( | PassRegistry & | ) |
void llvm::initializeExpandISelPseudosPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeExpandPostRAPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeFinalizeMachineBundlesPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeFindUsedTypesPass | ( | PassRegistry & | ) |
Referenced by llvm::FindUsedTypes::FindUsedTypes(), and initializeIPA().
void llvm::initializeFlattenCFGPassPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeFunctionAttrsPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeFunctionTargetTransformInfoPass | ( | PassRegistry & | ) |
void llvm::initializeGCMachineCodeAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeGCModuleInfoPass | ( | PassRegistry & | ) |
void llvm::initializeGCOVProfilerPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeGenericToNVVMPass | ( | PassRegistry & | ) |
Referenced by LLVMInitializeNVPTXTarget().
void llvm::initializeGlobalDCEPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeGlobalMergePass | ( | PassRegistry & | ) |
void llvm::initializeGlobalOptPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeGlobalsModRefPass | ( | PassRegistry & | ) |
Referenced by initializeIPA().
void llvm::initializeGVNPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeHexagonCFGOptimizerPass | ( | PassRegistry & | Registry | ) |
Definition at line 247 of file HexagonCFGOptimizer.cpp.
References CALL_ONCE_INITIALIZATION, and initializePassOnce().
void llvm::initializeHexagonDAGToDAGISelPass | ( | PassRegistry & | Registry | ) |
Definition at line 194 of file HexagonISelDAGToDAG.cpp.
References CALL_ONCE_INITIALIZATION, and initializePassOnce().
void llvm::initializeHexagonExpandPredSpillCodePass | ( | PassRegistry & | Registry | ) |
Definition at line 198 of file HexagonExpandPredSpillCode.cpp.
References CALL_ONCE_INITIALIZATION, and initializePassOnce().
void llvm::initializeHexagonPeepholePass | ( | PassRegistry & | ) |
void llvm::initializeHexagonSplitTFRCondSetsPass | ( | PassRegistry & | Registry | ) |
Definition at line 230 of file HexagonSplitTFRCondSets.cpp.
References CALL_ONCE_INITIALIZATION, and initializePassOnce().
void llvm::initializeIfConverterPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeIndVarSimplifyPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeInlineCostAnalysisPass | ( | PassRegistry & | ) |
void llvm::initializeInstCombine | ( | PassRegistry & | Registry | ) |
initializeInstCombine - Initialize all passes linked into the ScalarOpts library.
Definition at line 80 of file InstructionCombining.cpp.
References initializeInstCombinerPass().
Referenced by LLVMInitializeInstCombine().
void llvm::initializeInstCombinerPass | ( | PassRegistry & | ) |
Referenced by initializeInstCombine(), and llvm::InstCombiner::InstCombiner().
void llvm::initializeInstCountPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeInstNamerPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeInstrumentation | ( | PassRegistry & | Registry | ) |
initializeInstrumentation - Initialize all passes linked into the Instrumentation library.
initializeInstrumentation - Initialize all passes in the TransformUtils library.
Definition at line 23 of file Instrumentation.cpp.
References initializeAddressSanitizerModulePass(), initializeAddressSanitizerPass(), initializeBoundsCheckingPass(), initializeDataFlowSanitizerPass(), initializeGCOVProfilerPass(), initializeMemorySanitizerPass(), and initializeThreadSanitizerPass().
Referenced by LLVMInitializeInstrumentation().
void llvm::initializeInstSimplifierPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeInternalizePassPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeIPO().
void llvm::initializeIntervalPartitionPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::IntervalPartition::IntervalPartition().
void llvm::initializeIPA | ( | PassRegistry & | Registry | ) |
initializeIPA - Initialize all passes linked into the IPA library.
Definition at line 21 of file IPA.cpp.
References initializeCallGraphPrinterPass(), initializeCallGraphViewerPass(), initializeCallGraphWrapperPassPass(), initializeFindUsedTypesPass(), and initializeGlobalsModRefPass().
Referenced by LLVMInitializeIPA().
void llvm::initializeIPCPPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeIPO | ( | PassRegistry & | Registry | ) |
initializeIPO - Initialize all passes linked into the IPO library.
Definition at line 24 of file IPO.cpp.
References initializeAlwaysInlinerPass(), initializeArgPromotionPass(), initializeBarrierNoopPass(), initializeBlockExtractorPassPass(), initializeConstantMergePass(), initializeDAEPass(), initializeDAHPass(), initializeFunctionAttrsPass(), initializeGlobalDCEPass(), initializeGlobalOptPass(), initializeInternalizePassPass(), initializeIPCPPass(), initializeLoopExtractorPass(), initializeMergeFunctionsPass(), initializePartialInlinerPass(), initializePruneEHPass(), initializeSimpleInlinerPass(), initializeSingleLoopExtractorPass(), initializeStripDeadDebugInfoPass(), initializeStripDeadPrototypesPassPass(), initializeStripDebugDeclarePass(), initializeStripNonDebugSymbolsPass(), and initializeStripSymbolsPass().
Referenced by LLVMInitializeIPO().
void llvm::initializeIPSCCPPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeIVUsersPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::IVUsers::IVUsers().
void llvm::initializeJumpInstrTableInfoPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::JumpInstrTableInfo::JumpInstrTableInfo().
void llvm::initializeJumpInstrTablesPass | ( | PassRegistry & | ) |
Referenced by llvm::JumpInstrTables::JumpInstrTables().
void llvm::initializeJumpThreadingPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLazyValueInfoPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::LazyValueInfo::LazyValueInfo().
void llvm::initializeLCSSAPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeLibCallAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::LibCallAliasAnalysis::LibCallAliasAnalysis().
void llvm::initializeLICMPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLintPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeLiveDebugVariablesPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::LiveDebugVariables::LiveDebugVariables().
void llvm::initializeLiveIntervalsPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::LiveIntervals::LiveIntervals().
void llvm::initializeLiveRegMatrixPass | ( | PassRegistry & | ) |
void llvm::initializeLiveStacksPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::LiveStacks::LiveStacks().
void llvm::initializeLiveVariablesPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::LiveVariables::LiveVariables().
void llvm::initializeLoadCombinePass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoaderPassPass | ( | PassRegistry & | ) |
void llvm::initializeLocalStackSlotPassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeLoopDeletionPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopExtractorPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeLoopIdiomRecognizePass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopInfoPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::LoopInfo::LoopInfo().
void llvm::initializeLoopInstSimplifyPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopRerollPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopRotatePass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopSimplifyPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeLoopStrengthReducePass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopUnrollPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopUnswitchPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLoopVectorizePass | ( | PassRegistry & | ) |
Referenced by initializeVectorization().
void llvm::initializeLowerAtomicPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLowerExpectIntrinsicPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeLowerIntrinsicsPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeLowerInvokePass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeLowerSwitchPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeMachineBlockFrequencyInfoPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::MachineBlockFrequencyInfo::MachineBlockFrequencyInfo().
void llvm::initializeMachineBlockPlacementPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineBlockPlacementStatsPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineBranchProbabilityInfoPass | ( | PassRegistry & | ) |
void llvm::initializeMachineCombinerPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineCopyPropagationPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineCSEPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineDominanceFrontierPass | ( | PassRegistry & | ) |
Referenced by llvm::MachineDominanceFrontier::MachineDominanceFrontier().
void llvm::initializeMachineDominatorTreePass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::MachineDominatorTree::MachineDominatorTree().
void llvm::initializeMachineFunctionPrinterPassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineLICMPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineLoopInfoPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::MachineLoopInfo::MachineLoopInfo().
void llvm::initializeMachineModuleInfoPass | ( | PassRegistry & | ) |
void llvm::initializeMachinePostDominatorTreePass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeCodeGen().
void llvm::initializeMachineRegionInfoPassPass | ( | PassRegistry & | ) |
Referenced by llvm::MachineRegionInfoPass::MachineRegionInfoPass().
void llvm::initializeMachineSchedulerPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineSinkingPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMachineTraceMetricsPass | ( | PassRegistry & | ) |
void llvm::initializeMachineVerifierPassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeMemCpyOptPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeMemDepPrinterPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeMemoryDependenceAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::MemoryDependenceAnalysis::MemoryDependenceAnalysis().
void llvm::initializeMemorySanitizerPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeMergedLoadStoreMotionPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeMergeFunctionsPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeMetaRenamerPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializeModuleDebugInfoPrinterPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
bool llvm::InitializeNativeTarget | ( | ) | [inline] |
InitializeNativeTarget - The main program should call this function to initialize the native target corresponding to the host. This is useful for JIT applications to ensure that the target gets linked in correctly.
It is legal for a client to make multiple calls to this function.
Definition at line 116 of file TargetSelect.h.
References LLVM_NATIVE_TARGET, LLVM_NATIVE_TARGETINFO, and LLVM_NATIVE_TARGETMC.
bool llvm::InitializeNativeTargetAsmParser | ( | ) | [inline] |
InitializeNativeTargetAsmParser - The main program should call this function to initialize the native target asm parser.
Definition at line 142 of file TargetSelect.h.
References LLVM_NATIVE_ASMPARSER.
bool llvm::InitializeNativeTargetAsmPrinter | ( | ) | [inline] |
InitializeNativeTargetAsmPrinter - The main program should call this function to initialize the native target asm printer.
Definition at line 130 of file TargetSelect.h.
References LLVM_NATIVE_ASMPRINTER.
bool llvm::InitializeNativeTargetDisassembler | ( | ) | [inline] |
InitializeNativeTargetDisassembler - The main program should call this function to initialize the native target disassembler.
Definition at line 154 of file TargetSelect.h.
References LLVM_NATIVE_DISASSEMBLER.
void llvm::initializeNoAAPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeNoTTIPass | ( | PassRegistry & | ) |
Referenced by LLVMInitializeNVPTXTarget().
Referenced by LLVMInitializeNVPTXTarget().
void llvm::initializeNVVMReflectPass | ( | PassRegistry & | ) |
Referenced by LLVMInitializeNVPTXTarget().
void llvm::initializeObjCARCAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeObjCARCOpts(), and llvm::objcarc::ObjCARCAliasAnalysis::ObjCARCAliasAnalysis().
void llvm::initializeObjCARCAPElimPass | ( | PassRegistry & | ) |
Referenced by initializeObjCARCOpts().
void llvm::initializeObjCARCContractPass | ( | PassRegistry & | ) |
Referenced by initializeObjCARCOpts().
void llvm::initializeObjCARCExpandPass | ( | PassRegistry & | ) |
Referenced by initializeObjCARCOpts().
void llvm::initializeObjCARCOptPass | ( | PassRegistry & | ) |
Referenced by initializeObjCARCOpts().
void llvm::initializeObjCARCOpts | ( | PassRegistry & | Registry | ) |
initializeObjCARCOpts - Initialize all passes linked into the ObjCARCOpts library.
initializeObjCARCOptsPasses - Initialize all passes linked into the ObjCARCOpts library.
Definition at line 39 of file ObjCARC.cpp.
References initializeObjCARCAliasAnalysisPass(), initializeObjCARCAPElimPass(), initializeObjCARCContractPass(), initializeObjCARCExpandPass(), and initializeObjCARCOptPass().
Referenced by LLVMInitializeObjCARCOpts().
void llvm::initializeOptimizePHIsPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializePartialInlinerPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializePartiallyInlineLibCallsPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializePeepholeOptimizerPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializePEIPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::PEI::PEI().
void llvm::initializePHIEliminationPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializePostDominatorTreePass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::PostDominatorTree::PostDominatorTree().
void llvm::initializePostDomOnlyPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializePostDomOnlyViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializePostDomPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializePostDomViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializePostMachineSchedulerPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeCodeGen().
void llvm::initializePostRASchedulerPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializePPCBSelPass | ( | PassRegistry & | ) |
void llvm::initializePPCCTRLoopsPass | ( | PassRegistry & | ) |
void llvm::initializePPCDAGToDAGISelPass | ( | PassRegistry & | Registry | ) |
Definition at line 2209 of file PPCISelDAGToDAG.cpp.
References CALL_ONCE_INITIALIZATION, and initializePassOnce().
void llvm::initializePPCEarlyReturnPass | ( | PassRegistry & | ) |
void llvm::initializePPCTTIPass | ( | PassRegistry & | ) |
void llvm::initializePPCVSXCopyPass | ( | PassRegistry & | ) |
void llvm::initializePPCVSXFMAMutatePass | ( | PassRegistry & | ) |
void llvm::initializePrintBasicBlockPassPass | ( | PassRegistry & | ) |
Referenced by initializeCore().
void llvm::initializePrintFunctionPassWrapperPass | ( | PassRegistry & | ) |
Referenced by initializeCore().
void llvm::initializePrintModulePassWrapperPass | ( | PassRegistry & | ) |
Referenced by initializeCore().
void llvm::initializeProcessImplicitDefsPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializePromotePassPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils().
void llvm::initializePruneEHPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeReassociatePass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeRegionInfoPassPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::RegionInfoPass::RegionInfoPass().
void llvm::initializeRegionOnlyPrinterPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeAnalysis().
void llvm::initializeRegionOnlyViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeRegionPrinterPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeRegionViewerPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeRegisterCoalescerPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeRegToMemPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeSampleProfileLoaderPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeScalarEvolutionAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeScalarEvolutionPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis(), and llvm::ScalarEvolution::ScalarEvolution().
void llvm::initializeScalarizerPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeScalarOpts | ( | PassRegistry & | Registry | ) |
initializeScalarOpts - Initialize all passes linked into the ScalarOpts library.
initializeScalarOptsPasses - Initialize all passes linked into the ScalarOpts library.
Definition at line 29 of file Scalar.cpp.
References initializeADCEPass(), initializeAlignmentFromAssumptionsPass(), initializeCFGSimplifyPassPass(), initializeConstantHoistingPass(), initializeConstantPropagationPass(), initializeCorrelatedValuePropagationPass(), initializeDCEPass(), initializeDeadInstEliminationPass(), initializeDSEPass(), initializeEarlyCSEPass(), initializeFlattenCFGPassPass(), initializeGVNPass(), initializeIndVarSimplifyPass(), initializeIPSCCPPass(), initializeJumpThreadingPass(), initializeLICMPass(), initializeLoadCombinePass(), initializeLoopDeletionPass(), initializeLoopIdiomRecognizePass(), initializeLoopInstSimplifyPass(), initializeLoopRerollPass(), initializeLoopRotatePass(), initializeLoopStrengthReducePass(), initializeLoopUnrollPass(), initializeLoopUnswitchPass(), initializeLowerAtomicPass(), initializeLowerExpectIntrinsicPass(), initializeMemCpyOptPass(), initializeMergedLoadStoreMotionPass(), initializePartiallyInlineLibCallsPass(), initializeReassociatePass(), initializeRegToMemPass(), initializeSampleProfileLoaderPass(), initializeScalarizerPass(), initializeSCCPPass(), initializeSeparateConstOffsetFromGEPPass(), initializeSinkingPass(), initializeSROA_DTPass(), initializeSROA_SSAUpPass(), initializeSROAPass(), initializeStructurizeCFGPass(), and initializeTailCallElimPass().
Referenced by LLVMInitializeScalarOpts().
void llvm::initializeSCCPPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeScopedNoAliasAAPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeSeparateConstOffsetFromGEPPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeSIFixSGPRLiveRangesPass | ( | PassRegistry & | ) |
void llvm::initializeSILowerI1CopiesPass | ( | PassRegistry & | ) |
void llvm::initializeSimpleInlinerPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeSingleLoopExtractorPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeSinkingPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeSlotIndexesPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::SlotIndexes::SlotIndexes().
void llvm::initializeSLPVectorizerPass | ( | PassRegistry & | ) |
Referenced by initializeVectorization().
void llvm::initializeSpillPlacementPass | ( | PassRegistry & | ) |
void llvm::initializeSROA_DTPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeSROA_SSAUpPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeSROAPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeStackColoringPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeStackMapLivenessPass | ( | PassRegistry & | ) |
Referenced by INITIALIZE_PASS(), and initializeCodeGen().
void llvm::initializeStackProtectorPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen(), and llvm::StackProtector::StackProtector().
void llvm::initializeStackSlotColoringPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeStripDeadDebugInfoPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeStripDeadPrototypesPassPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeStripDebugDeclarePass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeStripNonDebugSymbolsPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeStripSymbolsPass | ( | PassRegistry & | ) |
Referenced by initializeIPO().
void llvm::initializeStructurizeCFGPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeTailCallElimPass | ( | PassRegistry & | ) |
Referenced by initializeScalarOpts().
void llvm::initializeTailDuplicatePassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeTarget | ( | PassRegistry & | Registry | ) |
initializeCodeGen - Initialize all passes linked into the CodeGen library.
Definition at line 36 of file Target.cpp.
References initializeDataLayoutPassPass(), and initializeTargetLibraryInfoPass().
Referenced by LLVMInitializeTarget().
void llvm::initializeTargetLibraryInfoPass | ( | PassRegistry & | ) |
Referenced by initialize(), initializeTarget(), and llvm::SelectionDAGISel::SelectionDAGISel().
void llvm::initializeTargetPassConfigPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeTargetTransformInfoAnalysisGroup | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeThreadSanitizerPass | ( | PassRegistry & | ) |
Referenced by initializeInstrumentation().
void llvm::initializeTransformUtils | ( | PassRegistry & | Registry | ) |
initializeTransformUtils - Initialize all passes linked into the TransformUtils library.
initializeTransformUtils - Initialize all passes in the TransformUtils library.
Definition at line 23 of file Utils.cpp.
References initializeAddDiscriminatorsPass(), initializeBreakCriticalEdgesPass(), initializeInstNamerPass(), initializeInstSimplifierPass(), initializeLCSSAPass(), initializeLoopSimplifyPass(), initializeLowerInvokePass(), initializeLowerSwitchPass(), initializeMetaRenamerPass(), initializePromotePassPass(), and initializeUnifyFunctionExitNodesPass().
Referenced by LLVMInitializeTransformUtils().
void llvm::initializeTwoAddressInstructionPassPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeTypeBasedAliasAnalysisPass | ( | PassRegistry & | ) |
Referenced by initializeAnalysis().
void llvm::initializeUnifyFunctionExitNodesPass | ( | PassRegistry & | ) |
Referenced by initializeTransformUtils(), and llvm::UnifyFunctionExitNodes::UnifyFunctionExitNodes().
void llvm::initializeUnpackMachineBundlesPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeUnreachableBlockElimPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeUnreachableMachineBlockElimPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeVectorization | ( | PassRegistry & | Registry | ) |
initializeVectorization - Initialize all passes linked into the Vectorize library.
initializeVectorizationPasses - Initialize all passes linked into the Vectorization library.
Definition at line 28 of file Vectorize.cpp.
References initializeBBVectorizePass(), initializeLoopVectorizePass(), and initializeSLPVectorizerPass().
Referenced by LLVMInitializeVectorization().
void llvm::initializeVerifierLegacyPassPass | ( | PassRegistry & | ) |
Referenced by initializeCore().
void llvm::initializeVirtRegMapPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeVirtRegRewriterPass | ( | PassRegistry & | ) |
Referenced by initializeCodeGen().
void llvm::initializeX86TTIPass | ( | PassRegistry & | ) |
void llvm::initializeXCoreLowerThreadLocalPass | ( | PassRegistry & | p | ) |
void llvm::initializeXCoreTTIPass | ( | PassRegistry & | ) |
bool llvm::InlineFunction | ( | CallInst * | C, |
InlineFunctionInfo & | IFI, | ||
bool | InsertLifetime = true |
||
) |
InlineFunction - This function inlines the called function into the basic block of the caller. This returns false if it is not possible to inline this call. The program is still in a well defined state if this occurs though.
Note that this only does one level of inlining. For example, if the instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now exists in the instruction stream. Similarly this will inline a recursive function by one level.
Definition at line 50 of file InlineFunction.cpp.
Referenced by InlineCallIfPossible(), and InlineFunction().
bool llvm::InlineFunction | ( | InvokeInst * | II, |
InlineFunctionInfo & | IFI, | ||
bool | InsertLifetime = true |
||
) |
Definition at line 54 of file InlineFunction.cpp.
References InlineFunction().
bool llvm::InlineFunction | ( | CallSite | CS, |
InlineFunctionInfo & | IFI, | ||
bool | InsertLifetime = true |
||
) |
InlineFunction - This function inlines the called function into the basic block of the caller. This returns false if it is not possible to inline this call. The program is still in a well defined state if this occurs though.
Note that this only does one level of inlining. For example, if the instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now exists in the instruction stream. Similarly this will inline a recursive function by one level.
Definition at line 842 of file InlineFunction.cpp.
References llvm::InlineFunctionInfo::AA, AddAliasScopeMetadata(), llvm::PHINode::addIncoming(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_begin(), llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_size(), llvm::Function::arg_size(), llvm::InlineFunctionInfo::AT, llvm::Function::back(), llvm::BasicBlock::begin(), llvm::Function::begin(), llvm::InlineFunctionInfo::CG, CloneAliasScopeMetadata(), CloneAndPruneFunctionInto(), llvm::ClonedCodeInfo::ContainsCalls, llvm::ClonedCodeInfo::ContainsDynamicAllocas, llvm::PHINode::Create(), llvm::BranchInst::Create(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateRet(), llvm::InlineFunctionInfo::DL, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::doesNotThrow(), dyn_cast(), llvm::SmallVectorBase::empty(), llvm::Function::end(), llvm::iplist< NodeTy, Traits >::erase(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::eraseFromParent(), fixupLineNumbers(), llvm::AssumptionTracker::forgetCachedAssumptions(), llvm::ConstantInt::get(), llvm::UndefValue::get(), llvm::AllocaInst::getAllocatedType(), llvm::AllocaInst::getArraySize(), llvm::Function::getBasicBlockList(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getCalledFunction(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::Intrinsic::getDeclaration(), llvm::Function::getEntryBlock(), llvm::Function::getFunctionType(), llvm::Function::getGC(), llvm::BasicBlock::getInstList(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getInstruction(), llvm::Type::getInt64Ty(), llvm::BasicBlock::getLandingPadInst(), llvm::Value::getName(), llvm::InvokeInst::getNormalDest(), llvm::Instruction::getOpcode(), llvm::Function::getParamAlignment(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::LandingPadInst::getPersonalityFn(), llvm::Function::getReturnType(), llvm::ReturnInst::getReturnValue(), llvm::CallInst::getTailCallKind(), llvm::BasicBlock::getTerminatingMustTailCall(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::InvokeInst::getUnwindDest(), HandleByValArgument(), HandleByValArgumentInit(), HandleInlinedInvoke(), llvm::Function::hasGC(), hasLifetimeMarkers(), I, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::isByValArgument(), llvm::GlobalValue::isDeclaration(), llvm::CallInst::isMustTailCall(), llvm::FunctionType::isVarArg(), llvm::TargetOpcode::PHI, llvm::iplist< NodeTy, Traits >::pop_back(), pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::Value::replaceAllUsesWith(), llvm::InlineFunctionInfo::reset(), llvm::Instruction::setDebugLoc(), llvm::CallInst::setDoesNotThrow(), llvm::Function::setGC(), llvm::User::setOperand(), llvm::CallInst::setTailCallKind(), SimplifyInstruction(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::iplist< NodeTy, Traits >::splice(), llvm::BasicBlock::splitBasicBlock(), llvm::InlineFunctionInfo::StaticAllocas, std::swap(), llvm::CallInst::TCK_None, UINT64_MAX, UpdateCallGraphAfterInlining(), and llvm::Value::use_empty().
BasicBlock * llvm::InsertPreheaderForLoop | ( | Loop * | L, |
Pass * | PP | ||
) |
InsertPreheaderForLoop - Once we discover that a loop doesn't have a preheader, this method is called to insert one. This method has two phases: preheader insertion and analysis updating.
Definition at line 113 of file LoopSimplify.cpp.
References llvm::LoopBase< BlockT, LoopT >::contains(), dbgs(), DEBUG, llvm::Instruction::getDebugLoc(), llvm::BasicBlock::getFirstNonPHI(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::Value::getName(), llvm::BasicBlock::getTerminator(), llvm::BasicBlock::isLandingPad(), P, placeSplitBlockCarefully(), pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::Instruction::setDebugLoc(), SplitBlockPredecessors(), and SplitLandingPadPredecessors().
Referenced by simplifyOneLoop().
inst_iterator llvm::inst_begin | ( | Function * | F | ) | [inline] |
Definition at line 128 of file InstIterator.h.
Referenced by llvm::Function::callsFunctionThatReturnsTwice(), dumpExampleDependence(), getInst(), llvm::ScalarEvolution::print(), and llvm::FindUsedTypes::runOnModule().
const_inst_iterator llvm::inst_begin | ( | const Function * | F | ) | [inline] |
Definition at line 130 of file InstIterator.h.
inst_iterator llvm::inst_begin | ( | Function & | F | ) | [inline] |
Definition at line 136 of file InstIterator.h.
const_inst_iterator llvm::inst_begin | ( | const Function & | F | ) | [inline] |
Definition at line 138 of file InstIterator.h.
inst_iterator llvm::inst_end | ( | Function * | F | ) | [inline] |
Definition at line 129 of file InstIterator.h.
Referenced by llvm::Function::callsFunctionThatReturnsTwice(), llvm::constant_iterator::constant_iterator(), dumpExampleDependence(), getInst(), llvm::ScalarEvolution::print(), and llvm::FindUsedTypes::runOnModule().
const_inst_iterator llvm::inst_end | ( | const Function * | F | ) | [inline] |
Definition at line 133 of file InstIterator.h.
inst_iterator llvm::inst_end | ( | Function & | F | ) | [inline] |
Definition at line 137 of file InstIterator.h.
const_inst_iterator llvm::inst_end | ( | const Function & | F | ) | [inline] |
Definition at line 141 of file InstIterator.h.
void llvm::install_fatal_error_handler | ( | fatal_error_handler_t | handler, |
void * | user_data = nullptr |
||
) |
install_fatal_error_handler - Installs a new error handler to be used whenever a serious (non-recoverable) error is encountered by LLVM.
If no error handler is installed the default is to print the error message to stderr, and call exit(1). If an error handler is installed then it is the handler's responsibility to log the message, it will no longer be printed to stderr. If the error handler returns, then exit(1) will be called.
It is dangerous to naively use an error handler which throws an exception. Even though some applications desire to gracefully recover from arbitrary faults, blindly throwing exceptions through unfamiliar code isn't a way to achieve this.
user_data | - An argument which will be passed to the install error handler. |
Definition at line 46 of file ErrorHandling.cpp.
References ErrorHandler, ErrorHandlerMutex, ErrorHandlerUserData, and Lock.
Referenced by LLVMInstallFatalErrorHandler(), and llvm::ScopedFatalErrorHandler::ScopedFatalErrorHandler().
const std::error_category & llvm::instrprof_category | ( | ) |
Definition at line 58 of file InstrProf.cpp.
References llvm::CallingConv::C.
Referenced by make_error_code().
function_interval_iterator llvm::intervals_begin | ( | Function * | F, |
bool | DeleteInts = true |
||
) | [inline] |
Definition at line 240 of file IntervalIterator.h.
Referenced by llvm::IntervalPartition::IntervalPartition(), and llvm::IntervalPartition::runOnFunction().
interval_part_interval_iterator llvm::intervals_begin | ( | IntervalPartition & | IP, |
bool | DeleteIntervals = true |
||
) | [inline] |
Definition at line 249 of file IntervalIterator.h.
function_interval_iterator llvm::intervals_end | ( | Function * | ) | [inline] |
Definition at line 244 of file IntervalIterator.h.
Referenced by llvm::IntervalPartition::IntervalPartition(), and llvm::IntervalPartition::runOnFunction().
interval_part_interval_iterator llvm::intervals_end | ( | IntervalPartition & | IP | ) | [inline] |
Definition at line 253 of file IntervalIterator.h.
iterator_range<idf_iterator<T> > llvm::inverse_depth_first | ( | const T & | G | ) |
Definition at line 263 of file DepthFirstIterator.h.
References idf_begin(), and idf_end().
iterator_range<idf_ext_iterator<T, SetTy> > llvm::inverse_depth_first_ext | ( | const T & | G, |
SetTy & | S | ||
) |
Definition at line 287 of file DepthFirstIterator.h.
References idf_ext_begin(), and idf_ext_end().
ipo_iterator<T> llvm::ipo_begin | ( | T | G, |
bool | Reverse = false |
||
) |
Definition at line 206 of file PostOrderIterator.h.
References llvm::po_iterator< Inverse< T >, SetType, External >::begin().
ipo_iterator<T> llvm::ipo_end | ( | T | G | ) |
Definition at line 211 of file PostOrderIterator.h.
References llvm::po_iterator< Inverse< T >, SetType, External >::end().
ipo_ext_iterator<T, SetType> llvm::ipo_ext_begin | ( | T | G, |
SetType & | S | ||
) |
Definition at line 226 of file PostOrderIterator.h.
References llvm::po_iterator< Inverse< T >, SetType, External >::begin().
ipo_ext_iterator<T, SetType> llvm::ipo_ext_end | ( | T | G, |
SetType & | S | ||
) |
Definition at line 231 of file PostOrderIterator.h.
References llvm::po_iterator< Inverse< T >, SetType, External >::end().
LLVM_ATTRIBUTE_UNUSED_RESULT bool llvm::isa | ( | const Y & | Val | ) | [inline] |
Definition at line 132 of file Casting.h.
Referenced by llvm::DwarfUnit::applySubprogramAttributes(), and llvm::MCDwarfLoc::setIsa().
int llvm::isAArch64FrameOffsetLegal | ( | const MachineInstr & | MI, |
int & | Offset, | ||
bool * | OutUseUnscaledOp = nullptr , |
||
unsigned * | OutUnscaledOp = nullptr , |
||
int * | EmittableOffset = nullptr |
||
) |
Check if the Offset
is a valid frame offset for MI
. The returned value reports the validity of the frame offset for MI
. It uses the values defined by AArch64FrameOffsetStatus for that. If result == AArch64FrameOffsetCannotUpdate, MI
cannot be updated to use an offset.eq If result & AArch64FrameOffsetIsLegal, Offset
can completely be rewriten in MI
. If result & AArch64FrameOffsetCanUpdate, Offset
contains the amount that is off the limit of the legal offset. If set, OutUseUnscaledOp
will contain the whether MI
should be turned into an unscaled operator, which opcode is in OutUnscaledOp
. If set, EmittableOffset
contains the amount that can be set in MI
(possibly with OutUnscaledOp
if OutUseUnscaledOp is true) and that is a legal offset.
Definition at line 2076 of file AArch64InstrInfo.cpp.
References AArch64FrameOffsetCannotUpdate, AArch64FrameOffsetCanUpdate, AArch64FrameOffsetIsLegal, llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm_unreachable.
Referenced by llvm::AArch64RegisterInfo::isFrameOffsetLegal(), and rewriteAArch64FrameIndex().
bool llvm::isAllocaPromotable | ( | const AllocaInst * | AI | ) |
Return true if this alloca is legal for promotion.
This is true if there are only loads, stores, and lifetime markers (transitively) using this alloca. This also enforces that there is only ever one layer of bitcasts or GEPs between the alloca and the lifetime markers.
Definition at line 60 of file PromoteMemoryToRegister.cpp.
References llvm::PointerType::getAddressSpace(), llvm::Type::getInt8PtrTy(), llvm::AllocaInst::getType(), LI, onlyUsedByLifetimeMarkers(), and llvm::Value::users().
bool llvm::isAllocationFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that allocates or reallocates memory (either malloc, calloc, realloc, or strdup like).
Definition at line 151 of file MemoryBuiltins.cpp.
References AnyAlloc, and getAllocationData().
Referenced by CleanupPointerRootUsers(), isNoAliasFn(), IsSafeComputationToRemove(), and llvm::InstCombiner::visitGetElementPtrInst().
bool llvm::isAllocLikeFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that allocates memory (either malloc, calloc, or strdup like).
Definition at line 182 of file MemoryBuiltins.cpp.
References AllocLike, and getAllocationData().
Referenced by isInstructionTriviallyDead().
static bool llvm::isARMArea1Register | ( | unsigned | Reg, |
bool | isIOS | ||
) | [inline, static] |
isARMArea1Register - Returns true if the register is a low register (r0-r7) or a stack/pc register that we should push/pop.
Definition at line 38 of file ARMBaseRegisterInfo.h.
References ARM, R2, R4, and R6.
Referenced by llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), and llvm::ARMFrameLowering::spillCalleeSavedRegisters().
static bool llvm::isARMArea2Register | ( | unsigned | Reg, |
bool | isIOS | ||
) | [inline, static] |
Definition at line 53 of file ARMBaseRegisterInfo.h.
References ARM.
Referenced by llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), and llvm::ARMFrameLowering::spillCalleeSavedRegisters().
static bool llvm::isARMArea3Register | ( | unsigned | Reg, |
bool | isIOS | ||
) | [inline, static] |
Definition at line 64 of file ARMBaseRegisterInfo.h.
References ARM.
Referenced by llvm::ARMFrameLowering::restoreCalleeSavedRegisters(), and llvm::ARMFrameLowering::spillCalleeSavedRegisters().
static bool llvm::isARMLowRegister | ( | unsigned | Reg | ) | [inline, static] |
isARMLowRegister - Returns true if the register is a low register (r0-r7).
Definition at line 210 of file ARMBaseInfo.h.
References ARM, R2, R4, and R6.
Referenced by checkLowRegisterList(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::ARMFrameLowering::processFunctionBeforeCalleeSavedScan(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), and VerifyLowRegs().
const CallInst * llvm::isArrayMalloc | ( | const Value * | I, |
const DataLayout * | DL, | ||
const TargetLibraryInfo * | TLI | ||
) |
isArrayMalloc - Returns the corresponding CallInst if the instruction is a call to malloc whose array size can be determined and the array size is not constant 1. Otherwise, return NULL.
Definition at line 238 of file MemoryBuiltins.cpp.
References computeArraySize(), and extractMallocCall().
bool llvm::isAtLeastAcquire | ( | AtomicOrdering | Ord | ) | [inline] |
Returns true if the ordering is at least as strong as acquire (i.e. acquire, acq_rel or seq_cst)
Definition at line 55 of file Instructions.h.
References Acquire, AcquireRelease, and SequentiallyConsistent.
Referenced by llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), and llvm::MemoryDependenceAnalysis::getPointerDependencyFrom().
bool llvm::isAtLeastRelease | ( | AtomicOrdering | Ord | ) | [inline] |
Returns true if the ordering is at least as strong as release (i.e. release, acq_rel or seq_cst)
Definition at line 63 of file Instructions.h.
References AcquireRelease, Release, and SequentiallyConsistent.
Referenced by llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), and llvm::MemoryDependenceAnalysis::getPointerDependencyFrom().
Definition at line 340 of file NVPTXUtilities.cpp.
bool llvm::isBasePlusOffsetMemoryAccess | ( | unsigned | Opcode, |
unsigned * | AddrIdx, | ||
bool * | IsStore = nullptr |
||
) |
Definition at line 202 of file MipsNaClELFStreamer.cpp.
References llvm::MipsISD::LWL, llvm::MipsISD::LWR, llvm::PPCISD::SC, llvm::MipsISD::SWL, and llvm::MipsISD::SWR.
static bool llvm::isBinOpWithFlags | ( | unsigned | Opcode | ) | [static] |
isBinOpWithFlags - Returns true if the opcode is a binary operation with flags.
Definition at line 55 of file SelectionDAGNodes.h.
References llvm::ISD::ADD, llvm::ISD::MUL, llvm::ISD::SDIV, llvm::ISD::SHL, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ISD::SUB, and llvm::ISD::UDIV.
Referenced by AddBinaryNodeIDCustom(), llvm::BinaryWithFlagsSDNode::classof(), llvm::SelectionDAG::getNode(), and llvm::SelectionDAG::getNodeIfExists().
isBitcode - Return true if the given bytes are the magic bytes for LLVM IR bitcode, either with or without a wrapper.
Definition at line 92 of file ReaderWriter.h.
References isBitcodeWrapper(), and isRawBitcode().
Referenced by getLazyIRModule(), and parseIR().
isBitcodeWrapper - Return true if the given bytes are the magic bytes for an LLVM IR bitcode wrapper.
Definition at line 64 of file ReaderWriter.h.
Referenced by isBitcode().
Value * llvm::isBytewiseValue | ( | Value * | V | ) |
isBytewiseValue - If the specified value can be set by repeating the same byte in memory, return the i8 value that it is represented with. This is true for all i8 values obviously, but is also true for i32 0, i32 -1, i16 0xF0F0, double 0.0 etc. If the value can't be handled with a repeated byte store (e.g. i16 0x1234), return null.
Definition at line 2014 of file ValueTracking.cpp.
References llvm::CallingConv::C, llvm::ConstantInt::get(), llvm::ConstantExpr::getBitCast(), llvm::APInt::getBitWidth(), llvm::Value::getContext(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::Constant::getNullValue(), llvm::Value::getType(), I, llvm::Type::isIntegerTy(), isPowerOf2_32(), llvm::APInt::lshr(), and llvm::APInt::trunc().
static bool llvm::isCalleeSavedRegister | ( | unsigned | Reg, |
const MCPhysReg * | CSRegs | ||
) | [inline, static] |
Definition at line 75 of file ARMBaseRegisterInfo.h.
Referenced by isCSRestore(), and tryFoldSPUpdateIntoPushPop().
bool llvm::isCallocLikeFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that allocates zero-filled memory (such as calloc).
Definition at line 175 of file MemoryBuiltins.cpp.
References CallocLike, and getAllocationData().
Referenced by extractCallocCall(), and llvm::MemoryDependenceAnalysis::getPointerDependencyFrom().
static bool llvm::isCondBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 239 of file AArch64InstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AArch64InstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::RemoveBranch(), and llvm::AArch64InstrInfo::RemoveBranch().
bool llvm::IsCPSRDead | ( | InstrType * | Instr | ) |
Referenced by isV8EligibleForIT().
bool llvm::IsCPSRDead< MachineInstr > | ( | MachineInstr * | MI | ) |
Definition at line 582 of file ARMBaseInstrInfo.cpp.
References llvm::MachineOperand::getReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUndef(), llvm::MachineOperand::isUse(), and llvm::AArch64CC::MI.
bool llvm::IsCPSRDead< MCInst > | ( | MCInst * | Instr | ) | [inline] |
Definition at line 8167 of file ARMAsmParser.cpp.
bool llvm::isCriticalEdge | ( | const TerminatorInst * | TI, |
unsigned | SuccNum, | ||
bool | AllowIdenticalEdges = false |
||
) |
Return true if the specified edge is a critical edge. Critical edges are edges from a block with multiple successors to a block with multiple predecessors.
isCriticalEdge - Return true if the specified edge is a critical edge. Critical edges are edges from a block with multiple successors to a block with multiple predecessors.
Definition at line 87 of file CFG.cpp.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), I, pred_begin(), and pred_end().
Referenced by DemoteRegToStack(), and SplitCriticalEdge().
bool llvm::isCurrentDebugType | ( | const char * | Type | ) |
isCurrentDebugType - Return true if the specified string is the debug type specified on the command line, or if none was specified on the command line with the -debug-only=X option.
Definition at line 89 of file Debug.cpp.
References CurrentDebugType.
static unsigned llvm::isDescribedByReg | ( | const MachineInstr & | MI | ) | [static] |
Definition at line 28 of file DbgValueHistoryCalculator.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::isDebugValue(), and llvm::MachineOperand::isReg().
Referenced by calculateDbgValueHistory(), and llvm::DbgValueHistoryMap::getRegisterForVar().
const CallInst * llvm::isFreeCall | ( | const Value * | I, |
const TargetLibraryInfo * | TLI | ||
) |
isFreeCall - Returns non-null if the value is a call to the builtin free()
Definition at line 317 of file MemoryBuiltins.cpp.
References dyn_cast(), llvm::LibFunc::free, llvm::CallInst::getCalledFunction(), llvm::Function::getContext(), llvm::Function::getFunctionType(), llvm::Type::getInt8PtrTy(), llvm::TargetLibraryInfo::getLibFunc(), llvm::Value::getName(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getParamType(), llvm::FunctionType::getReturnType(), llvm::TargetLibraryInfo::has(), I, llvm::GlobalValue::isDeclaration(), llvm::Type::isVoidTy(), llvm::LibFunc::ZdaPv, llvm::LibFunc::ZdaPvRKSt9nothrow_t, llvm::LibFunc::ZdlPv, and llvm::LibFunc::ZdlPvRKSt9nothrow_t.
Referenced by GetLocation(), isAllocSiteRemovable(), isFreeCall(), isInstructionTriviallyDead(), and llvm::InstCombiner::visitCallInst().
static CallInst* llvm::isFreeCall | ( | Value * | I, |
const TargetLibraryInfo * | TLI | ||
) | [inline, static] |
Definition at line 135 of file MemoryBuiltins.h.
References isFreeCall().
static bool llvm::isGlobalRelativeToPICBase | ( | unsigned char | TargetFlag | ) | [inline, static] |
isGlobalRelativeToPICBase - Return true if the specified global value reference is relative to a 32-bit PIC base (X86ISD::GlobalBaseReg). If this is true, the addressing mode has the PIC base register added in (e.g. EBX).
Definition at line 102 of file X86InstrInfo.h.
References llvm::X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE, llvm::X86II::MO_DARWIN_NONLAZY_PIC_BASE, llvm::X86II::MO_GOT, llvm::X86II::MO_GOTOFF, llvm::X86II::MO_PIC_BASE_OFFSET, and llvm::X86II::MO_TLVP.
static bool llvm::isGlobalStubReference | ( | unsigned char | TargetFlag | ) | [inline, static] |
isGlobalStubReference - Return true if the specified TargetFlag operand is a reference to a stub for a global, not the global itself.
Definition at line 85 of file X86InstrInfo.h.
References llvm::X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE, llvm::X86II::MO_DARWIN_NONLAZY, llvm::X86II::MO_DARWIN_NONLAZY_PIC_BASE, llvm::X86II::MO_DLLIMPORT, llvm::X86II::MO_GOT, and llvm::X86II::MO_GOTPCREL.
isIdentifiedFunctionLocal - Return true if V is umabigously identified at the function-level. Different IdentifiedFunctionLocals can't alias. Further, an IdentifiedFunctionLocal can not alias with any function arguments other than itself, which is not necessarily true for IdentifiedObjects.
Definition at line 556 of file AliasAnalysis.cpp.
References isNoAliasArgument(), and isNoAliasCall().
Referenced by AddAliasScopeMetadata().
bool llvm::isIdentifiedObject | ( | const Value * | V | ) |
isIdentifiedObject - Return true if this pointer refers to a distinct and identifiable object. This returns true for: Global Variables and Functions (but not Global Aliases) Allocas ByVal and NoAlias Arguments NoAlias returns (e.g. calls to malloc)
isIdentifiedObject - Return true if this pointer refers to a distinct and identifiable object. This returns true for: Global Variables and Functions (but not Global Aliases) Allocas and Mallocs ByVal and NoAlias Arguments NoAlias returns
Definition at line 539 of file AliasAnalysis.cpp.
References llvm::ARM_PROC::A, and isNoAliasCall().
Referenced by llvm::AliasAnalysis::callCapturesBefore(), getUnderlyingObjectsForInstr(), isObjectSmallerThan(), and isUnsafeMemoryObject().
bool llvm::isImage | ( | const llvm::Value & | val | ) |
Definition at line 223 of file NVPTXUtilities.cpp.
References isImageReadOnly(), isImageReadWrite(), and isImageWriteOnly().
Definition at line 1998 of file NVPTXISelLowering.cpp.
References array_lengthof(), dyn_cast(), llvm::SequentialType::getElementType(), llvm::StructType::getName(), llvm::Value::getType(), and llvm::StructType::isLiteral().
Referenced by llvm::NVPTXTargetLowering::LowerFormalArguments().
bool llvm::isImageReadOnly | ( | const llvm::Value & | val | ) |
Definition at line 178 of file NVPTXUtilities.cpp.
References findAllNVVMAnnotation(), llvm::GlobalValue::getParent(), PROPERTY_ISREADONLY_IMAGE_PARAM, and PropertyAnnotationNames.
Referenced by isImage().
bool llvm::isImageReadWrite | ( | const llvm::Value & | val | ) |
Definition at line 208 of file NVPTXUtilities.cpp.
References findAllNVVMAnnotation(), llvm::GlobalValue::getParent(), PROPERTY_ISREADWRITE_IMAGE_PARAM, and PropertyAnnotationNames.
Referenced by isImage().
bool llvm::isImageWriteOnly | ( | const llvm::Value & | val | ) |
Definition at line 193 of file NVPTXUtilities.cpp.
References findAllNVVMAnnotation(), llvm::GlobalValue::getParent(), PROPERTY_ISWRITEONLY_IMAGE_PARAM, and PropertyAnnotationNames.
Referenced by isImage().
bool llvm::isImmSExti16i8Value | ( | uint64_t | Value | ) | [inline] |
Definition at line 15 of file X86AsmParserCommon.h.
Referenced by convert16i16to16ri8(), and llvm::X86Operand::isImmSExti16i8().
bool llvm::isImmSExti32i8Value | ( | uint64_t | Value | ) | [inline] |
Definition at line 21 of file X86AsmParserCommon.h.
Referenced by convert32i32to32ri8(), and llvm::X86Operand::isImmSExti32i8().
bool llvm::isImmSExti64i32Value | ( | uint64_t | Value | ) | [inline] |
Definition at line 32 of file X86AsmParserCommon.h.
Referenced by llvm::X86Operand::isImmSExti64i32().
bool llvm::isImmSExti64i8Value | ( | uint64_t | Value | ) | [inline] |
Definition at line 27 of file X86AsmParserCommon.h.
Referenced by convert64i32to64ri8(), and llvm::X86Operand::isImmSExti64i8().
static bool llvm::isIndirectBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 256 of file AArch64InstrInfo.h.
References llvm::ISD::BR.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch(), and llvm::AArch64InstrInfo::AnalyzeBranch().
int llvm::IsInf | ( | float | f | ) |
int llvm::IsInf | ( | double | d | ) |
bool llvm::isInstructionTriviallyDead | ( | Instruction * | I, |
const TargetLibraryInfo * | TLI = nullptr |
||
) |
isInstructionTriviallyDead - Return true if the result produced by the instruction is not used, and the instruction has no side effects.
Definition at line 270 of file Local.cpp.
References llvm::CallingConv::C, I, isAllocLikeFn(), isFreeCall(), llvm::Instruction::mayHaveSideEffects(), and llvm::Value::use_empty().
Referenced by AddReachableCodeToWorklist(), DeleteDeadInstruction(), deleteDeadInstruction(), deleteIfDeadInstruction(), DeleteTriviallyDeadInstructions(), llvm::InstCombiner::DoOneIteration(), RecursivelyDeleteTriviallyDeadInstructions(), llvm::Inliner::runOnSCC(), and UnrollLoop().
bool llvm::isInt | ( | int64_t | x | ) | [inline] |
isInt - Checks if an integer fits into the given bit width.
Definition at line 272 of file MathExtras.h.
References N.
bool llvm::isInt< 16 > | ( | int64_t | x | ) | [inline] |
Definition at line 281 of file MathExtras.h.
Referenced by llvm::PPCFrameLowering::addScavengingSpillSlot(), llvm::MipsSEInstrInfo::adjustStackPtr(), llvm::Mips16InstrInfo::adjustStackPtr(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), emitIncrement(), llvm::PPCFrameLowering::emitPrologue(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::MipsSEFrameLowering::hasReservedCallFrame(), llvm::PPCRegisterInfo::isFrameOffsetLegal(), llvm::PPCTargetLowering::isLegalAddImmediate(), llvm::PPCTargetLowering::isLegalICmpImmediate(), llvm::SystemZInstrInfo::loadImmediate(), llvm::SystemZTargetLowering::LowerAsmOperandForConstraint(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::Mips16InstrInfo::makeFrame(), Mips16WhichOp8uOr16simm(), llvm::MipsSEFrameLowering::processFunctionBeforeCalleeSavedScan(), llvm::Mips16InstrInfo::restoreFrame(), shouldSwapCmpOperands(), shouldUseLA(), and llvm::Mips16InstrInfo::validImmediate().
bool llvm::isInt< 32 > | ( | int64_t | x | ) | [inline] |
Definition at line 285 of file MathExtras.h.
Referenced by llvm::PPCFrameLowering::emitPrologue(), llvm::X86::isOffsetSuitableForCodeModel(), and llvm::SystemZInstrInfo::loadImmediate().
bool llvm::isInt< 8 > | ( | int64_t | x | ) | [inline] |
Definition at line 277 of file MathExtras.h.
Referenced by llvm::SystemZInstrInfo::foldMemoryOperandImpl(), getADDriOpcode(), llvm::SystemZInstrInfo::getCompareAndBranch(), getSUBriOpcode(), isGreaterThan8BitTFRI(), llvm::HexagonInstrInfo::isPredicable(), and switch().
bool llvm::isInTailCallPosition | ( | ImmutableCallSite | CS, |
const TargetMachine & | TM | ||
) |
Test if the given instruction is in a position to be optimized with a tail-call. This roughly means that it's in a block with a return and there's nothing that needs to be scheduled between it and the return.
This function only tests target-independent requirements.
Definition at line 481 of file CodeGen/Analysis.cpp.
References dyn_cast(), llvm::BasicBlock::end(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getInstruction(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::TargetMachine::getSubtargetImpl(), llvm::TargetSubtargetInfo::getTargetLowering(), llvm::BasicBlock::getTerminator(), llvm::TargetOptions::GuaranteedTailCallOpt, I, isSafeToSpeculativelyExecute(), llvm::Instruction::mayHaveSideEffects(), llvm::Instruction::mayReadFromMemory(), llvm::TargetMachine::Options, llvm::MipsISD::Ret, and returnTypeIsEligibleForTailCall().
Referenced by llvm::FastISel::lowerCall(), and llvm::SelectionDAGBuilder::LowerCallTo().
bool llvm::isIntN | ( | unsigned | N, |
int64_t | x | ||
) | [inline] |
isIntN - Checks if an signed integer fits into the given (dynamic) bit width.
Definition at line 330 of file MathExtras.h.
Referenced by adjustFixupValue(), llvm::MCStreamer::EmitIntValue(), isExtendedBUILD_VECTOR(), and llvm::TargetLowering::SimplifyDemandedBits().
static bool llvm::isJumpTableBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 413 of file ARMBaseInstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch().
Definition at line 291 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), llvm::Function::getCallingConv(), PROPERTY_ISKERNEL_FUNCTION, PropertyAnnotationNames, and llvm::CallingConv::PTX_Kernel.
Referenced by llvm::NVPTXTargetLowering::LowerFormalArguments().
bool llvm::isKnownNonNull | ( | const Value * | V, |
const TargetLibraryInfo * | TLI = nullptr |
||
) |
isKnownNonNull - Return true if this pointer couldn't possibly be null by its definition. This returns true for allocas, non-extern-weak globals and byval arguments.
isKnownNonNull - Return true if we know that the specified value is never null.
Definition at line 2612 of file ValueTracking.cpp.
References llvm::ARM_PROC::A, and isOperatorNewLikeFn().
Referenced by computePointerICmp(), and isKnownNonZero().
bool llvm::isKnownNonZero | ( | Value * | V, |
const DataLayout * | TD = nullptr , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
isKnownNonZero - Return true if the given value is known to be non-zero when defined. For vectors return true if every element is known to be non-zero when defined. Supports values with integer or pointer type and vectors of integers.
Definition at line 137 of file ValueTracking.cpp.
References safeCxtI().
Referenced by computeKnownBitsMul(), isGEPKnownNonNull(), isKnownNonZero(), isSafeToSpeculativelyExecute(), and SimplifyICmpInst().
bool llvm::isKnownToBeAPowerOfTwo | ( | Value * | V, |
bool | OrZero = false , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
isKnownToBeAPowerOfTwo - Return true if the given value is known to have exactly one bit set when defined. For vectors return true if every element is known to be a power of two when defined. Supports values with integer or pointer type and vectors of integers. If 'OrZero' is set then returns true if the given value is either a power of two or zero.
Definition at line 126 of file ValueTracking.cpp.
References safeCxtI().
Referenced by computeKnownBitsFromAssume(), llvm::InstCombiner::FoldOrOfICmps(), isKnownNonZero(), isKnownToBeAPowerOfTwo(), SimplifyAndInst(), simplifyValueKnownNonZero(), llvm::InstCombiner::visitICmpInst(), and llvm::InstCombiner::visitURem().
static bool llvm::isLeaMem | ( | const MachineInstr * | MI, |
unsigned | Op | ||
) | [inline, static] |
Definition at line 122 of file X86InstrInfo.h.
References llvm::X86::AddrBaseReg, llvm::X86::AddrDisp, llvm::X86::AddrIndexReg, llvm::X86::AddrScaleAmt, llvm::X86::AddrSegmentReg, llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isCPI(), llvm::MachineOperand::isFI(), llvm::MachineOperand::isGlobal(), llvm::MachineOperand::isImm(), llvm::MachineOperand::isJTI(), llvm::MachineOperand::isReg(), and isScale().
Referenced by isMem().
bool llvm::isMallocLikeFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that allocates uninitialized memory (such as malloc).
Definition at line 168 of file MemoryBuiltins.cpp.
References getAllocationData(), and MallocLike.
Referenced by extractMallocCall(), getMallocArraySize(), getMallocType(), and llvm::MemoryDependenceAnalysis::getPointerDependencyFrom().
bool llvm::isManaged | ( | const llvm::Value & | val | ) |
Definition at line 228 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_MANAGED, and PropertyAnnotationNames.
bool llvm::isMask_32 | ( | uint32_t | Value | ) | [inline] |
isMask_32 - This function returns true if the argument is a sequence of ones starting at the least significant bit with the remainder zero (32 bit version). Ex. isMask_32(0x0000FFFFU) == true.
Definition at line 337 of file MathExtras.h.
Referenced by isImmMskBitp(), and isShiftedMask_32().
bool llvm::isMask_64 | ( | uint64_t | Value | ) | [inline] |
isMask_64 - This function returns true if the argument is a sequence of ones starting at the least significant bit with the remainder zero (64 bit version).
Definition at line 344 of file MathExtras.h.
Referenced by llvm::AArch64TargetLowering::isDesirableToCommuteWithShift(), isSeveralBitsExtractOpFromShr(), isShiftedMask_64(), and PerformAndCombine().
static bool llvm::isMem | ( | const MachineInstr * | MI, |
unsigned | Op | ||
) | [inline, static] |
Definition at line 134 of file X86InstrInfo.h.
References llvm::X86::AddrNumOperands, llvm::X86::AddrSegmentReg, llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isFI(), isLeaMem(), and llvm::MachineOperand::isReg().
Referenced by llvm::X86FrameLowering::emitEpilogue(), and printMemReference().
Definition at line 351 of file NVPTXUtilities.cpp.
Referenced by skipPointerTransfer().
int llvm::IsNAN | ( | float | f | ) |
int llvm::IsNAN | ( | double | d | ) |
bool llvm::isNoAliasArgument | ( | const Value * | V | ) |
isNoAliasArgument - Return true if this is an argument with the noalias attribute.
Definition at line 525 of file AliasAnalysis.cpp.
References llvm::ARM_PROC::A.
Referenced by isIdentifiedFunctionLocal().
bool llvm::isNoAliasCall | ( | const Value * | V | ) |
isNoAliasCall - Return true if this pointer is returned by a noalias function.
Definition at line 516 of file AliasAnalysis.cpp.
References llvm::Attribute::NoAlias, and llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::paramHasAttr().
Referenced by isIdentifiedFunctionLocal(), isIdentifiedObject(), isNonEscapingLocalObject(), and PointerMayBeCaptured().
bool llvm::isNoAliasFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a function that returns a NoAlias pointer (including malloc/calloc/realloc/strdup-like functions).
Definition at line 158 of file MemoryBuiltins.cpp.
References hasNoAliasAttr(), and isAllocationFn().
Referenced by llvm::MemoryDependenceAnalysis::getPointerDependencyFrom().
bool llvm::isOperatorNewLikeFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that allocates memory and never returns null (such as operator new).
Definition at line 196 of file MemoryBuiltins.cpp.
References getAllocationData(), and OpNewLike.
Referenced by isKnownNonNull().
bool llvm::isParamLoad | ( | const MachineInstr * | MI | ) |
Definition at line 21 of file NVPTXutil.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isImm(), and llvm::NVPTX::PTXLdStInstCode::PARAM.
static bool llvm::isPopOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 423 of file ARMBaseInstrInfo.h.
Referenced by isCSRestore(), and tryFoldSPUpdateIntoPushPop().
bool llvm::isPotentiallyReachable | ( | const Instruction * | From, |
const Instruction * | To, | ||
const DominatorTree * | DT = nullptr , |
||
const LoopInfo * | LI = nullptr |
||
) |
Determine whether instruction 'To' is reachable from 'From', returning true if uncertain.
Determine whether there is a path from From to To within a single function. Returns false only if we can prove that once 'From' has been executed then 'To' can not be executed. Conservatively returns true.
This function is linear with respect to the number of blocks in the CFG, walking down successors from From to reach To, with a fixed threshold. Using DT or LI allows us to answer more quickly. LI reduces the cost of an entire loop of any number of blocsk to be the same as the cost of a single block. DT reduces the cost by allowing the search to terminate when we find a block that dominates the block containing 'To'. DT is most useful on branchy code but not loops, and LI is most useful on code with loops but does not help on branchy code outside loops.
Definition at line 186 of file CFG.cpp.
References llvm::BasicBlock::end(), llvm::Function::getEntryBlock(), llvm::LoopInfo::getLoopFor(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), I, isPotentiallyReachableInner(), succ_begin(), and succ_end().
bool llvm::isPotentiallyReachable | ( | const BasicBlock * | From, |
const BasicBlock * | To, | ||
const DominatorTree * | DT = nullptr , |
||
const LoopInfo * | LI = nullptr |
||
) |
Determine whether block 'To' is reachable from 'From', returning true if uncertain.
Determine whether there is a path from From to To within a single function. Returns false only if we can prove that once 'From' has been reached then 'To' can not be executed. Conservatively returns true.
Definition at line 174 of file CFG.cpp.
References llvm::BasicBlock::getParent(), isPotentiallyReachableInner(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
bool llvm::isPowerOf2_32 | ( | uint32_t | Value | ) | [inline] |
isPowerOf2_32 - This function returns true if the argument is a power of two > 0. Ex. isPowerOf2_32(0x00100000U) == true (32 bit edition.)
Definition at line 363 of file MathExtras.h.
Referenced by llvm::AttrBuilder::addAlignmentAttr(), llvm::AttrBuilder::addStackAlignmentAttr(), canLowerByDroppingEvenElements(), CollectBSwapParts(), decodeLLVMAttributesForBitcode(), llvm::PPCFrameLowering::emitPrologue(), FindMemType(), GetLoadValueForLoad(), llvm::TargetLoweringBase::getTypeConversion(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), getVectorTypeBreakdownMVT(), llvm::Attribute::getWithAlignment(), llvm::Attribute::getWithStackAlignment(), isBytewiseValue(), llvm::ARMTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isLegalT2ScaledAddressingMode(), llvm::IntegerType::isPowerOf2ByteWidth(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), LowerExtendedLoad(), matchPairwiseReduction(), matchVectorSplittingReduction(), PerformMULCombine(), PerformSTORECombine(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(), llvm::InstCombiner::visitLShr(), and llvm::MachObjectWriter::WriteSection().
bool llvm::isPowerOf2_64 | ( | uint64_t | Value | ) | [inline] |
isPowerOf2_64 - This function returns true if the argument is a power of two > 0 (64 bit edition.)
Definition at line 369 of file MathExtras.h.
Referenced by alignAddr(), llvm::FastISel::fastEmit_ri_(), genConstMult(), getNewAlignmentDiff(), isConstVecPow2(), llvm::AArch64TargetLowering::isLegalAddressingMode(), llvm::APInt::isPowerOf2(), isRepeatedByteSequence(), matchRotateSub(), PerformMulCombine(), and llvm::FastISel::selectBinaryOp().
static bool llvm::isPushOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 429 of file ARMBaseInstrInfo.h.
Referenced by tryFoldSPUpdateIntoPushPop().
isRawBitcode - Return true if the given bytes are the magic bytes for raw LLVM IR bitcode (without a wrapper).
Definition at line 78 of file ReaderWriter.h.
Referenced by isBitcode().
bool llvm::isReallocLikeFn | ( | const Value * | V, |
const TargetLibraryInfo * | TLI, | ||
bool | LookThroughBitCast = false |
||
) |
Tests if a value is a call or invoke to a library function that reallocates memory (such as realloc).
Definition at line 189 of file MemoryBuiltins.cpp.
References getAllocationData(), and ReallocLike.
It is safe to destroy a constant iff it is only used by constants itself. Note that constants cannot be cyclic, so this test is pretty easy to implement recursively.
Definition at line 34 of file GlobalStatus.cpp.
References llvm::Value::users().
Referenced by analyzeGlobalAux(), CleanupConstantGlobalUsers(), CleanupPointerRootUsers(), and isSafeSROAElementUse().
bool llvm::isSafeToExpand | ( | const SCEV * | S, |
ScalarEvolution & | SE | ||
) |
Return true if the given expression is safe to expand in the sense that all materialized values are safe to speculate.
Definition at line 1855 of file ScalarEvolutionExpander.cpp.
References visitAll().
bool llvm::isSafeToLoadUnconditionally | ( | Value * | V, |
Instruction * | ScanFrom, | ||
unsigned | Align, | ||
const DataLayout * | TD = nullptr |
||
) |
isSafeToLoadUnconditionally - Return true if we know that executing a load from this value cannot trap. If it is not obviously safe to load from the specified pointer, we do a quick local scan of the basic block containing ScanFrom, to determine if the address is already accessed.
Definition at line 56 of file Loads.cpp.
References Align(), AreEquivalentAddressValues(), llvm::BasicBlock::begin(), llvm::SequentialType::getElementType(), llvm::Instruction::getParent(), GetPointerBaseWithConstantOffset(), llvm::DataLayout::getPrefTypeAlignment(), llvm::Value::getType(), llvm::DataLayout::getTypeStoreSize(), llvm::Type::isSized(), and LI.
Referenced by isSafePHIToSpeculate(), isSafeSelectToSpeculate(), and llvm::InstCombiner::visitLoadInst().
bool llvm::isSafeToSpeculativelyExecute | ( | const Value * | V, |
const DataLayout * | TD = nullptr |
||
) |
isSafeToSpeculativelyExecute - Return true if the instruction does not have any effects besides calculating the result and does not have undefined behavior.
This method never returns true for an instruction that returns true for mayHaveSideEffects; however, this method also does some other checks in addition. It checks for undefined behavior, like dividing by zero or loading from an invalid pointer (but not for undefined results, like a shift with a shift amount larger than the width of the result). It checks for malloc and alloca because speculatively executing them might cause a memory leak. It also returns false for instructions related to control flow, specifically terminators and PHI nodes.
This method only looks at the instruction itself and its operands, so if this method returns true, it is safe to move the instruction as long as the correct dominance relationships for the operands and users hold. However, this method can return true for instructions that read memory; for such instructions, moving them may change the resulting value.
Definition at line 2510 of file ValueTracking.cpp.
References Alloca, llvm::CallingConv::C, Call, computeKnownBits(), dyn_cast(), llvm::LibFunc::fabs, getBitWidth(), llvm::User::getNumOperands(), llvm::Operator::getOpcode(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::LoadInst::getPointerOperand(), llvm::Value::getType(), llvm::Function::hasFnAttribute(), llvm::Value::isDereferenceablePointer(), isKnownNonZero(), llvm::LoadInst::isUnordered(), LandingPad, LI, llvm::SPII::Load, llvm::TargetOpcode::PHI, llvm::MipsISD::Ret, llvm::Attribute::SanitizeThread, llvm::LibFunc::sqrt, llvm::SPII::Store, and VAArg.
Referenced by llvm::IVUsers::AddUsersImpl(), CanPHITrans(), completeEphemeralValues(), ComputeSpeculationCost(), DominatesMergePoint(), FoldBranchToCommonDest(), HoistThenElseCodeToIf(), InstructionWillNotHaveChain(), isEphemeralValueOf(), isInTailCallPosition(), isValidAssumeForContext(), llvm::Loop::makeLoopInvariant(), shouldSpeculateInstrs(), and SpeculativelyExecuteBB().
bool llvm::isSampler | ( | const llvm::Value & | val | ) |
Definition at line 155 of file NVPTXUtilities.cpp.
References findAllNVVMAnnotation(), findOneNVVMAnnotation(), llvm::GlobalValue::getParent(), PROPERTY_ISSAMPLER, and PropertyAnnotationNames.
Referenced by INITIALIZE_PASS().
static bool llvm::isScale | ( | const MachineOperand & | MO | ) | [inline, static] |
Definition at line 116 of file X86InstrInfo.h.
References llvm::MachineOperand::getImm(), and llvm::MachineOperand::isImm().
Referenced by isLeaMem().
bool llvm::isShiftedInt | ( | int64_t | x | ) | [inline] |
isShiftedInt<N,S> - Checks if a signed integer is an N bit number shifted left by S.
Definition at line 292 of file MathExtras.h.
bool llvm::isShiftedMask_32 | ( | uint32_t | Value | ) | [inline] |
isShiftedMask_32 - This function returns true if the argument contains a sequence of ones with the remainder zero (32 bit version.) Ex. isShiftedMask_32(0x0000FF00U) == true.
Definition at line 351 of file MathExtras.h.
References isMask_32().
bool llvm::isShiftedMask_64 | ( | uint64_t | Value | ) | [inline] |
isShiftedMask_64 - This function returns true if the argument contains a sequence of ones with the remainder zero (64 bit version.)
Definition at line 357 of file MathExtras.h.
References isMask_64().
Referenced by isBitfieldPositioningOp(), and isShiftedMask().
bool llvm::isShiftedUInt | ( | uint64_t | x | ) | [inline] |
isShiftedUInt<N,S> - Checks if a unsigned integer is an N bit number shifted left by S.
Definition at line 318 of file MathExtras.h.
bool llvm::isSurface | ( | const llvm::Value & | val | ) |
Definition at line 142 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_ISSURFACE, and PropertyAnnotationNames.
Referenced by INITIALIZE_PASS().
bool llvm::isTexture | ( | const llvm::Value & | val | ) |
Definition at line 129 of file NVPTXUtilities.cpp.
References findOneNVVMAnnotation(), PROPERTY_ISTEXTURE, and PropertyAnnotationNames.
Referenced by INITIALIZE_PASS().
static bool llvm::isTriviallyVectorizable | ( | Intrinsic::ID | ID | ) | [inline, static] |
Identify if the intrinsic is trivially vectorizable.
This method returns true if the intrinsic's argument types are all scalars for the scalar form of the intrinsic and all vectors for the vector form of the intrinsic.
Definition at line 28 of file VectorUtils.h.
References llvm::LibFunc::ceil, llvm::LibFunc::copysign, llvm::LibFunc::cos, llvm::LibFunc::exp, llvm::LibFunc::exp2, llvm::LibFunc::fabs, llvm::LibFunc::floor, llvm::LibFunc::log, llvm::LibFunc::log10, llvm::LibFunc::log2, llvm::LibFunc::nearbyint, llvm::LibFunc::pow, llvm::LibFunc::rint, llvm::LibFunc::round, llvm::LibFunc::sin, llvm::LibFunc::sqrt, and llvm::LibFunc::trunc.
Referenced by getIntrinsicIDForCall().
bool llvm::isUInt | ( | uint64_t | x | ) | [inline] |
isUInt - Checks if an unsigned integer fits into the given bit width.
Definition at line 298 of file MathExtras.h.
References N.
bool llvm::isUInt< 16 > | ( | uint64_t | x | ) | [inline] |
Definition at line 307 of file MathExtras.h.
Referenced by llvm::SIInstrInfo::canFoldOffset(), llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc(), llvm::PPCTargetLowering::isLegalAddImmediate(), llvm::SITargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalICmpImmediate(), and shouldSwapCmpOperands().
bool llvm::isUInt< 32 > | ( | uint64_t | x | ) | [inline] |
Definition at line 311 of file MathExtras.h.
Referenced by llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc(), and foldImmediates().
bool llvm::isUInt< 8 > | ( | uint64_t | x | ) | [inline] |
Definition at line 303 of file MathExtras.h.
Referenced by llvm::SIInstrInfo::canFoldOffset(), llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc(), llvm::SystemZInstrInfo::getCompareAndBranch(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::SystemZTargetLowering::LowerAsmOperandForConstraint(), Mips16WhichOp8uOr16simm(), and llvm::SIInstrInfo::splitSMRD().
bool llvm::isUIntN | ( | unsigned | N, |
uint64_t | x | ||
) | [inline] |
isUIntN - Checks if an unsigned integer fits into the given (dynamic) bit width.
Definition at line 324 of file MathExtras.h.
Referenced by llvm::MCStreamer::EmitIntValue(), llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc(), isExtendedBUILD_VECTOR(), and llvm::SelectionDAGBuilder::visitBitTestHeader().
static bool llvm::isUncondBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 237 of file AArch64InstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AArch64InstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::ARMBaseInstrInfo::RemoveBranch(), and llvm::AArch64InstrInfo::RemoveBranch().
bool llvm::isV8EligibleForIT | ( | InstrType * | Instr | ) | [inline] |
Definition at line 25 of file ARMFeatures.h.
References IsCPSRDead().
Referenced by llvm::ARMBaseInstrInfo::isPredicable().
bool llvm::isValidAssumeForContext | ( | const Instruction * | I, |
const Instruction * | CxtI, | ||
const DataLayout * | DL = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
Return true if it is valid to use the assumptions provided by an assume intrinsic, I, at the point in the control-flow identified by the context instruction, CxtI.
Definition at line 441 of file ValueTracking.cpp.
Referenced by computeKnownBitsFromAssume().
static bool llvm::isValidMCLOHType | ( | unsigned | Kind | ) | [inline, static] |
Definition at line 48 of file MCLinkerOptimizationHint.h.
References MCLOH_AdrpAdrp, and MCLOH_AdrpLdrGot.
Referenced by llvm::MCLOHDirective::MCLOHDirective(), and llvm::AArch64FunctionInfo::MILOHDirective::MILOHDirective().
static std::string llvm::itostr | ( | int64_t | X | ) | [inline, static] |
Definition at line 109 of file StringExtras.h.
References utostr().
Referenced by llvm::MCWinCOFFStreamer::EmitCOFFSymbolStorageClass(), llvm::MCWinCOFFStreamer::EmitCOFFSymbolType(), llvm::IntInit::getAsString(), llvm::DOTGraphTraits< SelectionDAG * >::getEdgeSourceLabel(), and llvm::AArch64InstPrinter::printTypedVectorList().
static int llvm::jit_noop | ( | ) | [static] |
Definition at line 139 of file RTDyldMemoryManager.cpp.
Referenced by llvm::RTDyldMemoryManager::getSymbolAddress().
std::string llvm::join | ( | IteratorT | Begin, |
IteratorT | End, | ||
StringRef | Separator | ||
) | [inline] |
Joins the strings in the range [Begin, End), adding Separator between the elements.
Definition at line 205 of file StringExtras.h.
References join_impl().
std::string llvm::join_impl | ( | IteratorT | Begin, |
IteratorT | End, | ||
StringRef | Separator, | ||
std::input_iterator_tag | |||
) | [inline] |
Definition at line 169 of file StringExtras.h.
Referenced by join().
std::string llvm::join_impl | ( | IteratorT | Begin, |
IteratorT | End, | ||
StringRef | Separator, | ||
std::forward_iterator_tag | |||
) | [inline] |
Definition at line 184 of file StringExtras.h.
References I, and llvm::StringRef::size().
void llvm::linkErlangGC | ( | ) |
Creates an erlang-compatible garbage collector.
Definition at line 44 of file ErlangGC.cpp.
void llvm::linkErlangGCPrinter | ( | ) |
Creates an erlang-compatible metadata printer.
Definition at line 48 of file ErlangGCPrinter.cpp.
void llvm::linkOcamlGC | ( | ) |
Creates an ocaml-compatible garbage collector.
FIXME: Collector instances are not useful on their own. These no longer serve any purpose except to link in the plugins.
Definition at line 32 of file OcamlGC.cpp.
void llvm::linkOcamlGCPrinter | ( | ) |
Creates an ocaml-compatible metadata printer.
Definition at line 46 of file OcamlGCPrinter.cpp.
void llvm::linkShadowStackGC | ( | ) |
Creates a shadow stack garbage collector. This collector requires no code generator support.
Definition at line 196 of file ShadowStackGC.cpp.
void llvm::lintFunction | ( | const Function & | f | ) |
lintFunction - Check a function for errors, printing messages on stderr.
f | The function to be checked |
Definition at line 709 of file Lint.cpp.
References llvm::GlobalValue::getParent(), and llvm::GlobalValue::isDeclaration().
void llvm::lintModule | ( | const Module & | M | ) |
void llvm::llvm_execute_on_thread | ( | void(*)(void *) | UserFn, |
void * | UserData, | ||
unsigned | RequestedStackSize = 0 |
||
) |
llvm_execute_on_thread - Execute the given UserFn
on a separate thread, passing it the provided UserData
.
This function does not guarantee that the code will actually be executed on a separate thread or honoring the requested stack size, but tries to do so where system support is available.
UserFn | - The callback to execute. |
UserData | - An argument to pass to the callback function. |
RequestedStackSize | - If non-zero, a requested size (in bytes) for the thread stack. |
Definition at line 44 of file Threading.cpp.
References ExecuteOnThread_Dispatch().
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
Returns true if LLVM is compiled with support for multi-threading, and false otherwise.
Definition at line 23 of file Threading.cpp.
Referenced by LLVMIsMultithreaded(), llvm::sys::SmartMutex< false >::lock(), llvm::sys::SmartRWMutex< true >::lock(), llvm::sys::SmartRWMutex< true >::lock_shared(), llvm::ManagedStatic< C >::operator*(), llvm::ManagedStatic< C >::operator->(), llvm::ManagedStaticBase::RegisterManagedStatic(), llvm::sys::SmartMutex< false >::try_lock(), llvm::sys::SmartMutex< false >::unlock(), llvm::sys::SmartRWMutex< true >::unlock(), and llvm::sys::SmartRWMutex< true >::unlock_shared().
void llvm::llvm_shutdown | ( | ) |
llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
Definition at line 85 of file ManagedStatic.cpp.
References llvm::ManagedStaticBase::destroy(), getManagedStaticMutex(), Lock, and StaticList.
Referenced by LLVMShutdown(), and llvm::llvm_shutdown_obj::~llvm_shutdown_obj().
void llvm::llvm_unreachable_internal | ( | const char * | msg = nullptr , |
const char * | file = nullptr , |
||
unsigned | line = 0 |
||
) |
This function calls abort(), and prints the optional message to stderr. Use the llvm_unreachable macro (that adds location info), instead of calling this function directly.
Definition at line 105 of file ErrorHandling.cpp.
References dbgs().
static unsigned llvm::LO10 | ( | int64_t | imm | ) | [inline, static] |
Definition at line 121 of file Sparc.h.
Referenced by LOX10(), and replaceFI().
uint32_t llvm::Lo_32 | ( | uint64_t | Value | ) | [inline] |
Lo_32 - This function returns the low 32 bits of a 64 bit value.
Definition at line 260 of file MathExtras.h.
static cl::opt<PluginLoader, false, cl::parser<std::string> > llvm::LoadOpt | ( | "load" | , |
cl::ZeroOrMore | , | ||
cl:: | value_desc"pluginfilename", | ||
cl:: | desc"Load the specified plugin" | ||
) | [static] |
unsigned llvm::Log2_32 | ( | uint32_t | Value | ) | [inline] |
Log2_32 - This function returns the floor log base 2 of the specified value, -1 if the value is zero. (32 bit edition.) Ex. Log2_32(32) == 5, Log2_32(1) == 0, Log2_32(0) == -1, Log2_32(6) == 2
Definition at line 452 of file MathExtras.h.
References countLeadingZeros().
Referenced by computeKnownBits(), llvm::SelectionDAG::computeKnownBits(), ConstantFoldBinaryInstruction(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::PPCFrameLowering::emitPrologue(), ExpandPowI(), getARMFixupKindMachOInfo(), getCopyFromParts(), getCopyToParts(), getGVAlignmentLog2(), llvm::DataLayout::getPreferredAlignmentLog(), llvm::DataLayout::getPreferredTypeAlignmentShift(), isImmMskBitp(), llvm::XCoreInstrInfo::loadImmediate(), matchPairwiseReduction(), PerformBTCombine(), PerformMULCombine(), llvm::AArch64InstPrinter::printMemExtend(), llvm::AttributeSetImpl::Raw(), llvm::GlobalObject::setAlignment(), llvm::AllocaInst::setAlignment(), llvm::LoadInst::setAlignment(), llvm::StoreInst::setAlignment(), llvm::ISD::ArgFlagsTy::setByValAlign(), llvm::ISD::ArgFlagsTy::setOrigAlign(), llvm::TargetLowering::SimplifySetCC(), llvm::InstCombiner::visitLShr(), WriteInstruction(), WriteModuleInfo(), llvm::MachObjectWriter::WriteNlist(), and llvm::MachObjectWriter::WriteSection().
unsigned llvm::Log2_32_Ceil | ( | uint32_t | Value | ) | [inline] |
Log2_32_Ceil - This function returns the ceil log base 2 of the specified value, 32 if the value is zero. (32 bit edition). Ex. Log2_32_Ceil(32) == 5, Log2_32_Ceil(1) == 0, Log2_32_Ceil(6) == 3
Definition at line 465 of file MathExtras.h.
References countLeadingZeros().
Referenced by llvm::SelectionDAG::getNode(), llvm::MVT::getPow2VectorType(), llvm::EVT::getPow2VectorType(), llvm::EVT::getRoundIntegerType(), LowerScalarImmediateShift(), llvm::DenseMap< void *, std::unique_ptr< PassConceptT > >::shrink_and_clear(), llvm::SmallDenseMap< SDValue, SDValue, 8 >::shrink_and_clear(), llvm::TargetLowering::SimplifySetCC(), WriteBlockInfo(), WriteConstants(), WriteModuleInfo(), and WriteTypeTable().
unsigned llvm::Log2_64 | ( | uint64_t | Value | ) | [inline] |
Log2_64 - This function returns the floor log base 2 of the specified value, -1 if the value is zero. (64 bit edition.)
Definition at line 458 of file MathExtras.h.
References countLeadingZeros().
Referenced by llvm::FastISel::fastEmit_ri_(), genConstMult(), isConstVecPow2(), llvm::AArch64TargetLowering::isLegalAddressingMode(), matchRotateSub(), PerformMulCombine(), PerformVCVTCombine(), PerformVDIVCombine(), and llvm::FastISel::selectBinaryOp().
unsigned llvm::Log2_64_Ceil | ( | uint64_t | Value | ) | [inline] |
Log2_64_Ceil - This function returns the ceil log base 2 of the specified value, 64 if the value is zero. (64 bit edition.)
Definition at line 471 of file MathExtras.h.
References countLeadingZeros().
Referenced by genConstMult(), and llvm::ArrayRecycler< T, Align >::Capacity::get().
void llvm::LowerARMMachineInstrToMCInst | ( | const MachineInstr * | MI, |
MCInst & | OutMI, | ||
ARMAsmPrinter & | AP | ||
) |
Definition at line 118 of file ARMMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::ARMAsmPrinter::lowerOperand(), and llvm::MCInst::setOpcode().
Referenced by llvm::ARMAsmPrinter::EmitInstruction().
bool llvm::LowerDbgDeclare | ( | Function & | F | ) |
LowerDbgDeclare - Lowers llvm.dbg.declare intrinsics into appropriate set of llvm.dbg.value intrinsics.
Definition at line 1048 of file Local.cpp.
References ConvertDebugDeclareToDebugValue(), llvm::Instruction::eraseFromParent(), llvm::DbgDeclareInst::getAddress(), llvm::Instruction::getDebugLoc(), llvm::GlobalValue::getParent(), llvm::DbgDeclareInst::getVariable(), I, isArray(), LI, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and llvm::Value::users().
Referenced by llvm::InstCombiner::runOnFunction().
void llvm::LowerPPCMachineInstrToMCInst | ( | const MachineInstr * | MI, |
MCInst & | OutMI, | ||
AsmPrinter & | AP, | ||
bool | isDarwin | ||
) |
Definition at line 173 of file PPCMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::MCSymbolRefExpr::Create(), llvm::MCOperand::CreateExpr(), llvm::MCOperand::CreateImm(), llvm::MCOperand::CreateReg(), llvm::MachineInstr::dump(), llvm::MachineOperand::getBlockAddress(), llvm::AsmPrinter::GetBlockAddressSymbol(), llvm::AsmPrinter::GetCPISymbol(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::AsmPrinter::GetJTISymbol(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::MachineBasicBlock::getSymbol(), GetSymbolFromOperand(), GetSymbolRef(), llvm::MachineOperand::getType(), llvm_unreachable, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, llvm::MachineOperand::MO_RegisterMask, llvm::AsmPrinter::OutContext, and llvm::MCInst::setOpcode().
void llvm::LowerSparcMachineInstrToMCInst | ( | const MachineInstr * | MI, |
MCInst & | OutMI, | ||
AsmPrinter & | AP | ||
) |
Definition at line 95 of file SparcMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MCOperand::isValid(), LowerOperand(), and llvm::MCInst::setOpcode().
static unsigned llvm::LOX10 | ( | int64_t | imm | ) | [inline, static] |
uint64_t llvm::Make_64 | ( | uint32_t | High, |
uint32_t | Low | ||
) | [inline] |
Make_64 - This functions makes a 64-bit integer from a high / low pair of 32-bit integers.
Definition at line 266 of file MathExtras.h.
std::error_code llvm::make_error_code | ( | instrprof_error | E | ) | [inline] |
Definition at line 40 of file InstrProf.h.
References instrprof_category().
std::error_code llvm::make_error_code | ( | errc | E | ) | [inline] |
std::error_code llvm::make_error_code | ( | BitcodeError | E | ) | [inline] |
Definition at line 166 of file ReaderWriter.h.
References BitcodeErrorCategory().
Referenced by llvm::FileOutputBuffer::create(), llvm::BitcodeReader::Error(), llvm::ErrorOr< T >::ErrorOr(), llvm::coverage::CounterMappingContext::evaluate(), getOpenFileImpl(), llvm::LockFileManager::LockFileManager(), and llvm::yaml::Input::setCurrentDocument().
iterator_range<T> llvm::make_range | ( | T | x, |
T | y | ||
) |
Convenience function for iterating over sub-ranges.
This provides a bit of syntactic sugar to make using sub-ranges in for loops a bit easier. Analogous to std::make_pair().
Definition at line 48 of file iterator_range.h.
Referenced by llvm::BlockFrequencyInfoImplBase::analyzeIrreducible(), llvm::OnDiskIterableChainedHashTable< Info >::data(), llvm::object::ELFFile< ELFT >::dynamic_table(), findIrreducibleHeaders(), llvm::OnDiskIterableChainedHashTable< Info >::keys(), llvm::BlockFrequencyInfoImplBase::LoopData::members(), llvm::SCEVNAryExpr::operands(), llvm::object::ELFFile< ELFT >::sections(), llvm::MCAssembler::symbol_size(), and llvm::MCAssembler::symbols().
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | ) |
Definition at line 421 of file STLExtras.h.
References T.
Referenced by llvm::RuntimeDyldELF::createObjectImage().
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1 | ) |
Definition at line 427 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2 | ||
) |
Definition at line 433 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3 | ||
) |
Definition at line 440 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4 | ||
) |
Definition at line 448 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5 | ||
) |
Definition at line 456 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5, | ||
Arg6 && | arg6 | ||
) |
Definition at line 466 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5, | ||
Arg6 && | arg6, | ||
Arg7 && | arg7 | ||
) |
Definition at line 477 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5, | ||
Arg6 && | arg6, | ||
Arg7 && | arg7, | ||
Arg8 && | arg8 | ||
) |
Definition at line 489 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5, | ||
Arg6 && | arg6, | ||
Arg7 && | arg7, | ||
Arg8 && | arg8, | ||
Arg9 && | arg9 | ||
) |
Definition at line 501 of file STLExtras.h.
References T.
std::enable_if<!std::is_array<T>::value, std::unique_ptr<T> >::type llvm::make_unique | ( | Arg1 && | arg1, |
Arg2 && | arg2, | ||
Arg3 && | arg3, | ||
Arg4 && | arg4, | ||
Arg5 && | arg5, | ||
Arg6 && | arg6, | ||
Arg7 && | arg7, | ||
Arg8 && | arg8, | ||
Arg9 && | arg9, | ||
Arg10 && | arg10 | ||
) |
Definition at line 514 of file STLExtras.h.
References T.
std::enable_if<std::is_array<T>::value &&std::extent<T>::value == 0, std::unique_ptr<T> >::type llvm::make_unique | ( | size_t | n | ) |
Definition at line 527 of file STLExtras.h.
std::vector<T> llvm::make_vector | ( | T | A, |
... | |||
) | [inline] |
make_vector - Helper function which is useful for building temporary vectors to pass into type construction of CallInst ctors. This turns a null terminated list of pointers (or other value types) into a real live vector.
Definition at line 70 of file NVPTXUtilities.h.
References T.
ArrayRef<T> llvm::makeArrayRef | ( | const T & | OneElt | ) |
Construct an ArrayRef from a single element.
Definition at line 345 of file ArrayRef.h.
Referenced by llvm::APInt::APInt(), appendToGlobalArray(), BuildSubAggregate(), CombineBaseUpdate(), CombineVLDDUP(), llvm::APFloat::convertFromZeroExtendedInteger(), createCast(), DecodeFixedType(), llvm::Instruction::dropUnknownMetadata(), llvm::StringRef::edit_distance(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARM::WinEH::ExceptionDataRecord::EpilogueScopes(), ExtractSubVector(), llvm::MD5::final(), FindInsertedValue(), GenerateTBL(), get64BitArgumentGPRs(), get64BitArgumentXMMs(), getBuildVectorSplat(), llvm::ConstantExpr::getGetElementPtr(), llvm::ShuffleVectorSDNode::getMask(), llvm::MachineTraceMetrics::getProcResourceCycles(), llvm::MachineTraceMetrics::Ensemble::getProcResourceDepths(), llvm::MachineTraceMetrics::Ensemble::getProcResourceHeights(), llvm::TargetRegisterClass::getRawAllocationOrder(), llvm::object::ELFFile< ELFT >::getSectionContents(), llvm::object::MachOObjectFile::getSectionRawFinalSegmentName(), llvm::object::MachOObjectFile::getSectionRawName(), llvm::ConstantDataArray::getString(), llvm::object::COFFObjectFile::getSymbolAuxData(), getTypePartition(), llvm::MipsTargetLowering::MipsCC::intArgRegs(), LLVMBuildCall(), LLVMBuildInvoke(), LLVMConstExtractValue(), LLVMConstInsertValue(), LLVMConstIntOfArbitraryPrecision(), LLVMConstNamedStruct(), LLVMConstStructInContext(), LLVMConstVector(), LLVMMDNodeInContext(), llvm::SystemZTargetLowering::LowerFormalArguments(), lowerMSASplatZExt(), llvm::SDNode::ops(), performANDCombine(), performNEONPostLDSTCombine(), performSRACombine(), PrepareCall(), llvm::SMDiagnostic::print(), llvm::AttributeSetNode::Profile(), llvm::AttributeSetImpl::Profile(), llvm::RawInstrProfReader< IntPtrT >::readNextRecord(), llvm::coverage::ObjectFileCoverageMappingReader::readNextRecord(), llvm::LiveRangeEdit::regs(), SymbolicallyEvaluateGEP(), llvm::APFloat::toString(), llvm::ARM::WinEH::ExceptionDataRecord::UnwindByteCode(), llvm::MD5::update(), llvm::InstCombiner::visitCallInst(), and llvm::InstCombiner::visitExtractValueInst().
ArrayRef<T> llvm::makeArrayRef | ( | const T * | data, |
size_t | length | ||
) |
Construct an ArrayRef from a pointer and length.
Definition at line 351 of file ArrayRef.h.
Construct an ArrayRef from a range.
Definition at line 357 of file ArrayRef.h.
References llvm::sys::path::begin(), and llvm::sys::path::end().
ArrayRef<T> llvm::makeArrayRef | ( | const SmallVectorImpl< T > & | Vec | ) |
Construct an ArrayRef from a SmallVector.
Definition at line 363 of file ArrayRef.h.
Construct an ArrayRef from a SmallVector.
Definition at line 369 of file ArrayRef.h.
ArrayRef<T> llvm::makeArrayRef | ( | const std::vector< T > & | Vec | ) |
Construct an ArrayRef from a std::vector.
Definition at line 375 of file ArrayRef.h.
ArrayRef<T> llvm::makeArrayRef | ( | const T(&) | Arr[N] | ) |
Construct an ArrayRef from a C array.
Definition at line 381 of file ArrayRef.h.
llvm::DenseMap< const llvm::Function *, llvm::DISubprogram > llvm::makeSubprogramMap | ( | const Module & | M | ) |
Definition at line 1573 of file DebugInfo.cpp.
References F(), llvm::DITypedArray< T >::getElement(), llvm::DISubprogram::getFunction(), llvm::Module::getNamedMetadata(), llvm::DITypedArray< T >::getNumElements(), llvm::DICompileUnit::getSubprograms(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::insert(), N, and llvm::NamedMDNode::operands().
Referenced by llvm::DwarfDebug::beginModule().
mapped_iterator<ItTy, FuncTy> llvm::map_iterator | ( | const ItTy & | I, |
FuncTy | F | ||
) | [inline] |
Definition at line 265 of file STLExtras.h.
Referenced by llvm::GraphTraits< CallGraphNode * >::child_begin(), llvm::GraphTraits< CallGraphNode * >::child_end(), llvm::GraphTraits< CallGraph * >::nodes_begin(), and llvm::GraphTraits< CallGraph * >::nodes_end().
Value * llvm::MapValue | ( | const Value * | V, |
ValueToValueMapTy & | VM, | ||
RemapFlags | Flags = RF_None , |
||
ValueMapTypeRemapper * | TypeMapper = nullptr , |
||
ValueMaterializer * | Materializer = nullptr |
||
) |
Definition at line 27 of file ValueMapper.cpp.
References llvm::CallingConv::C, llvm::WinEH::CE, llvm::MDNode::deleteTemporary(), llvm::NVPTXISD::Dummy, dyn_cast(), llvm::ValueMap< KeyT, ValueT, Config >::end(), F(), llvm::ValueMap< KeyT, ValueT, Config >::find(), llvm::InlineAsm::get(), llvm::MDNode::get(), llvm::ConstantAggregateZero::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::ConstantPointerNull::get(), llvm::BlockAddress::get(), llvm::UndefValue::get(), llvm::Value::getContext(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::MDNode::getTemporary(), llvm::Value::getType(), I, if(), llvm::ValueMaterializer::materializeValueFor(), None, OP, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::ValueMapTypeRemapper::remapType(), llvm::Value::replaceAllUsesWith(), llvm::SmallVectorImpl< T >::reserve(), RF_IgnoreMissingEntries, RF_NoModuleLevelChanges, and llvm::ValueMapIterator< DenseMapT, KeyT >::ValueTypeProxy::second.
Referenced by CloneAndPruneFunctionInto(), CloneDebugInfoMetadata(), CloneModule(), MapValue(), and RemapInstruction().
MDNode* llvm::MapValue | ( | const MDNode * | V, |
ValueToValueMapTy & | VM, | ||
RemapFlags | Flags = RF_None , |
||
ValueMapTypeRemapper * | TypeMapper = nullptr , |
||
ValueMaterializer * | Materializer = nullptr |
||
) | [inline] |
MapValue - provide versions that preserve type safety for MDNode and Constants.
Definition at line 81 of file ValueMapper.h.
References MapValue().
Constant* llvm::MapValue | ( | const Constant * | V, |
ValueToValueMapTy & | VM, | ||
RemapFlags | Flags = RF_None , |
||
ValueMapTypeRemapper * | TypeMapper = nullptr , |
||
ValueMaterializer * | Materializer = nullptr |
||
) | [inline] |
Definition at line 88 of file ValueMapper.h.
References MapValue().
std::error_code llvm::mapWindowsError | ( | unsigned | EV | ) |
bool llvm::MaskedValueIsZero | ( | Value * | V, |
const APInt & | Mask, | ||
const DataLayout * | TD = nullptr , |
||
unsigned | Depth = 0 , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr , |
||
const DominatorTree * | DT = nullptr |
||
) |
MaskedValueIsZero - Return true if 'V & Mask' is known to be zero. We use this predicate to simplify operations downstream. Mask is known to be zero for bits that V cannot have.
This function is defined on values with integer type, values with pointer type (but only if TD is non-null), and vectors of integers. In the case where V is a vector, the mask, known zero, and known one values are the same width as the vector element, and the bit is set only if it is true for all of the elements in the vector.
Definition at line 147 of file ValueTracking.cpp.
References safeCxtI().
Referenced by CanEvaluateShifted(), GetLinearExpression(), llvm::InstCombiner::MaskedValueIsZero(), SimplifyOrInst(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitLShr(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitShl(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitXor(), and llvm::InstCombiner::visitZExt().
static StringRef llvm::MCLOHDirectiveName | ( | ) | [inline, static] |
Definition at line 44 of file MCLinkerOptimizationHint.h.
static StringRef llvm::MCLOHIdToName | ( | MCLOHType | Kind | ) | [inline, static] |
Definition at line 66 of file MCLinkerOptimizationHint.h.
References MCLOHCaseIdToName.
static int llvm::MCLOHIdToNbArgs | ( | MCLOHType | Kind | ) | [inline, static] |
Definition at line 81 of file MCLinkerOptimizationHint.h.
References MCLOH_AdrpAdd, MCLOH_AdrpAddLdr, MCLOH_AdrpAddStr, MCLOH_AdrpAdrp, MCLOH_AdrpLdr, MCLOH_AdrpLdrGot, MCLOH_AdrpLdrGotLdr, and MCLOH_AdrpLdrGotStr.
static int llvm::MCLOHNameToId | ( | StringRef | Name | ) | [inline, static] |
Definition at line 52 of file MCLinkerOptimizationHint.h.
References MCLOHCaseNameToId, and Name.
void llvm::MergeBasicBlockIntoOnlyPred | ( | BasicBlock * | DestBB, |
Pass * | P = nullptr |
||
) |
MergeBasicBlockIntoOnlyPred - BB is a block with one predecessor and its predecessor is known to have one successor (BB!). Eliminate the edge between them, moving the instructions in the predecessor into BB. This deletes the predecessor block.
MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its predecessor is known to have one successor (DestBB!). Eliminate the edge between them, moving the instructions in the predecessor into DestBB and deleting the predecessor block.
Definition at line 489 of file Local.cpp.
References llvm::BasicBlock::begin(), llvm::DominatorTreeBase< NodeT >::changeImmediateDominator(), llvm::BlockAddress::destroyConstant(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::eraseFromParent(), llvm::DominatorTreeBase< NodeT >::eraseNode(), llvm::ConstantInt::get(), llvm::BlockAddress::get(), llvm::UndefValue::get(), llvm::Pass::getAnalysisIfAvailable(), llvm::DomTreeNodeBase< NodeT >::getBlock(), llvm::Value::getContext(), llvm::Function::getEntryBlock(), llvm::DomTreeNodeBase< NodeT >::getIDom(), llvm::BasicBlock::getInstList(), llvm::Type::getInt32Ty(), llvm::ConstantExpr::getIntToPtr(), llvm::DominatorTreeBase< NodeT >::getNode(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), llvm::BasicBlock::hasAddressTaken(), llvm::BasicBlock::moveAfter(), llvm::Value::replaceAllUsesWith(), and llvm::iplist< NodeTy, Traits >::splice().
bool llvm::MergeBlockIntoPredecessor | ( | BasicBlock * | BB, |
Pass * | P = nullptr |
||
) |
MergeBlockIntoPredecessor - Attempts to merge a block into its predecessor, if possible. The return value indicates success or failure.
Definition at line 116 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), llvm::DominatorTreeBase< NodeT >::changeImmediateDominator(), llvm::BasicBlock::end(), llvm::BasicBlock::eraseFromParent(), llvm::DominatorTreeBase< NodeT >::eraseNode(), FoldSingleEntryPHINodes(), llvm::BasicBlock::front(), llvm::Pass::getAnalysisIfAvailable(), llvm::BasicBlock::getInstList(), llvm::DominatorTreeBase< NodeT >::getNode(), llvm::BasicBlock::getTerminator(), llvm::BasicBlock::getUniquePredecessor(), llvm::BasicBlock::hasAddressTaken(), llvm::Value::hasName(), LI, llvm::iplist< NodeTy, Traits >::pop_back(), llvm::Value::replaceAllUsesWith(), llvm::iplist< NodeTy, Traits >::splice(), succ_begin(), succ_end(), and llvm::Value::takeName().
uint64_t llvm::MinAlign | ( | uint64_t | A, |
uint64_t | B | ||
) | [inline] |
MinAlign - A and B are either alignments or offsets. Return the minimum alignment that may be assumed after adding the two together.
Definition at line 544 of file MathExtras.h.
Referenced by llvm::MachineFrameInfo::CreateFixedObject(), llvm::MachineFrameInfo::CreateFixedSpillStackObject(), expandf64Toi32(), ExpandUnalignedLoad(), ExpandUnalignedStore(), getMemcpyLoadsAndStores(), llvm::Hexagon_CCState::HandleByVal(), llvm::CCState::HandleByVal(), llvm::SelectionDAG::InferPtrAlignment(), PerformSTORECombine(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifySetCC(), and SRAGlobal().
std::enable_if< !std::is_constructible< T, V >::value, typename std::remove_reference< V >::type >::type & llvm::moveIfMoveConstructible | ( | V & | Val | ) |
uint64_t llvm::NextPowerOf2 | ( | uint64_t | A | ) | [inline] |
NextPowerOf2 - Returns the next power of two (in 64-bits) that is strictly greater than A. Returns zero on overflow.
Definition at line 574 of file MathExtras.h.
Referenced by combineWeightsByHashing(), llvm::DenseMap< void *, std::unique_ptr< PassConceptT > >::DenseMap(), llvm::AsmPrinter::doFinalization(), llvm::MemoryDependenceAnalysis::getLoadLoadClobberFullWidthSize(), GetLoadValueForLoad(), getShiftAmount(), llvm::TargetLoweringBase::getTypeConversion(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), getVectorTypeBreakdownMVT(), llvm::SmallVectorTemplateBase< T, isPodLike >::grow(), llvm::DenseMap< void *, std::unique_ptr< PassConceptT > >::grow(), llvm::SmallDenseMap< SDValue, SDValue, 8 >::grow(), operator new(), llvm::APFloat::roundToIntegral(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(), and llvm::SmallDenseMap< SDValue, SDValue, 8 >::SmallDenseMap().
static float llvm::normalizeSpillWeight | ( | float | UseDefFreq, |
unsigned | Size | ||
) | [inline, static] |
Normalize the spill weight of a live interval.
The spill weight of a live interval is computed as:
(sum(use freq) + sum(def freq)) / (K + size)
UseDefFreq | Expected number of executed use and def instructions per function call. Derived from block frequencies. |
Size | Size of live interval as returnexd by getSize() |
Definition at line 34 of file CalcSpillWeights.h.
References llvm::SlotIndex::InstrDist.
raw_ostream & llvm::nulls | ( | ) |
nulls() - This returns a reference to a raw_ostream which discards output.
nulls() - This returns a reference to a raw_ostream which simply discards output.
Definition at line 670 of file raw_ostream.cpp.
Referenced by llvm::MCStreamer::GetCommentOS(), llvm::X86Disassembler::X86GenericDisassembler::getInstruction(), LLVMDisasmInstruction(), llvm::MCDisassembler::tryAddingPcLoadReferenceComment(), and llvm::MCDisassembler::tryAddingSymbolicOperand().
static const char* llvm::NVPTXCondCodeToString | ( | NVPTXCC::CondCodes | CC | ) | [inline, static] |
Definition at line 44 of file NVPTX.h.
References llvm::NVPTXCC::EQ, llvm::NVPTXCC::GE, llvm::NVPTXCC::GT, llvm::NVPTXCC::LE, llvm_unreachable, llvm::NVPTXCC::LT, and llvm::NVPTXCC::NE.
void* llvm::object_creator | ( | ) |
object_creator - Helper method for ManagedStatic.
Definition at line 25 of file ManagedStatic.h.
References llvm::CallingConv::C.
uint64_t llvm::OffsetToAlignment | ( | uint64_t | Value, |
uint64_t | Align | ||
) | [inline] |
Returns the offset to the next integer (mod 2**64) that is greater than or equal to Value
and is a multiple of Align
. Align
must be non-zero.
Definition at line 607 of file MathExtras.h.
References RoundUpToAlignment().
Referenced by llvm::MCAssembler::computeFragmentSize(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), llvm::RuntimeDyldImpl::emitCommonSymbols(), llvm::MachObjectWriter::getPaddingSize(), llvm::MachObjectWriter::WriteLinkerOptionsLoadCommand(), and llvm::MachObjectWriter::WriteObject().
onlyUsedByLifetimeMarkers - Return true if the only users of this pointer are lifetime markers.
Definition at line 2498 of file ValueTracking.cpp.
References dyn_cast(), llvm::IntrinsicInst::getIntrinsicID(), and llvm::Value::users().
Referenced by isAllocaPromotable(), and tryToMakeAllocaBePromotable().
Definition at line 52 of file MCTargetOptions.h.
Definition at line 77 of file MachineLocation.h.
static bool llvm::operator!= | ( | PointerUnion< PT1, PT2 > | lhs, |
PointerUnion< PT1, PT2 > | rhs | ||
) | [static] |
Definition at line 193 of file PointerUnion.h.
References llvm::PointerUnion< PT1, PT2 >::getOpaqueValue().
bool llvm::operator!= | ( | const IntrusiveRefCntPtr< T > & | A, |
const IntrusiveRefCntPtr< U > & | B | ||
) | [inline] |
Definition at line 210 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
bool llvm::operator!= | ( | const IntrusiveRefCntPtr< T > & | A, |
U * | B | ||
) | [inline] |
Definition at line 224 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
bool llvm::operator!= | ( | T * | A, |
const IntrusiveRefCntPtr< U > & | B | ||
) | [inline] |
Definition at line 238 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
Definition at line 255 of file IntrusiveRefCntPtr.h.
Definition at line 260 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
Definition at line 260 of file IntrusiveRefCntPtr.h.
Definition at line 268 of file TargetOptions.h.
Definition at line 393 of file ArrayRef.h.
bool llvm::operator!= | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 524 of file StringRef.h.
SmallBitVector llvm::operator& | ( | const SmallBitVector & | LHS, |
const SmallBitVector & | RHS | ||
) | [inline] |
Definition at line 575 of file SmallBitVector.h.
SparseBitVector<ElementSize> llvm::operator& | ( | const SparseBitVector< ElementSize > & | LHS, |
const SparseBitVector< ElementSize > & | RHS | ||
) | [inline] |
Definition at line 862 of file SparseBitVector.h.
bool llvm::operator&= | ( | SparseBitVector< ElementSize > * | LHS, |
const SparseBitVector< ElementSize > & | RHS | ||
) | [inline] |
Definition at line 838 of file SparseBitVector.h.
bool llvm::operator&= | ( | SparseBitVector< ElementSize > & | LHS, |
const SparseBitVector< ElementSize > * | RHS | ||
) | [inline] |
Definition at line 844 of file SparseBitVector.h.
mapped_iterator<_Iterator, Func> llvm::operator+ | ( | typename mapped_iterator< _Iterator, Func >::difference_type | N, |
const mapped_iterator< _Iterator, Func > & | X | ||
) | [inline] |
Definition at line 255 of file STLExtras.h.
References llvm::mapped_iterator< RootIt, UnaryFunc >::getCurrent(), and llvm::mapped_iterator< RootIt, UnaryFunc >::getFunc().
Definition at line 502 of file Twine.h.
References llvm::Twine::concat().
std::string& llvm::operator+= | ( | std::string & | buffer, |
StringRef | string | ||
) | [inline] |
Definition at line 544 of file StringRef.h.
SparseBitVector<ElementSize> llvm::operator- | ( | const SparseBitVector< ElementSize > & | LHS, |
const SparseBitVector< ElementSize > & | RHS | ||
) | [inline] |
Definition at line 871 of file SparseBitVector.h.
References llvm::SparseBitVector< ElementSize >::intersectWithComplement().
Compare two pieces based on their offset.
Definition at line 164 of file DebugLocEntry.h.
References llvm::DIVariable::getPieceOffset(), and llvm::DebugLocEntry::Value::getVariable().
Definition at line 317 of file SlotIndexes.h.
Definition at line 321 of file SlotIndexes.h.
bool llvm::operator< | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 528 of file StringRef.h.
References llvm::StringRef::compare().
Definition at line 573 of file LiveInterval.h.
References llvm::LiveRange::Segment::start.
Definition at line 577 of file LiveInterval.h.
References llvm::LiveRange::Segment::start.
MCStreamer & llvm::operator<< | ( | MCStreamer & | OS, |
MipsABIFlagsSection & | ABIFlagsSection | ||
) |
Definition at line 51 of file MipsABIFlagsSection.cpp.
References llvm::MCStreamer::EmitIntValue(), llvm::MipsABIFlagsSection::getASESetValue(), llvm::MipsABIFlagsSection::getCPR1SizeValue(), llvm::MipsABIFlagsSection::getCPR2SizeValue(), llvm::MipsABIFlagsSection::getFlags1Value(), llvm::MipsABIFlagsSection::getFlags2Value(), llvm::MipsABIFlagsSection::getFpABIValue(), llvm::MipsABIFlagsSection::getGPRSizeValue(), llvm::MipsABIFlagsSection::getISAExtensionSetValue(), llvm::MipsABIFlagsSection::getISALevelValue(), llvm::MipsABIFlagsSection::getISARevisionValue(), and llvm::MipsABIFlagsSection::getVersionValue().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCLabel & | Label | ||
) | [inline] |
Definition at line 52 of file MCLabel.h.
References llvm::MCLabel::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const Comdat & | C | ||
) | [inline] |
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MachineConstantPoolValue & | V | ||
) | [inline] |
Definition at line 65 of file MachineConstantPool.h.
References llvm::MachineConstantPoolValue::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCParsedAsmOperand & | MO | ||
) | [inline] |
Definition at line 80 of file MCParsedAsmOperand.h.
References llvm::MCParsedAsmOperand::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const BranchProbability & | Prob | ||
) | [inline] |
Definition at line 83 of file BranchProbability.h.
References llvm::BranchProbability::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCExpr & | E | ||
) | [inline] |
Definition at line 127 of file MCExpr.h.
References llvm::MCExpr::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | O, |
const ARMConstantPoolValue & | V | ||
) | [inline] |
Definition at line 128 of file ARMConstantPoolValue.h.
References llvm::ARMConstantPoolValue::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const RecTy & | Ty | ||
) | [inline] |
Definition at line 135 of file Record.h.
References llvm::RecTy::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const LivePhysRegs & | LR | ||
) | [inline] |
Definition at line 139 of file LivePhysRegs.h.
References llvm::LivePhysRegs::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const SCEV & | S | ||
) | [inline] |
Definition at line 152 of file ScalarEvolution.h.
References llvm::SCEV::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | o, |
const DomTreeNodeBase< NodeT > * | Node | ||
) | [inline] |
Definition at line 151 of file GenericDomTree.h.
References llvm::DomTreeNodeBase< NodeT >::getBlock(), llvm::DomTreeNodeBase< NodeT >::getDFSNumIn(), and llvm::DomTreeNodeBase< NodeT >::getDFSNumOut().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCSymbol & | Sym | ||
) | [inline] |
Definition at line 159 of file MCSymbol.h.
References llvm::MCSymbol::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const VirtRegMap & | VRM | ||
) | [inline] |
Definition at line 184 of file VirtRegMap.h.
References llvm::VirtRegMap::print().
LLVM_DUMP_METHOD raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const ILPValue & | Val | ||
) |
Definition at line 1536 of file ScheduleDAGInstrs.cpp.
References llvm::ILPValue::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCOperand & | MO | ||
) | [inline] |
Definition at line 192 of file MCInst.h.
References llvm::MCOperand::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCInst & | MI | ||
) | [inline] |
Definition at line 197 of file MCInst.h.
References llvm::MCInst::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const MachineMemOperand & | MRO | ||
) |
Definition at line 477 of file MachineInstr.cpp.
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const ConstantRange & | CR | ||
) | [inline] |
Definition at line 265 of file ConstantRange.h.
References llvm::ConstantRange::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const AliasSet & | AS | ||
) | [inline] |
Definition at line 276 of file AliasSetTracker.h.
References llvm::AliasSet::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const LVILatticeVal & | Val | ||
) |
Definition at line 281 of file LazyValueInfo.cpp.
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const APSInt & | I | ||
) | [inline] |
Definition at line 299 of file APSInt.h.
References llvm::APSInt::isSigned(), and llvm::APInt::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | os, |
SlotIndex | li | ||
) | [inline] |
Definition at line 310 of file SlotIndexes.h.
References llvm::SlotIndex::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const LoopBase< BlockT, LoopT > & | Loop | ||
) |
Definition at line 343 of file LoopInfo.h.
References llvm::LoopBase< BlockT, LoopT >::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MachineTraceMetrics::Trace & | Tr | ||
) | [inline] |
Definition at line 385 of file MachineTraceMetrics.h.
References llvm::MachineTraceMetrics::Trace::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MachineTraceMetrics::Ensemble & | En | ||
) | [inline] |
Definition at line 391 of file MachineTraceMetrics.h.
References llvm::MachineTraceMetrics::Ensemble::print().
static raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
Type & | T | ||
) | [inline, static] |
Definition at line 426 of file Type.h.
References llvm::Type::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const AliasSetTracker & | AST | ||
) | [inline] |
Definition at line 432 of file AliasSetTracker.h.
References llvm::AliasSetTracker::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const Value & | V | ||
) | [inline] |
Definition at line 495 of file Value.h.
References llvm::Value::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const Twine & | RHS | ||
) | [inline] |
Definition at line 520 of file Twine.h.
References llvm::Twine::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const LiveRange & | LR | ||
) | [inline] |
Definition at line 521 of file LiveInterval.h.
References llvm::LiveRange::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const Init & | I | ||
) | [inline] |
Definition at line 554 of file Record.h.
References llvm::Init::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const LiveInterval & | LI | ||
) | [inline] |
Definition at line 566 of file LiveInterval.h.
References llvm::LiveInterval::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const LiveRange::Segment & | S | ||
) |
Definition at line 580 of file LiveInterval.cpp.
References llvm::LiveRange::Segment::end, llvm::VNInfo::id, llvm::LiveRange::Segment::start, and llvm::LiveRange::Segment::valno.
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const LiveRangeUpdater & | X | ||
) | [inline] |
Definition at line 635 of file LiveInterval.h.
References llvm::LiveRangeUpdater::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const RegionNodeBase< Tr > & | Node | ||
) | [inline] |
Print a RegionNode.
Definition at line 892 of file RegionInfo.h.
References llvm::Intrinsic::getName(), and llvm::RegionNodeBase< Tr >::isSubRegion().
raw_ostream& llvm::operator<< | ( | raw_ostream & | O, |
const Module & | M | ||
) | [inline] |
An raw_ostream inserter for modules.
Definition at line 643 of file Module.h.
References llvm::Module::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const MachineBasicBlock & | MBB | ||
) |
Definition at line 69 of file MachineBasicBlock.cpp.
References llvm::MachineBasicBlock::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MachineOperand & | MO | ||
) | [inline] |
Definition at line 718 of file MachineOperand.h.
References llvm::MachineOperand::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const ScaledNumber< DigitsT > & | X | ||
) |
Definition at line 741 of file ScaledNumber.h.
References X.
static raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const PrintReg & | PR | ||
) | [inline, static] |
Definition at line 917 of file TargetRegisterInfo.h.
References llvm::PrintReg::print().
static raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const PrintRegUnit & | PR | ||
) | [inline, static] |
Definition at line 941 of file TargetRegisterInfo.h.
References llvm::PrintRegUnit::print().
static raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const PrintVRegOrUnit & | PR | ||
) | [inline, static] |
Definition at line 955 of file TargetRegisterInfo.h.
References llvm::PrintVRegOrUnit::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MCFixup & | AF | ||
) |
Definition at line 1109 of file MCAssembler.cpp.
References llvm::MCFixup::getKind(), llvm::MCFixup::getOffset(), and llvm::MCFixup::getValue().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const MachineInstr & | MI | ||
) | [inline] |
Definition at line 1220 of file MachineInstr.h.
References llvm::MachineInstr::print().
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const RecordVal & | RV | ||
) | [inline] |
Definition at line 1379 of file Record.h.
References llvm::RecordVal::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const Record & | R | ||
) |
Definition at line 1758 of file Record.cpp.
References llvm::Intrinsic::getName(), llvm::Record::getNameInitAsString(), llvm::Record::getSuperClasses(), llvm::Record::getTemplateArgs(), llvm::Record::getValue(), llvm::Record::getValues(), llvm::Record::isTemplateArg(), llvm::RecordVal::print(), and llvm::PPCISD::SC.
raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, |
const APInt & | I | ||
) | [inline] |
Definition at line 1722 of file APInt.h.
References llvm::APInt::print().
raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, |
const RecordKeeper & | RK | ||
) |
Definition at line 2008 of file Record.cpp.
References llvm::CallingConv::C, llvm::RecordKeeper::getClasses(), and llvm::RecordKeeper::getDefs().
bool llvm::operator<= | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 532 of file StringRef.h.
References llvm::StringRef::compare().
Definition at line 37 of file MCTargetOptions.h.
References ARE_EQUAL, DwarfVersion(), and ShowMCInst().
Compare two Values for equality.
Definition at line 142 of file DebugLocEntry.h.
References llvm::DebugLocEntry::Value::CFP, llvm::DebugLocEntry::Value::CIP, llvm::DebugLocEntry::Value::Constant, llvm::DebugLocEntry::Value::E_ConstantFP, llvm::DebugLocEntry::Value::E_ConstantInt, llvm::DebugLocEntry::Value::E_Integer, llvm::DebugLocEntry::Value::E_Location, llvm::DebugLocEntry::Value::EntryKind, llvm::DebugLocEntry::Value::getVariable(), llvm::DebugLocEntry::Value::Int, llvm_unreachable, and llvm::DebugLocEntry::Value::Loc.
static bool llvm::operator== | ( | PointerUnion< PT1, PT2 > | lhs, |
PointerUnion< PT1, PT2 > | rhs | ||
) | [static] |
Definition at line 187 of file PointerUnion.h.
References llvm::PointerUnion< PT1, PT2 >::getOpaqueValue().
bool llvm::operator== | ( | const IntrusiveRefCntPtr< T > & | A, |
const IntrusiveRefCntPtr< U > & | B | ||
) | [inline] |
Definition at line 203 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
bool llvm::operator== | ( | const IntrusiveRefCntPtr< T > & | A, |
U * | B | ||
) | [inline] |
Definition at line 217 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
bool llvm::operator== | ( | T * | A, |
const IntrusiveRefCntPtr< U > & | B | ||
) | [inline] |
Definition at line 231 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::get().
Definition at line 242 of file TargetOptions.h.
References ARE_EQUAL, DisableTailCalls(), and TrapFuncName().
Definition at line 245 of file IntrusiveRefCntPtr.h.
Definition at line 250 of file IntrusiveRefCntPtr.h.
References llvm::ARM_PROC::A.
bool llvm::operator== | ( | const T * | LHS, |
const ilist_iterator< const T > & | RHS | ||
) |
Definition at line 256 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
Definition at line 264 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
std::enable_if<std::is_error_code_enum<E>::value || std::is_error_condition_enum<E>::value, bool>::type llvm::operator== | ( | ErrorOr< T > & | Err, |
E | Code | ||
) |
Definition at line 284 of file ErrorOr.h.
References llvm::tgtok::Code.
Definition at line 388 of file ArrayRef.h.
References llvm::ArrayRef< T >::equals().
bool llvm::operator== | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 520 of file StringRef.h.
References llvm::StringRef::equals().
Definition at line 1718 of file APInt.h.
Referenced by llvm::SSAUpdaterTraits< SSAUpdater >::PHI_iterator::operator!=(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::PHI_iterator::operator!=(), llvm::IntervalMapImpl::NodeRef::operator!=(), llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::operator!=(), llvm::SDNodeIterator::operator!=(), and llvm::AArch64TargetLowering::ReconstructShuffle().
bool llvm::operator> | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 536 of file StringRef.h.
References llvm::StringRef::compare().
bool llvm::operator>= | ( | StringRef | LHS, |
StringRef | RHS | ||
) | [inline] |
Definition at line 540 of file StringRef.h.
References llvm::StringRef::compare().
SmallBitVector llvm::operator^ | ( | const SmallBitVector & | LHS, |
const SmallBitVector & | RHS | ||
) | [inline] |
Definition at line 589 of file SmallBitVector.h.
static RemapFlags llvm::operator| | ( | RemapFlags | LHS, |
RemapFlags | RHS | ||
) | [inline, static] |
Definition at line 65 of file ValueMapper.h.
SmallBitVector llvm::operator| | ( | const SmallBitVector & | LHS, |
const SmallBitVector & | RHS | ||
) | [inline] |
Definition at line 582 of file SmallBitVector.h.
SparseBitVector<ElementSize> llvm::operator| | ( | const SparseBitVector< ElementSize > & | LHS, |
const SparseBitVector< ElementSize > & | RHS | ||
) | [inline] |
Definition at line 853 of file SparseBitVector.h.
bool llvm::operator|= | ( | SparseBitVector< ElementSize > & | LHS, |
const SparseBitVector< ElementSize > * | RHS | ||
) | [inline] |
Definition at line 826 of file SparseBitVector.h.
bool llvm::operator|= | ( | SparseBitVector< ElementSize > * | LHS, |
const SparseBitVector< ElementSize > & | RHS | ||
) | [inline] |
Definition at line 832 of file SparseBitVector.h.
bool llvm::optimizeGlobalCtorsList | ( | Module & | M, |
function_ref< bool(Function *)> | ShouldRemove | ||
) |
Call "ShouldRemove" for every entry in M's global_ctor list and remove the entries for which it returns true. Return true if anything changed.
Definition at line 137 of file CtorUtils.cpp.
References dbgs(), DEBUG, llvm::Function::empty(), and F().
raw_ostream & llvm::outs | ( | ) |
outs() - This returns a reference to a raw_ostream for standard output. Use it like: outs() << "foo" << "bar";
Definition at line 653 of file raw_ostream.cpp.
Referenced by llvm::coverage::CounterMappingContext::dump(), fouts(), lle_X_printf(), llvm::cl::generic_parser_base::printGenericOptionDiff(), printHelpStr(), llvm::cl::generic_parser_base::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionName(), llvm::cl::basic_parser_impl::printOptionNoValue(), and llvm::TargetRegistry::printRegisteredTargetsForVersion().
bool llvm::overlap | ( | const LiveInterval::Segment & | VRSeg, |
const IntervalMap< SlotIndex, LiveInterval * >::const_iterator & | LUSeg | ||
) | [inline] |
Compare a live virtual register segment to a LiveIntervalUnion segment.
Definition at line 35 of file LiveIntervalUnion.h.
References llvm::LiveRange::Segment::end, llvm::LiveRange::Segment::start, llvm::IntervalMap< KeyT, ValT, N, Traits >::start(), and llvm::IntervalMap< KeyT, ValT, N, Traits >::stop().
std::unique_ptr< Module > llvm::parseAssembly | ( | MemoryBufferRef | F, |
SMDiagnostic & | Err, | ||
LLVMContext & | Context | ||
) |
Parse LLVM Assembly from a MemoryBuffer.
parseAssemblyFile and parseAssemblyString are wrappers around this function.
F | The MemoryBuffer containing assembly |
Err | Error result info. |
Context | Context in which to allocate globals info. |
Definition at line 32 of file Parser.cpp.
References llvm::MemoryBufferRef::getBufferIdentifier(), and parseAssemblyInto().
Referenced by getLazyIRModule(), parseAssemblyFile(), parseAssemblyString(), and parseIR().
std::unique_ptr< Module > llvm::parseAssemblyFile | ( | StringRef | Filename, |
SMDiagnostic & | Error, | ||
LLVMContext & | Context | ||
) |
Parse LLVM Assembly from a file.
This function is the main interface to the LLVM Assembly Parser. It parses an ASCII file that (presumably) contains LLVM Assembly code. It returns a Module (intermediate representation) with the corresponding features. Note that this does not verify that the generated Module is valid, so you should run the verifier after parsing the file to check that it is okay.
Filename | The name of the file to parse |
Error | Error result info. |
Context | Context in which to allocate globals info. |
Definition at line 44 of file Parser.cpp.
References llvm::SourceMgr::DK_Error, llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFileOrSTDIN(), and parseAssembly().
bool llvm::parseAssemblyInto | ( | MemoryBufferRef | F, |
Module & | M, | ||
SMDiagnostic & | Err | ||
) |
This function is the low-level interface to the LLVM Assembly Parser. This is kept as an independent function instead of being inlined into parseAssembly for the convenience of interactive users that want to add recently parsed bits to an existing module.
F | The MemoryBuffer containing assembly |
M | The module to add data to. |
Err | Error result info. |
Definition at line 24 of file Parser.cpp.
References llvm::SourceMgr::AddNewSourceBuffer(), llvm::MemoryBufferRef::getBuffer(), and llvm::MemoryBuffer::getMemBuffer().
Referenced by parseAssembly().
std::unique_ptr< Module > llvm::parseAssemblyString | ( | StringRef | AsmString, |
SMDiagnostic & | Error, | ||
LLVMContext & | Context | ||
) |
Parse LLVM Assembly from a string.
The function is a secondary interface to the LLVM Assembly Parser. It parses an ASCII string that (presumably) contains LLVM Assembly code. It returns a Module (intermediate representation) with the corresponding features. Note that this does not verify that the generated Module is valid, so you should run the verifier after parsing the file to check that it is okay.
AsmString | The string containing assembly |
Error | Error result info. |
Context | Context in which to allocate globals info. |
Definition at line 58 of file Parser.cpp.
References F(), and parseAssembly().
ErrorOr< Module * > llvm::parseBitcodeFile | ( | MemoryBufferRef | Buffer, |
LLVMContext & | Context | ||
) |
Read the specified bitcode file, returning the module.
Definition at line 3569 of file BitcodeReader.cpp.
References llvm::ErrorOr< T >::get(), getLazyBitcodeModuleImpl(), llvm::MemoryBuffer::getMemBuffer(), and llvm::Module::materializeAllPermanently().
Referenced by LLVMParseBitcodeInContext(), and parseIR().
std::unique_ptr< Module > llvm::parseIR | ( | MemoryBufferRef | Buffer, |
SMDiagnostic & | Err, | ||
LLVMContext & | Context | ||
) |
If the given MemoryBuffer holds a bitcode image, return a Module for it. Otherwise, attempt to parse it as LLVM Assembly and return a Module for it.
Definition at line 65 of file IRReader.cpp.
References llvm::SourceMgr::DK_Error, llvm::ErrorOr< T >::get(), llvm::MemoryBufferRef::getBufferEnd(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::MemoryBufferRef::getBufferStart(), llvm::ErrorOr< T >::getError(), isBitcode(), parseAssembly(), parseBitcodeFile(), T, TimeIRParsingGroupName, TimeIRParsingName, and TimePassesIsEnabled.
Referenced by LLVMParseIRInContext(), and parseIRFile().
std::unique_ptr< Module > llvm::parseIRFile | ( | StringRef | Filename, |
SMDiagnostic & | Err, | ||
LLVMContext & | Context | ||
) |
If the given file holds a bitcode image, return a Module for it. Otherwise, attempt to parse it as LLVM Assembly and return a Module for it.
Definition at line 83 of file IRReader.cpp.
References llvm::SourceMgr::DK_Error, llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFileOrSTDIN(), and parseIR().
po_iterator<T> llvm::po_begin | ( | T | G | ) |
Definition at line 175 of file PostOrderIterator.h.
References llvm::po_iterator< GraphT, SetType, ExtStorage, GT >::begin().
Referenced by llvm::LoopInfoBase< BlockT, LoopT >::Analyze(), ComputeUsesVAFloatArgument(), and llvm::BranchProbabilityInfo::runOnFunction().
po_iterator<T> llvm::po_end | ( | T | G | ) |
Definition at line 177 of file PostOrderIterator.h.
References llvm::po_iterator< GraphT, SetType, ExtStorage, GT >::end().
Referenced by llvm::LoopInfoBase< BlockT, LoopT >::Analyze(), ComputeUsesVAFloatArgument(), and llvm::BranchProbabilityInfo::runOnFunction().
po_ext_iterator<T, SetType> llvm::po_ext_begin | ( | T | G, |
SetType & | S | ||
) |
Definition at line 187 of file PostOrderIterator.h.
References llvm::po_iterator< T, SetType, true >::begin().
Referenced by llvm::LoopBlocksTraversal::begin().
po_ext_iterator<T, SetType> llvm::po_ext_end | ( | T | G, |
SetType & | S | ||
) |
Definition at line 192 of file PostOrderIterator.h.
References llvm::po_iterator< T, SetType, true >::end().
Referenced by llvm::LoopBlocksTraversal::end().
PointerMayBeCaptured - Return true if this pointer value may be captured by the enclosing function (which is required to exist). This routine can be expensive, so consider caching the results. The boolean ReturnCaptures specifies whether returning the value (or part of it) from the function counts as capturing it or not. The boolean StoreCaptures specified whether storing the value (or part of it) into memory anywhere automatically counts as capturing it or not.
Definition at line 122 of file CaptureTracking.cpp.
Referenced by isNonEscapingLocalObject(), and PointerMayBeCapturedBefore().
void llvm::PointerMayBeCaptured | ( | const Value * | V, |
CaptureTracker * | Tracker | ||
) |
PointerMayBeCaptured - Visit the value and the values derived from it and find values which appear to be capturing the pointer value. This feeds results into and is controlled by the CaptureTracker object.
Definition at line 169 of file CaptureTracking.cpp.
References llvm::ARM_PROC::A, AddrSpaceCast, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_begin(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_end(), Call, llvm::CaptureTracker::captured(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::doesNotCapture(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::doesNotThrow(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::SmallSet< T, N, C >::insert(), isNoAliasCall(), llvm::Type::isPointerTy(), llvm::Type::isVoidTy(), llvm::SPII::Load, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::onlyReadsMemory(), llvm::TargetOpcode::PHI, llvm::MCID::Select, llvm::CaptureTracker::shouldExplore(), llvm::SPII::Store, Threshold, llvm::CaptureTracker::tooManyUses(), llvm::Value::uses(), and VAArg.
bool llvm::PointerMayBeCapturedBefore | ( | const Value * | V, |
bool | ReturnCaptures, | ||
bool | StoreCaptures, | ||
const Instruction * | I, | ||
DominatorTree * | DT, | ||
bool | IncludeI = false |
||
) |
PointerMayBeCapturedBefore - Return true if this pointer value may be captured by the enclosing function (which is required to exist). If a DominatorTree is provided, only captures which happen before the given instruction are considered. This routine can be expensive, so consider caching the results. The boolean ReturnCaptures specifies whether returning the value (or part of it) from the function counts as capturing it or not. The boolean StoreCaptures specified whether storing the value (or part of it) into memory anywhere automatically counts as capturing it or not. Captures by the provided instruction are considered if the final parameter is true.
PointerMayBeCapturedBefore - Return true if this pointer value may be captured by the enclosing function (which is required to exist). If a DominatorTree is provided, only captures which happen before the given instruction are considered. This routine can be expensive, so consider caching the results. The boolean ReturnCaptures specifies whether returning the value (or part of it) from the function counts as capturing it or not. The boolean StoreCaptures specified whether storing the value (or part of it) into memory anywhere automatically counts as capturing it or not.
Definition at line 147 of file CaptureTracking.cpp.
References PointerMayBeCaptured().
Referenced by AddAliasScopeMetadata(), and llvm::AliasAnalysis::callCapturesBefore().
uint64_t llvm::PowerOf2Floor | ( | uint64_t | A | ) | [inline] |
Returns the power of two which is less than or equal to the given value. Essentially, it is a floor operation across the domain of powers of two.
Definition at line 586 of file MathExtras.h.
References countLeadingZeros(), and ZB_Undefined.
pred_iterator llvm::pred_begin | ( | BasicBlock * | BB | ) | [inline] |
const_pred_iterator llvm::pred_begin | ( | const BasicBlock * | BB | ) | [inline] |
Interval::pred_iterator llvm::pred_begin | ( | Interval * | I | ) | [inline] |
pred_begin/pred_end - define methods so that Intervals may be used just like BasicBlocks can with the pred_* functions, and *pred_iterator.
Definition at line 114 of file Interval.h.
References llvm::Interval::Predecessors.
Referenced by addBlockAndPredsToSet(), buildExtractionBlockSet(), CanPropagatePredecessorsForPHIs(), llvm::GraphTraits< Inverse< Interval * > >::child_begin(), llvm::GraphTraits< Inverse< BasicBlock * > >::child_begin(), llvm::GraphTraits< Inverse< const BasicBlock * > >::child_begin(), CloneAndPruneFunctionInto(), ConnectProlog(), DeleteDeadBlock(), llvm::DominatorTree::dominates(), llvm::SSAUpdaterTraits< SSAUpdater >::FindPredecessorBlocks(), FindUnconditionalPreds(), FoldBranchToCommonDest(), FoldTwoEntryPHINode(), GetBestDestForJumpOnUndef(), llvm::Loop::getCanonicalInductionVariable(), GetIfCondition(), llvm::PredIteratorCache::GetPreds(), llvm::BasicBlock::getSinglePredecessor(), llvm::Loop::getUniqueExitBlocks(), llvm::BasicBlock::getUniquePredecessor(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), llvm::Loop::hasDedicatedExits(), InlineFunction(), InsertPreheaderForLoop(), insertUniqueBackedgeBlock(), isCriticalEdge(), llvm::Interval::isLoop(), IsValueFullyAvailableInBlock(), MarkBlocksLiveIn(), mergeEmptyReturnBlocks(), llvm::AssemblyWriter::printBasicBlock(), llvm::BasicBlock::removePredecessor(), rewriteLoopExitBlock(), separateNestedLoop(), SimplifyCondBranchToCondBranch(), simplifyOneLoop(), SinkThenElseCodeToEnd(), SplitCriticalEdge(), SplitLandingPadPredecessors(), and TryToSimplifyUncondBranchFromEmptyBlock().
pred_iterator llvm::pred_end | ( | BasicBlock * | BB | ) | [inline] |
const_pred_iterator llvm::pred_end | ( | const BasicBlock * | BB | ) | [inline] |
Interval::pred_iterator llvm::pred_end | ( | Interval * | I | ) | [inline] |
Definition at line 117 of file Interval.h.
References llvm::Interval::Predecessors.
Referenced by addBlockAndPredsToSet(), buildExtractionBlockSet(), CanPropagatePredecessorsForPHIs(), llvm::GraphTraits< Inverse< Interval * > >::child_end(), llvm::GraphTraits< Inverse< BasicBlock * > >::child_end(), llvm::GraphTraits< Inverse< const BasicBlock * > >::child_end(), CloneAndPruneFunctionInto(), ConnectProlog(), DeleteDeadBlock(), llvm::DominatorTree::dominates(), llvm::SSAUpdaterTraits< SSAUpdater >::FindPredecessorBlocks(), FindUnconditionalPreds(), FoldBranchToCommonDest(), GetBestDestForJumpOnUndef(), llvm::Loop::getCanonicalInductionVariable(), GetIfCondition(), llvm::PredIteratorCache::GetPreds(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getUniquePredecessor(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), llvm::Loop::hasDedicatedExits(), InlineFunction(), InsertPreheaderForLoop(), insertUniqueBackedgeBlock(), isCriticalEdge(), llvm::Interval::isLoop(), IsValueFullyAvailableInBlock(), MarkBlocksLiveIn(), mergeEmptyReturnBlocks(), llvm::AssemblyWriter::printBasicBlock(), llvm::BasicBlock::removePredecessor(), rewriteLoopExitBlock(), separateNestedLoop(), SimplifyCondBranchToCondBranch(), simplifyOneLoop(), SinkThenElseCodeToEnd(), SplitCriticalEdge(), SplitLandingPadPredecessors(), and TryToSimplifyUncondBranchFromEmptyBlock().
PredicatesFoldable - Return true if both predicates match sign or if at least one of them is an equality comparison (which is signless).
Definition at line 92 of file CmpInstAnalysis.cpp.
References llvm::ICmpInst::isEquality(), and llvm::CmpInst::isSigned().
Referenced by llvm::InstCombiner::FoldAndOfICmps(), llvm::InstCombiner::FoldOrOfICmps(), and llvm::InstCombiner::visitXor().
static void llvm::PrintDLLStorageClass | ( | GlobalValue::DLLStorageClassTypes | SCT, |
formatted_raw_ostream & | Out | ||
) | [static] |
Definition at line 1645 of file AsmWriter.cpp.
References llvm::GlobalValue::DefaultStorageClass, llvm::GlobalValue::DLLExportStorageClass, and llvm::GlobalValue::DLLImportStorageClass.
Referenced by llvm::AssemblyWriter::printAlias(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
void llvm::PrintDomTree | ( | const DomTreeNodeBase< NodeT > * | N, |
raw_ostream & | o, | ||
unsigned | Lev | ||
) | [inline] |
Definition at line 164 of file GenericDomTree.h.
References I, and llvm::raw_ostream::indent().
void llvm::PrintError | ( | ArrayRef< SMLoc > | ErrorLoc, |
const Twine & | Msg | ||
) |
Definition at line 53 of file TableGen/Error.cpp.
References llvm::SourceMgr::DK_Error, and PrintMessage().
Referenced by llvm::TGParser::Error(), and PrintFatalError().
void llvm::PrintError | ( | const char * | Loc, |
const Twine & | Msg | ||
) |
Definition at line 57 of file TableGen/Error.cpp.
References llvm::SourceMgr::DK_Error, llvm::SMLoc::getFromPointer(), llvm::SourceMgr::PrintMessage(), and SrcMgr.
void llvm::PrintError | ( | const Twine & | Msg | ) |
Definition at line 61 of file TableGen/Error.cpp.
References errs().
void llvm::PrintFatalError | ( | const Twine & | Msg | ) |
Definition at line 65 of file TableGen/Error.cpp.
References PrintError().
Referenced by llvm::SetTheory::evaluate(), llvm::UnOpInit::Fold(), llvm::BinOpInit::Fold(), ForeachHelper(), llvm::RecordKeeper::getAllDerivedDefinitions(), llvm::ListInit::getElementAsRecord(), llvm::Record::getValueAsBit(), llvm::Record::getValueAsBitOrUnset(), llvm::Record::getValueAsBitsInit(), llvm::Record::getValueAsDag(), llvm::Record::getValueAsDef(), llvm::Record::getValueAsInt(), llvm::Record::getValueAsListInit(), llvm::Record::getValueAsListOfDefs(), llvm::Record::getValueAsListOfInts(), llvm::Record::getValueAsListOfStrings(), llvm::Record::getValueAsString(), llvm::Record::getValueInit(), and llvm::Record::resolveReferencesTo().
void llvm::PrintFatalError | ( | ArrayRef< SMLoc > | ErrorLoc, |
const Twine & | Msg | ||
) |
Definition at line 70 of file TableGen/Error.cpp.
References PrintError().
static void llvm::PrintLinkage | ( | GlobalValue::LinkageTypes | LT, |
formatted_raw_ostream & | Out | ||
) | [static] |
Definition at line 1616 of file AsmWriter.cpp.
References llvm::GlobalValue::AppendingLinkage, llvm::GlobalValue::AvailableExternallyLinkage, llvm::GlobalValue::CommonLinkage, llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::ExternalWeakLinkage, llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
Referenced by llvm::AssemblyWriter::printAlias(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
static void llvm::PrintMessage | ( | ArrayRef< SMLoc > | Loc, |
SourceMgr::DiagKind | Kind, | ||
const Twine & | Msg | ||
) | [static] |
Definition at line 25 of file TableGen/Error.cpp.
References llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::ArrayRef< T >::empty(), ErrorsPrinted, llvm::ArrayRef< T >::front(), llvm::SourceMgr::PrintMessage(), llvm::ArrayRef< T >::size(), and SrcMgr.
Referenced by PrintError(), and PrintWarning().
void llvm::PrintRecyclerStats | ( | size_t | Size, |
size_t | Align, | ||
size_t | FreeListSize | ||
) |
PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for printing statistics.
Definition at line 37 of file Allocator.cpp.
References errs().
Referenced by llvm::Recycler< MachineBasicBlock >::PrintStats().
void llvm::PrintStatistics | ( | ) |
Print statistics to the file returned by CreateInfoOutputFile().
Definition at line 139 of file Statistic.cpp.
References CreateInfoOutputFile(), Enabled, llvm::raw_ostream::flush(), StatInfo, and Stats.
void llvm::PrintStatistics | ( | raw_ostream & | OS | ) |
Print statistics to the given output stream.
Definition at line 100 of file Statistic.cpp.
References llvm::raw_ostream::flush(), format(), llvm::Statistic::getDesc(), llvm::Statistic::getName(), StatInfo, Stats, llvm::LibFunc::strcmp, llvm::LibFunc::strlen, and utostr().
static void llvm::PrintThreadLocalModel | ( | GlobalVariable::ThreadLocalMode | TLM, |
formatted_raw_ostream & | Out | ||
) | [static] |
Definition at line 1654 of file AsmWriter.cpp.
References llvm::GlobalValue::GeneralDynamicTLSModel, llvm::GlobalValue::InitialExecTLSModel, llvm::GlobalValue::LocalDynamicTLSModel, llvm::GlobalValue::LocalExecTLSModel, and llvm::GlobalValue::NotThreadLocal.
Referenced by llvm::AssemblyWriter::printAlias(), and llvm::AssemblyWriter::printGlobal().
static void llvm::PrintVisibility | ( | GlobalValue::VisibilityTypes | Vis, |
formatted_raw_ostream & | Out | ||
) | [static] |
Definition at line 1636 of file AsmWriter.cpp.
References llvm::GlobalValue::DefaultVisibility, llvm::GlobalValue::HiddenVisibility, and llvm::GlobalValue::ProtectedVisibility.
Referenced by llvm::AssemblyWriter::printAlias(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
void llvm::PrintWarning | ( | ArrayRef< SMLoc > | WarningLoc, |
const Twine & | Msg | ||
) |
Definition at line 41 of file TableGen/Error.cpp.
References llvm::SourceMgr::DK_Warning, and PrintMessage().
void llvm::PrintWarning | ( | const char * | Loc, |
const Twine & | Msg | ||
) |
Definition at line 45 of file TableGen/Error.cpp.
References llvm::SourceMgr::DK_Warning, llvm::SMLoc::getFromPointer(), llvm::SourceMgr::PrintMessage(), and SrcMgr.
void llvm::PrintWarning | ( | const Twine & | Msg | ) |
Definition at line 49 of file TableGen/Error.cpp.
References errs().
void llvm::PromoteMemToReg | ( | ArrayRef< AllocaInst * > | Allocas, |
DominatorTree & | DT, | ||
AliasSetTracker * | AST = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
Promote the specified list of alloca instructions into scalar registers, inserting PHI nodes as appropriate.
This function makes use of DominanceFrontier information. This function does not modify the CFG of the function at all. All allocas must be from the same function.
If AST is specified, the specified tracker is updated to reflect changes made to the IR.
Definition at line 1070 of file PromoteMemoryToRegister.cpp.
References llvm::ArrayRef< T >::empty().
GenericValue llvm::PTOGV | ( | void * | P | ) | [inline] |
Definition at line 49 of file GenericValue.h.
Referenced by llvm::ExecutionEngine::getConstantValue(), lle_X_fprintf(), lle_X_printf(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), and llvm::Interpreter::visitAllocaInst().
Init * llvm::QualifyName | ( | Record & | CurRec, |
MultiClass * | CurMultiClass, | ||
Init * | Name, | ||
const std::string & | Scoper | ||
) |
QualifyName - Return an Init with a qualifier prefix referring to CurRec's name.
Definition at line 2041 of file Record.cpp.
References dyn_cast(), llvm::BinOpInit::Fold(), llvm::StringInit::get(), llvm::BinOpInit::get(), llvm::Record::getNameInit(), llvm::Intrinsic::getType(), Name, llvm::MultiClass::Rec, llvm::BinOpInit::STRCONCAT, and Type.
Referenced by llvm::UnOpInit::Fold(), and QualifyName().
Init * llvm::QualifyName | ( | Record & | CurRec, |
MultiClass * | CurMultiClass, | ||
const std::string & | Name, | ||
const std::string & | Scoper | ||
) |
QualifyName - Return an Init with a qualifier prefix referring to CurRec's name.
Definition at line 2070 of file Record.cpp.
References llvm::StringInit::get(), and QualifyName().
bool llvm::RecursivelyDeleteDeadPHINode | ( | PHINode * | PN, |
const TargetLibraryInfo * | TLI = nullptr |
||
) |
RecursivelyDeleteDeadPHINode - If the specified value is an effectively dead PHI node, due to being a def-use chain of single-use nodes that either forms a cycle or is terminated by a trivially dead instruction, delete it. If that makes any of its operands trivially dead, delete them too, recursively. Return true if a change was made.
Definition at line 385 of file Local.cpp.
References areAllUsesEqual(), llvm::UndefValue::get(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), and RecursivelyDeleteTriviallyDeadInstructions().
Referenced by DeleteDeadPHIs().
bool llvm::RecursivelyDeleteTriviallyDeadInstructions | ( | Value * | V, |
const TargetLibraryInfo * | TLI = nullptr |
||
) |
RecursivelyDeleteTriviallyDeadInstructions - If the specified value is a trivially dead instruction, delete it. If that makes any of its operands trivially dead, delete them too, recursively. Return true if any instructions were deleted.
Definition at line 328 of file Local.cpp.
References dyn_cast(), llvm::SmallVectorBase::empty(), llvm::Instruction::eraseFromParent(), llvm::User::getNumOperands(), llvm::User::getOperand(), I, isInstructionTriviallyDead(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::User::setOperand(), and llvm::Value::use_empty().
Referenced by ConstantFoldTerminator(), llvm::objcarc::EraseInstruction(), EraseTerminatorInstAndDCECond(), RecursivelyDeleteDeadPHINode(), SimplifyInstructionsInBlock(), and UnrollLoop().
bool llvm::recursivelySimplifyInstruction | ( | Instruction * | I, |
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
Recursively attempt to simplify an instruction.
This routine uses SimplifyInstruction to simplify 'I', and if successful replaces uses of 'I' with the simplified value. It then recurses on each of the users impacted. It returns true if any simplifications were performed.
Definition at line 3582 of file InstructionSimplify.cpp.
References replaceAndRecursivelySimplifyImpl().
Referenced by CloneAndPruneFunctionInto(), RemovePredecessorAndSimplify(), and SimplifyInstructionsInBlock().
llvm::RegionGraphTraits | ( | MachineRegion | , |
MachineRegionNode | |||
) |
llvm::RegionGraphTraits | ( | Region | , |
RegionNode | |||
) |
llvm::RegionNodeGraphTraits | ( | MachineRegionNode | , |
MachineBasicBlock | , | ||
MachineRegion | |||
) |
llvm::RegionNodeGraphTraits | ( | RegionNode | , |
BasicBlock | , | ||
Region | |||
) |
void llvm::RemapInstruction | ( | Instruction * | I, |
ValueToValueMapTy & | VMap, | ||
RemapFlags | Flags = RF_None , |
||
ValueMapTypeRemapper * | TypeMapper = nullptr , |
||
ValueMaterializer * | Materializer = nullptr |
||
) |
RemapInstruction - Convert the instruction operands from referencing the current values into those specified by VMap.
Definition at line 183 of file ValueMapper.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::Instruction::getAllMetadata(), llvm::Value::getType(), MapValue(), llvm::AArch64CC::MI, llvm::Value::mutateType(), llvm::User::op_begin(), llvm::User::op_end(), llvm::ValueMapTypeRemapper::remapType(), RF_IgnoreMissingEntries, and llvm::Instruction::setMetadata().
Referenced by CloneAndPruneFunctionInto(), CloneFunctionInto(), UnrollLoop(), and UnrollRuntimeLoopProlog().
void llvm::remove_fatal_error_handler | ( | ) |
Restores default error handling behaviour.
Definition at line 54 of file ErrorHandling.cpp.
References ErrorHandler, ErrorHandlerMutex, ErrorHandlerUserData, and Lock.
Referenced by LLVMResetFatalErrorHandler(), and llvm::ScopedFatalErrorHandler::~ScopedFatalErrorHandler().
void llvm::RemoveFromVector | ( | std::vector< T * > & | V, |
T * | N | ||
) | [inline] |
Definition at line 46 of file LoopInfo.h.
References I.
Referenced by llvm::LoopBase< BasicBlock, Loop >::removeBlockFromLoop().
void llvm::RemovePredecessorAndSimplify | ( | BasicBlock * | BB, |
BasicBlock * | Pred, | ||
DataLayout * | TD = nullptr |
||
) |
RemovePredecessorAndSimplify - Like BasicBlock::removePredecessor, this method is called when we're about to delete Pred as a predecessor of BB. If BB contains any PHI nodes, this drops the entries in the PHI nodes for Pred.
Unlike the removePredecessor method, this attempts to simplify uses of PHI nodes that collapse into identity values. For example, if we have: x = phi(1, 0, 0, 0) y = and x, z
.. and delete the predecessor corresponding to the '1', this will attempt to recursively fold the 'and' to 0.
RemovePredecessorAndSimplify - Like BasicBlock::removePredecessor, this method is called when we're about to delete Pred as a predecessor of BB. If BB contains any PHI nodes, this drops the entries in the PHI nodes for Pred.
Unlike the removePredecessor method, this attempts to simplify uses of PHI nodes that collapse into identity values. For example, if we have: x = phi(1, 0, 0, 0) y = and x, z
.. and delete the predecessor corresponding to the '1', this will attempt to recursively fold the and to 0.
Definition at line 457 of file Local.cpp.
References llvm::BasicBlock::begin(), llvm::BasicBlock::front(), recursivelySimplifyInstruction(), and llvm::BasicBlock::removePredecessor().
Remove all blocks that can not be reached from the function's entry.
Returns true if any basic block was removed.
removeUnreachableBlocksFromFn - Remove blocks that are not reachable, even if they are in a dead cycle. Return true if a change was made, false otherwise.
Definition at line 1280 of file Local.cpp.
References llvm::Function::begin(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::Function::end(), llvm::iplist< NodeTy, Traits >::erase(), llvm::Function::getBasicBlockList(), I, markAliveBlocks(), llvm::SmallPtrSetImplBase::size(), llvm::Function::size(), succ_begin(), and succ_end().
bool llvm::replaceAndRecursivelySimplify | ( | Instruction * | I, |
Value * | SimpleV, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
Replace all uses of 'I' with 'SimpleV' and simplify the uses recursively.
This first performs a normal RAUW of I with SimpleV. It then recursively attempts to simplify those users updated by the operation. The 'I' instruction must not be equal to the simplified value 'SimpleV'.
The function returns true if any simplifications were performed.
Definition at line 3590 of file InstructionSimplify.cpp.
References replaceAndRecursivelySimplifyImpl().
bool llvm::replaceDbgDeclareForAlloca | ( | AllocaInst * | AI, |
Value * | NewAllocaAddress, | ||
DIBuilder & | Builder | ||
) |
replaceDbgDeclareForAlloca - Replaces llvm.dbg.declare instruction when alloca is replaced with a new value.
Definition at line 1100 of file Local.cpp.
References llvm::DIBuilder::createComplexVariable(), llvm::Instruction::eraseFromParent(), FindAllocaDbgDeclare(), llvm::ConstantInt::get(), llvm::Value::getContext(), llvm::Type::getInt64Ty(), llvm::Instruction::getParent(), llvm::DbgDeclareInst::getVariable(), llvm::DIBuilder::insertDeclare(), llvm::DIBuilder::OpDeref, and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
void llvm::ReplaceInstWithInst | ( | BasicBlock::InstListType & | BIL, |
BasicBlock::iterator & | BI, | ||
Instruction * | I | ||
) |
ReplaceInstWithInst - Replace the instruction specified by BI with the instruction specified by I. The original instruction is deleted and BI is updated to point to the new instruction.
Definition at line 218 of file BasicBlockUtils.cpp.
References llvm::Instruction::getParent(), llvm::iplist< NodeTy, Traits >::insert(), and ReplaceInstWithValue().
Referenced by ReplaceInstWithInst(), SplitBlockAndInsertIfThen(), and SplitBlockAndInsertIfThenElse().
void llvm::ReplaceInstWithInst | ( | Instruction * | From, |
Instruction * | To | ||
) |
ReplaceInstWithInst - Replace the instruction specified by From with the instruction specified by To.
Definition at line 236 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::getInstList(), llvm::Instruction::getParent(), and ReplaceInstWithInst().
void llvm::ReplaceInstWithValue | ( | BasicBlock::InstListType & | BIL, |
BasicBlock::iterator & | BI, | ||
Value * | V | ||
) |
ReplaceInstWithValue - Replace all uses of an instruction (specified by BI) with a value, then remove and delete the original instruction.
Definition at line 199 of file BasicBlockUtils.cpp.
References llvm::iplist< NodeTy, Traits >::erase(), llvm::Value::hasName(), I, llvm::Value::replaceAllUsesWith(), and llvm::Value::takeName().
Referenced by ReplaceInstWithInst().
void llvm::report_fatal_error | ( | const char * | reason, |
bool | gen_crash_diag = true |
||
) |
Reports a serious error, calling any installed error handler. These functions are intended to be used for error conditions which are outside the control of the compiler (I/O errors, invalid user input, etc.)
If no error handler is installed the default is to print the message to standard error, followed by a newline. After the error handler is called this function will call exit(1), it does not return.
Definition at line 60 of file ErrorHandling.cpp.
Referenced by llvm::MCJIT::addObjectFile(), llvm::TargetPassConfig::addPass(), adjustFixupValue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::RegAllocBase::allocatePhysRegs(), applyOverride(), llvm::ARMTargetMachine::ARMTargetMachine(), llvm::yaml::Stream::begin(), llvm::MachObjectWriter::BindIndirectSymbols(), llvm::Interpreter::callExternalFunction(), llvm::MCELFStreamer::ChangeSection(), llvm::MCObjectStreamer::ChangeSection(), checkInterfaceFunction(), checkMachOComdat(), llvm::MCAssembler::computeFragmentSize(), llvm::TargetSchedModel::computeOperandLatency(), llvm::NVPTXInstrInfo::copyPhysReg(), createAArch64MCCodeGenInfo(), llvm::SpecialCaseList::createOrDie(), createXCoreMCCodeGenInfo(), llvm::object::ELFFile< ELFT >::ELFFile(), llvm::MCELFStreamer::EmitBundleAlignMode(), llvm::MCELFStreamer::EmitBundleLock(), llvm::MCELFStreamer::EmitBundleUnlock(), llvm::MCStreamer::EmitCFIStartProc(), llvm::MCWinCOFFStreamer::EmitCommonSymbol(), llvm::RuntimeDyldImpl::emitCommonSymbols(), llvm::MipsTargetStreamer::emitDirectiveModuleOddSPReg(), llvm::MachineInstr::emitError(), llvm::AsmPrinter::EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), llvm::ExecutionEngine::emitGlobals(), llvm::MCStreamer::EmitGPRel32Value(), llvm::MCStreamer::EmitGPRel64Value(), llvm::TargetLoweringObjectFileMachO::emitModuleFlags(), EmitMSInlineAsmStr(), llvm::MCJIT::emitObject(), llvm::XCoreFrameLowering::emitPrologue(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::RuntimeDyldImpl::emitSection(), llvm::MCELFStreamer::EmitValueImpl(), llvm::MCELFStreamer::EmitValueToAlignment(), llvm::MCObjectStreamer::EmitWeakReference(), llvm::MCStreamer::EmitWinCFIAllocStack(), llvm::MCStreamer::EmitWinCFIEndChained(), llvm::MCStreamer::EmitWinCFIEndProc(), llvm::MCStreamer::EmitWinCFIPushFrame(), llvm::MCStreamer::EmitWinCFISaveReg(), llvm::MCStreamer::EmitWinCFISaveXMM(), llvm::MCStreamer::EmitWinCFISetFrame(), llvm::MCStreamer::EmitWinCFIStartProc(), llvm::MCStreamer::EmitWinEHHandler(), llvm::MCStreamer::EmitWinEHHandlerData(), llvm::CodeExtractor::extractCodeRegion(), llvm::MCContext::FatalError(), llvm::RuntimeDyldELF::finalizeLoad(), llvm::MCStreamer::Finish(), foldPatchpoint(), llvm::MCJIT::generateCodeForModule(), llvm::object::ELFObjectFile< ELFT >::getArch(), llvm::TargetLoweringObjectFileELF::getCFIPersonalitySymbol(), getComdatGVForCOFF(), llvm::ExecutionEngine::getConstantValue(), llvm::GCOVOptions::getDefault(), getELFComdat(), llvm::XCoreTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), llvm::object::ELFObjectFile< ELFT >::getFileFormatName(), getFixupKindLog2Size(), getInt(), getLabelOffset(), GetOptionInfo(), llvm::RTDyldMemoryManager::getPointerToNamedFunction(), llvm::MCJIT::getPointerToNamedFunction(), llvm::PPCTargetLowering::getRegisterByName(), llvm::TargetLowering::getRegisterByName(), llvm::object::ELFObjectFile< ELFT >::getRelocationAddend(), llvm::object::COFFObjectFile::getRelocationAddress(), llvm::object::ELFObjectFile< ELFT >::getRelocationSymbol(), llvm::object::ELFObjectFile< ELFT >::getRelocationType(), llvm::object::MachOObjectFile::getRelocationValueString(), getRelocType(), llvm::object::ELFObjectFile< ELFT >::getROffset(), GetScratchRegister(), llvm::object::ELFFile< ELFT >::getSection(), llvm::object::ELFFile< ELFT >::getString(), llvm::MachObjectWriter::getSymbolAddress(), llvm::object::COFFObjectFile::getSymbolAuxData(), getSymbolOffsetImpl(), llvm::TargetLoweringObjectFile::getTTypeReference(), llvm::MCAsmLayout::layoutFragment(), LLVMGetRelocationAddress(), LLVMGetRelocationOffset(), LLVMGetRelocationType(), LLVMGetRelocationTypeName(), LLVMGetRelocationValueString(), LLVMGetSectionAddress(), LLVMGetSectionContainsSymbol(), LLVMGetSectionContents(), LLVMGetSectionName(), LLVMGetSectionSize(), LLVMGetSymbolAddress(), LLVMGetSymbolName(), LLVMGetSymbolSize(), LLVMMoveToContainingSection(), LLVMVerifyFunction(), LLVMVerifyModule(), llvm::RuntimeDyld::loadObject(), llvm::ExecutionEngine::LoadValueFromMemory(), nvptx::LowerConstant(), lowerConstant(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::MipsSubtarget::MipsSubtarget(), llvm::DWARFDebugFrame::parse(), llvm::TargetLowering::ParseConstraints(), llvm::FrameEntry::parseInstructions(), llvm::NVPTXInstPrinter::printRegName(), printRelocationTargetName(), llvm::AsmPrinter::PrintSpecial(), report_fatal_error(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::VerifierPass::run(), llvm::legacy::FunctionPassManager::run(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::LiveVariables::runOnMachineFunction(), llvm::DebugIR::runOnModule(), llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::object::COFFObjectFile::toSymb(), llvm::object::ELFFile< ELFT >::VerifyStrTab(), llvm::Interpreter::visitUnreachableInst(), writeFragment(), llvm::MachObjectWriter::WriteNlist(), llvm::MCAssembler::writeSectionData(), and llvm::raw_fd_ostream::~raw_fd_ostream().
void llvm::report_fatal_error | ( | const std::string & | reason, |
bool | gen_crash_diag = true |
||
) |
Definition at line 64 of file ErrorHandling.cpp.
References report_fatal_error().
void llvm::report_fatal_error | ( | StringRef | reason, |
bool | gen_crash_diag = true |
||
) |
Definition at line 68 of file ErrorHandling.cpp.
References report_fatal_error().
void llvm::report_fatal_error | ( | const Twine & | reason, |
bool | gen_crash_diag = true |
||
) |
Definition at line 72 of file ErrorHandling.cpp.
References llvm::StringRef::data(), ErrorHandler, ErrorHandlerMutex, ErrorHandlerUserData, Lock, llvm::sys::RunInterruptHandlers(), llvm::StringRef::size(), llvm::Twine::str(), llvm::raw_svector_ostream::str(), and llvm::LibFunc::write.
RecTy * llvm::resolveTypes | ( | RecTy * | T1, |
RecTy * | T2 | ||
) |
resolveTypes - Find a common type that T1 and T2 convert to. Return 0 if no such type exists.
Definition at line 390 of file Record.cpp.
References llvm::RecordRecTy::get(), and llvm::RecTy::typeIsConvertibleTo().
static bool llvm::RetCC_ARM_AAPCS_Custom_f64 | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) | [static] |
Definition at line 155 of file ARMCallingConv.h.
References RetCC_ARM_APCS_Custom_f64().
static bool llvm::RetCC_ARM_APCS_Custom_f64 | ( | unsigned & | ValNo, |
MVT & | ValVT, | ||
MVT & | LocVT, | ||
CCValAssign::LocInfo & | LocInfo, | ||
ISD::ArgFlagsTy & | ArgFlags, | ||
CCState & | State | ||
) | [static] |
Definition at line 144 of file ARMCallingConv.h.
References f64RetAssign(), and llvm::MVT::v2f64.
Referenced by RetCC_ARM_AAPCS_Custom_f64().
bool llvm::returnTypeIsEligibleForTailCall | ( | const Function * | F, |
const Instruction * | I, | ||
const ReturnInst * | Ret, | ||
const TargetLoweringBase & | TLI | ||
) |
Test if given that the input instruction is in the tail call position if the return type or any attributes of the function will inhibit tail call optimization.
Definition at line 518 of file CodeGen/Analysis.cpp.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::NVPTXISD::CallVal, firstRealType(), llvm::UndefValue::get(), llvm::Intrinsic::getAttributes(), llvm::Function::getAttributes(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::Value::getType(), llvm::CompositeType::getTypeAtIndex(), I, nextRealType(), llvm::Attribute::NoAlias, llvm::SmallVectorTemplateCommon< T, typename >::rbegin(), llvm::SmallVectorTemplateCommon< T, typename >::rend(), llvm::AttributeSet::ReturnIndex, llvm::Attribute::SExt, slotOnlyDiscardsData(), and llvm::Attribute::ZExt.
Referenced by FindPotentialTailCall(), and isInTailCallPosition().
T llvm::reverseBits | ( | T | Val | ) |
Reverse the bits in Val
.
Definition at line 240 of file MathExtras.h.
References BitReverseTable256, and llvm::LibFunc::memcpy.
bool llvm::rewriteAArch64FrameIndex | ( | MachineInstr & | MI, |
unsigned | FrameRegIdx, | ||
unsigned | FrameReg, | ||
int & | Offset, | ||
const AArch64InstrInfo * | TII | ||
) |
rewriteAArch64FrameIndex - Rewrite MI to access 'Offset' bytes from the FP. Return false if the offset could not be handled directly in MI, and return the left-over portion by reference.
Definition at line 2301 of file AArch64InstrInfo.cpp.
References AArch64FrameOffsetCanUpdate, AArch64FrameOffsetIsLegal, llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), emitFrameOffset(), llvm::MachineInstr::eraseFromParent(), llvm::MachineInstr::getDebugLoc(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), isAArch64FrameOffsetLegal(), llvm::AArch64CC::MI, llvm::MachineInstr::NoFlags, llvm::MachineInstr::setDesc(), and TII.
Referenced by llvm::AArch64RegisterInfo::eliminateFrameIndex(), and llvm::AArch64RegisterInfo::resolveFrameIndex().
bool llvm::rewriteARMFrameIndex | ( | MachineInstr & | MI, |
unsigned | FrameRegIdx, | ||
unsigned | FrameReg, | ||
int & | Offset, | ||
const ARMBaseInstrInfo & | TII | ||
) |
rewriteARMFrameIndex / rewriteT2FrameIndex - Rewrite MI to access 'Offset' bytes from the FP. Return false if the offset could not be handled directly in MI, and return the left-over portion by reference.
Definition at line 2053 of file ARMBaseInstrInfo.cpp.
References llvm::ARMII::AddrMode2, llvm::ARMII::AddrMode3, llvm::ARMII::AddrMode4, llvm::ARMII::AddrMode5, llvm::ARMII::AddrMode6, llvm::ARMII::AddrMode_i12, llvm::ARMII::AddrModeMask, llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), llvm::ARM_AM::getAM2Offset(), llvm::ARM_AM::getAM2Op(), llvm::ARM_AM::getAM3Offset(), llvm::ARM_AM::getAM3Op(), llvm::ARM_AM::getAM5Offset(), llvm::ARM_AM::getAM5Op(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::ARM_AM::getSOImmVal(), llvm::ARM_AM::getSOImmValRotate(), llvm::ISD::INLINEASM, llvm_unreachable, llvm::MachineInstr::RemoveOperand(), llvm::ARM_AM::rotr32(), llvm::MachineInstr::setDesc(), llvm::ARM_AM::sub, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), and llvm::ARMBaseRegisterInfo::resolveFrameIndex().
bool llvm::rewriteT2FrameIndex | ( | MachineInstr & | MI, |
unsigned | FrameRegIdx, | ||
unsigned | FrameReg, | ||
int & | Offset, | ||
const ARMBaseInstrInfo & | TII | ||
) |
Definition at line 446 of file Thumb2InstrInfo.cpp.
References AddDefaultPred(), llvm::MachineInstr::addOperand(), llvm::ARMII::AddrMode4, llvm::ARMII::AddrMode5, llvm::ARMII::AddrMode6, llvm::ARMII::AddrModeMask, llvm::ARMII::AddrModeT2_i12, llvm::ARMII::AddrModeT2_i8, llvm::ARMII::AddrModeT2_i8s4, llvm::ARMII::AddrModeT2_so, llvm::ARMCC::AL, llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), llvm::MachineOperand::CreateReg(), llvm::ARM_AM::getAM5Offset(), llvm::ARM_AM::getAM5Op(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), getInstrPredicate(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), getReg(), llvm::ARM_AM::getT2SOImmVal(), immediateOffsetOpcode(), llvm::ISD::INLINEASM, llvm_unreachable, llvm::AArch64CC::MI, negativeOffsetOpcode(), positiveOffsetOpcode(), llvm::MachineInstr::RemoveOperand(), llvm::ARM_AM::rotr32(), llvm::MachineInstr::setDesc(), llvm::ARM_AM::sub, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), and llvm::ARMBaseRegisterInfo::resolveFrameIndex().
static size_t llvm::RoundUpTo | ( | size_t | X, |
size_t | RoundTo | ||
) | [static] |
Definition at line 36 of file ASanStackFrameLayout.cpp.
Referenced by VarAndRedzoneSize().
uint64_t llvm::RoundUpToAlignment | ( | uint64_t | Value, |
uint64_t | Align | ||
) | [inline] |
Returns the next integer (mod 2**64) that is greater than or equal to Value
and is a multiple of Align
. Align
must be non-zero.
Examples:
RoundUpToAlignment(5, 8) = 8 RoundUpToAlignment(17, 8) = 24 RoundUpToAlignment(~0LL, 8) = 0
Definition at line 600 of file MathExtras.h.
References Align().
Referenced by ComputeLinkerOptionsLoadCommandSize(), llvm::MachObjectWriter::computeSectionAddresses(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::MipsFrameLowering::estimateStackSize(), llvm::SparcSubtarget::getAdjustedFrameSize(), llvm::AMDGPUFrameLowering::getFrameIndexOffset(), llvm::MemoryBuffer::getNewUninitMemBuffer(), llvm::CCState::HandleByVal(), llvm::SparcTargetLowering::LowerCall_64(), OffsetToAlignment(), llvm::BitVector::reset(), llvm::BitVector::set(), and llvm::MachObjectWriter::WriteObject().
scc_iterator<T> llvm::scc_begin | ( | const T & | G | ) |
Construct the begin iterator for a deduced graph type T.
Definition at line 224 of file SCCIterator.h.
References llvm::scc_iterator< GraphT, GT >::begin().
Referenced by llvm::BlockFrequencyInfoImplBase::analyzeIrreducible().
scc_iterator<Inverse<T> > llvm::scc_begin | ( | const Inverse< T > & | G | ) |
Construct the begin iterator for a deduced graph type T's Inverse<T>.
Definition at line 234 of file SCCIterator.h.
References llvm::sys::path::begin().
scc_iterator<T> llvm::scc_end | ( | const T & | G | ) |
Construct the end iterator for a deduced graph type T.
Definition at line 229 of file SCCIterator.h.
References llvm::scc_iterator< GraphT, GT >::end().
scc_iterator<Inverse<T> > llvm::scc_end | ( | const Inverse< T > & | G | ) |
Construct the end iterator for a deduced graph type T's Inverse<T>.
Definition at line 239 of file SCCIterator.h.
References llvm::sys::path::end().
void * llvm::SearchForAddressOfSpecialSymbol | ( | const char * | symbolName | ) |
Definition at line 55 of file SearchForAddressOfSpecialSymbol.cpp.
References DoSearch().
Referenced by llvm::sys::DynamicLibrary::SearchForAddressOfSymbol().
S1Ty llvm::set_difference | ( | const S1Ty & | S1, |
const S2Ty & | S2 | ||
) |
set_difference(A, B) - Return A - B
Definition at line 51 of file SetOperations.h.
void llvm::set_fixed_execution_hash_seed | ( | size_t | fixed_value | ) |
Override the execution seed with a fixed value.
This hashing library uses a per-execution seed designed to change on each run with high probability in order to ensure that the hash codes are not attackable and to ensure that output which is intended to be stable does not rely on the particulars of the hash codes produced.
That said, there are use cases where it is important to be able to reproduce *exactly* a specific behavior. To that end, we provide a function which will forcibly set the seed to a fixed value. This must be done at the start of the program, before any hashes are computed. Also, it cannot be undone. This makes it thread-hostile and very hard to use outside of immediately on start of a simple program designed for reproducible behavior.
Definition at line 27 of file Hashing.cpp.
References llvm::hashing::detail::fixed_seed_override.
void llvm::set_intersect | ( | S1Ty & | S1, |
const S2Ty & | S2 | ||
) |
set_intersect(A, B) - Compute A := A ^ B Identical to set_intersection, except that it works on set<>'s and is nicer to use. Functionally, this iterates through S1, removing elements that are not contained in S2.
Definition at line 40 of file SetOperations.h.
References I.
void llvm::set_subtract | ( | S1Ty & | S1, |
const S2Ty & | S2 | ||
) |
set_subtract(A, B) - Compute A := A - B
Definition at line 63 of file SetOperations.h.
bool llvm::set_union | ( | S1Ty & | S1, |
const S2Ty & | S2 | ||
) |
set_union(A, B) - Compute A := A u B, return whether A changed.
Definition at line 23 of file SetOperations.h.
void llvm::setCurrentDebugType | ( | const char * | Type | ) |
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified. Note that DebugFlag also needs to be set to true for debug output to be produced.
Definition at line 97 of file Debug.cpp.
References CurrentDebugType, and Type.
void llvm::setPreserveAssemblyUseListOrder | ( | bool | ShouldPreserve | ) |
Definition at line 41 of file UseListOrder.cpp.
References PreserveAssemblyUseListOrder.
void llvm::setPreserveBitcodeUseListOrder | ( | bool | ShouldPreserve | ) |
Definition at line 37 of file UseListOrder.cpp.
References PreserveBitcodeUseListOrder.
Definition at line 33 of file UseListOrder.cpp.
References PreserveAssemblyUseListOrder.
Referenced by llvm::AssemblyWriter::printModule().
Whether to preserve use-list ordering.
Definition at line 29 of file UseListOrder.cpp.
References PreserveBitcodeUseListOrder.
Referenced by llvm::ValueEnumerator::ValueEnumerator(), WriteFunction(), and WriteModule().
int32_t llvm::SignExtend32 | ( | uint32_t | x | ) | [inline] |
SignExtend32 - Sign extend B-bit number x to 32-bit int. Usage int32_t r = SignExtend32<5>(x);
Definition at line 620 of file MathExtras.h.
Referenced by llvm::PPC::get_VSPLTI_elt().
int32_t llvm::SignExtend32 | ( | uint32_t | X, |
unsigned | B | ||
) | [inline] |
Sign extend number in the bottom B bits of X to a 32-bit int. Requires 0 < B <= 32.
Definition at line 626 of file MathExtras.h.
int64_t llvm::SignExtend64 | ( | uint64_t | x | ) | [inline] |
SignExtend64 - Sign extend B-bit number x to 64-bit int. Usage int64_t r = SignExtend64<5>(x);
Definition at line 632 of file MathExtras.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), DecodeAddiGroupBranch(), DecodeBgtzGroupBranch(), DecodeBgtzlGroupBranch(), DecodeBlezGroupBranch(), DecodeBlezlGroupBranch(), DecodeDaddiGroupBranch(), llvm::SelectionDAG::getGlobalAddress(), and llvm::RuntimeDyldMachOAArch64::processRelocationRef().
int64_t llvm::SignExtend64 | ( | uint64_t | X, |
unsigned | B | ||
) | [inline] |
Sign extend number in the bottom B bits of X to a 64-bit int. Requires 0 < B <= 64.
Definition at line 638 of file MathExtras.h.
Value * llvm::SimplifyAddInst | ( | Value * | LHS, |
Value * | RHS, | ||
bool | isNSW, | ||
bool | isNUW, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyAddInst - Given operands for an Add, see if we can fold the result. If not, this returns null.
Definition at line 582 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitAdd().
Value * llvm::SimplifyAndInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyAndInst - Given operands for an And, see if we can fold the result. If not, this returns null.
Definition at line 1569 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), SimplifyMulInst(), ThreadCmpOverSelect(), and llvm::InstCombiner::visitAnd().
Value * llvm::SimplifyAShrInst | ( | Value * | Op0, |
Value * | Op1, | ||
bool | isExact, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyAShrInst - Given operands for a AShr, see if we can fold the result. If not, this returns null.
Definition at line 1414 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitAShr().
Value * llvm::SimplifyBinOp | ( | unsigned | Opcode, |
Value * | LHS, | ||
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyBinOp - Given operands for a BinaryOperator, see if we can fold the result. If not, this returns null.
Definition at line 3268 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by ExpandBinOp(), SimplifyAssociativeBinOp(), SimplifySubInst(), SimplifyWithOpReplaced(), ThreadBinOpOverPHI(), ThreadBinOpOverSelect(), and tryFactorization().
Value * llvm::SimplifyCall | ( | Value * | V, |
User::op_iterator | ArgBegin, | ||
User::op_iterator | ArgEnd, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
Given a function and iterators over arguments, see if we can fold the result.
If this call could not be simplified returns null.
Definition at line 3361 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyCall(), and SimplifyInstruction().
Value * llvm::SimplifyCall | ( | Value * | V, |
ArrayRef< Value * > | Args, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
Given a function and set of arguments, see if we can fold the result.
If this call could not be simplified returns null.
Definition at line 3370 of file InstructionSimplify.cpp.
References llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), RecursionLimit, and SimplifyCall().
bool llvm::SimplifyCFG | ( | BasicBlock * | BB, |
const TargetTransformInfo & | TTI, | ||
const DataLayout * | DL = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
SimplifyCFG - This function is used to do simplification of a CFG. For example, it adjusts branches to branches to eliminate the extra hop, it eliminates unreachable basic blocks, and does other "peephole" optimization of the CFG. It returns true if a modification was made, possibly deleting the basic block that was pointed to.
SimplifyCFG - This function is used to do simplification of a CFG. For example, it adjusts branches to branches to eliminate the extra hop, it eliminates unreachable basic blocks, and does other "peephole" optimization of the CFG. It returns true if a modification was made.
Definition at line 4231 of file SimplifyCFG.cpp.
Referenced by iterativelySimplifyCFG(), and TryToSimplifyUncondBranchWithICmpInIt().
Value * llvm::SimplifyCmpInst | ( | unsigned | Predicate, |
Value * | LHS, | ||
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyCmpInst - Given operands for a CmpInst, see if we can fold the result. If not, this returns null.
Definition at line 3285 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyWithOpReplaced(), ThreadCmpOverPHI(), and ThreadCmpOverSelect().
Value * llvm::SimplifyFAddInst | ( | Value * | LHS, |
Value * | RHS, | ||
FastMathFlags | FMF, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
Given operands for an FAdd, see if we can fold the result. If not, this returns null.
Definition at line 968 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitFAdd().
Value * llvm::SimplifyFCmpInst | ( | unsigned | Predicate, |
Value * | LHS, | ||
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyFCmpInst - Given operands for an FCmpInst, see if we can fold the result. If not, this returns null.
Definition at line 2970 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyCmpInst(), SimplifyInstruction(), and llvm::InstCombiner::visitFCmpInst().
Value * llvm::SimplifyFDivInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyFDivInst - Given operands for an FDiv, see if we can fold the result. If not, this returns null.
Definition at line 1126 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitFDiv().
Value * llvm::SimplifyFMulInst | ( | Value * | LHS, |
Value * | RHS, | ||
FastMathFlags | FMF, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
Given operands for an FMul, see if we can fold the result. If not, this returns null.
Definition at line 984 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitFMul().
Value * llvm::SimplifyFRemInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyFRemInst - Given operands for an FRem, see if we can fold the result. If not, this returns null.
Definition at line 1247 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitFRem().
Value * llvm::SimplifyFSubInst | ( | Value * | LHS, |
Value * | RHS, | ||
FastMathFlags | FMF, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
Given operands for an FSub, see if we can fold the result. If not, this returns null.
Definition at line 976 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitFSub().
Value * llvm::SimplifyGEPInst | ( | ArrayRef< Value * > | Ops, |
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyGEPInst - Given operands for an GetElementPtrInst, see if we can fold the result. If not, this returns null.
Definition at line 3103 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyInstruction(), and llvm::InstCombiner::visitGetElementPtrInst().
Value * llvm::SimplifyICmpInst | ( | unsigned | Predicate, |
Value * | LHS, | ||
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
Instruction * | CxtI = nullptr |
||
) |
SimplifyICmpInst - Given operands for an ICmpInst, see if we can fold the result. If not, this returns null.
Definition at line 2871 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyCmpInst(), SimplifyICmpInst(), SimplifyInstruction(), and llvm::InstCombiner::visitICmpInst().
Value * llvm::SimplifyInsertValueInst | ( | Value * | Agg, |
Value * | Val, | ||
ArrayRef< unsigned > | Idxs, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyInsertValueInst - Given operands for an InsertValueInst, see if we can fold the result. If not, this returns null.
Definition at line 3139 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyInstruction().
Value * llvm::SimplifyInstruction | ( | Instruction * | I, |
const DataLayout * | DL = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
SimplifyInstruction - See if we can compute a simplified version of this instruction. If not, this returns null.
If called on unreachable code, the above logic may report that the instruction simplified to itself. Make life easier for users by detecting that case here, returning a safe value instead.
Definition at line 3380 of file InstructionSimplify.cpp.
References llvm::APIntOps::And(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_begin(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_end(), Call, ConstantFoldInstruction(), FCmp, llvm::UndefValue::get(), llvm::InsertValueInst::getAggregateOperand(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getCalledValue(), llvm::Instruction::getFastMathFlags(), llvm::InsertValueInst::getIndices(), llvm::InsertValueInst::getInsertedValueOperand(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), I, LShr, llvm::User::op_begin(), llvm::User::op_end(), llvm::APIntOps::Or(), llvm::TargetOpcode::PHI, llvm::MCID::Select, SimplifyAddInst(), SimplifyAndInst(), SimplifyAShrInst(), SimplifyCall(), SimplifyFAddInst(), SimplifyFCmpInst(), SimplifyFDivInst(), SimplifyFMulInst(), SimplifyFRemInst(), SimplifyFSubInst(), SimplifyGEPInst(), SimplifyICmpInst(), SimplifyInsertValueInst(), SimplifyLShrInst(), SimplifyMulInst(), SimplifyOrInst(), SimplifyPHINode(), SimplifySDivInst(), SimplifySelectInst(), SimplifyShlInst(), SimplifySRemInst(), SimplifySubInst(), SimplifyTruncInst(), SimplifyUDivInst(), SimplifyURemInst(), SimplifyXorInst(), Trunc, and llvm::APIntOps::Xor().
Referenced by DecomposeGEPExpression(), findPHIToPartitionLoops(), FoldCondBranchOnPHI(), FoldTwoEntryPHINode(), GetUnderlyingObject(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), InlineFunction(), replaceAndRecursivelySimplifyImpl(), llvm::SCEVExpander::replaceCongruentIVs(), simplifyOneLoop(), TryToSimplifyUncondBranchWithICmpInIt(), UnrollLoop(), and llvm::InstCombiner::visitPHINode().
bool llvm::SimplifyInstructionsInBlock | ( | BasicBlock * | BB, |
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr |
||
) |
SimplifyInstructionsInBlock - Scan the specified basic block and try to simplify any instructions in it and recursively delete dead instructions.
This returns true if it changed the code, note that it can delete instructions in other blocks as well in this block.
Definition at line 410 of file Local.cpp.
References llvm::BasicBlock::begin(), llvm::BasicBlock::end(), RecursivelyDeleteTriviallyDeadInstructions(), and recursivelySimplifyInstruction().
bool llvm::simplifyLoop | ( | Loop * | L, |
DominatorTree * | DT, | ||
LoopInfo * | LI, | ||
Pass * | PP, | ||
AliasAnalysis * | AA = nullptr , |
||
ScalarEvolution * | SE = nullptr , |
||
const DataLayout * | DL = nullptr , |
||
AssumptionTracker * | AT = nullptr |
||
) |
Simplify each loop in a loop nest recursively.
This takes a potentially un-simplified loop L (and its children) and turns it into a simplified loop nest with preheaders and single backedges. It will optionally update AliasAnalysis
and ScalarEvolution
analyses if passed into it.
Definition at line 715 of file LoopSimplify.cpp.
References llvm::LoopBase< BlockT, LoopT >::begin(), llvm::SmallVectorBase::empty(), llvm::LoopBase< BlockT, LoopT >::end(), I, LI, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), simplifyOneLoop(), and llvm::SmallVectorTemplateCommon< T >::size().
Referenced by UnrollLoop().
bool llvm::simplifyLoopIVs | ( | Loop * | L, |
ScalarEvolution * | SE, | ||
LPPassManager * | LPM, | ||
SmallVectorImpl< WeakVH > & | Dead | ||
) |
SimplifyLoopIVs - Simplify users of induction variables within this loop. This does not actually change or add IVs.
simplifyLoopIVs - Simplify users of induction variables within this loop. This does not actually change or add IVs.
Definition at line 462 of file SimplifyIndVar.cpp.
References llvm::BasicBlock::begin(), llvm::LoopBase< BlockT, LoopT >::getHeader(), I, and simplifyUsersOfIV().
Referenced by UnrollLoop().
Value * llvm::SimplifyLShrInst | ( | Value * | Op0, |
Value * | Op1, | ||
bool | isExact, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyLShrInst - Given operands for a LShr, see if we can fold the result. If not, this returns null.
Definition at line 1371 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitLShr().
Value * llvm::SimplifyMulInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyMulInst - Given operands for a Mul, see if we can fold the result. If not, this returns null.
Definition at line 995 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitMul().
Value * llvm::SimplifyOrInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyOrInst - Given operands for an Or, see if we can fold the result. If not, this returns null.
Definition at line 1753 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), ThreadCmpOverSelect(), and llvm::InstCombiner::visitOr().
Value * llvm::SimplifySDivInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifySDivInst - Given operands for an SDiv, see if we can fold the result. If not, this returns null.
Definition at line 1085 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitSDiv().
Value * llvm::SimplifySelectInst | ( | Value * | Cond, |
Value * | TrueVal, | ||
Value * | FalseVal, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifySelectInst - Given operands for a SelectInst, see if we can fold the result. If not, this returns null.
Definition at line 3011 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyInstruction(), and llvm::InstCombiner::visitSelectInst().
Value * llvm::SimplifyShlInst | ( | Value * | Op0, |
Value * | Op1, | ||
bool | isNSW, | ||
bool | isNUW, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyShlInst - Given operands for a Shl, see if we can fold the result. If not, this returns null.
Definition at line 1339 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitShl().
Value * llvm::SimplifySRemInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifySRemInst - Given operands for an SRem, see if we can fold the result. If not, this returns null.
Definition at line 1206 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitSRem().
Value * llvm::SimplifySubInst | ( | Value * | LHS, |
Value * | RHS, | ||
bool | isNSW, | ||
bool | isNUW, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifySubInst - Given operands for a Sub, see if we can fold the result. If not, this returns null.
Definition at line 789 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitSub().
Value * llvm::SimplifyTruncInst | ( | Value * | Op, |
Type * | Ty, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyTruncInst - Given operands for an TruncInst, see if we can fold the result. If not, this returns null.
Definition at line 3192 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyInstruction(), and SimplifySubInst().
Value * llvm::SimplifyUDivInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyUDivInst - Given operands for a UDiv, see if we can fold the result. If not, this returns null.
Definition at line 1104 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitUDiv().
Value * llvm::SimplifyURemInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyURemInst - Given operands for a URem, see if we can fold the result. If not, this returns null.
Definition at line 1225 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyBinOp(), SimplifyInstruction(), and llvm::InstCombiner::visitURem().
bool llvm::simplifyUsersOfIV | ( | PHINode * | CurrIV, |
ScalarEvolution * | SE, | ||
LPPassManager * | LPM, | ||
SmallVectorImpl< WeakVH > & | Dead, | ||
IVVisitor * | V = nullptr |
||
) |
simplifyUsersOfIV - Simplify instructions that use this induction variable by using ScalarEvolution to analyze the IV's recurrence.
Definition at line 451 of file SimplifyIndVar.cpp.
References llvm::Pass::getAnalysis(), llvm::LoopInfo::getLoopFor(), llvm::Instruction::getParent(), and LI.
Referenced by simplifyLoopIVs().
Value * llvm::SimplifyXorInst | ( | Value * | LHS, |
Value * | RHS, | ||
const DataLayout * | TD = nullptr , |
||
const TargetLibraryInfo * | TLI = nullptr , |
||
const DominatorTree * | DT = nullptr , |
||
AssumptionTracker * | AT = nullptr , |
||
const Instruction * | CxtI = nullptr |
||
) |
SimplifyXorInst - Given operands for a Xor, see if we can fold the result. If not, this returns null.
Definition at line 1810 of file InstructionSimplify.cpp.
References RecursionLimit.
Referenced by SimplifyAddInst(), SimplifyBinOp(), SimplifyInstruction(), SimplifySubInst(), ThreadCmpOverSelect(), and llvm::InstCombiner::visitXor().
bool llvm::SkipBitcodeWrapperHeader | ( | const unsigned char *& | BufPtr, |
const unsigned char *& | BufEnd, | ||
bool | VerifyBufferSize | ||
) | [inline] |
SkipBitcodeWrapperHeader - Some systems wrap bc files with a special header for padding or other reasons. The format of this header is:
struct bc_header { uint32_t Magic; // 0x0B17C0DE uint32_t Version; // Version, currently always 0. uint32_t BitcodeOffset; // Offset to traditional bitcode file. uint32_t BitcodeSize; // Size of traditional bitcode file. ... potentially other gunk ... };
This function is called when we find a file with a matching magic number. In this case, skip down to the subsection of the file that is actually a BC file. If 'VerifyBufferSize' is true, check that the buffer is large enough to contain the whole bitcode file.
Definition at line 114 of file ReaderWriter.h.
Definition at line 371 of file NVPTXUtilities.cpp.
References isMemorySpaceTransferIntrinsic(), and llvm::Value::stripPointerCasts().
Referenced by skipPointerTransfer().
Definition at line 394 of file NVPTXUtilities.cpp.
References isMemorySpaceTransferIntrinsic(), skipPointerTransfer(), llvm::Value::stripPointerCasts(), and llvm::NVPTX::PTXLdStInstCode::V2.
static const char* llvm::SPARCCondCodeToString | ( | SPCC::CondCodes | CC | ) | [inline, static] |
Definition at line 79 of file Sparc.h.
References llvm::SPCC::FCC_A, llvm::SPCC::FCC_E, llvm::SPCC::FCC_G, llvm::SPCC::FCC_GE, llvm::SPCC::FCC_L, llvm::SPCC::FCC_LE, llvm::SPCC::FCC_LG, llvm::SPCC::FCC_N, llvm::SPCC::FCC_NE, llvm::SPCC::FCC_O, llvm::SPCC::FCC_U, llvm::SPCC::FCC_UE, llvm::SPCC::FCC_UG, llvm::SPCC::FCC_UGE, llvm::SPCC::FCC_UL, llvm::SPCC::FCC_ULE, llvm::SPCC::ICC_A, llvm::SPCC::ICC_CC, llvm::SPCC::ICC_CS, llvm::SPCC::ICC_E, llvm::SPCC::ICC_G, llvm::SPCC::ICC_GE, llvm::SPCC::ICC_GU, llvm::SPCC::ICC_L, llvm::SPCC::ICC_LE, llvm::SPCC::ICC_LEU, llvm::SPCC::ICC_N, llvm::SPCC::ICC_NE, llvm::SPCC::ICC_NEG, llvm::SPCC::ICC_POS, llvm::SPCC::ICC_VC, llvm::SPCC::ICC_VS, and llvm_unreachable.
Referenced by llvm::SparcInstPrinter::printCCOperand().
BasicBlock * llvm::SplitBlock | ( | BasicBlock * | Old, |
Instruction * | SplitPt, | ||
Pass * | P | ||
) |
SplitBlock - Split the specified block at the specified instruction - every thing before SplitPt stays in Old and everything starting with SplitPt moves to a new block. The two blocks are joined by an unconditional branch and the loop info is updated.
Definition at line 273 of file BasicBlockUtils.cpp.
References llvm::DominatorTreeBase< NodeT >::addNewBlock(), llvm::DominatorTreeBase< NodeT >::changeImmediateDominator(), llvm::Pass::getAnalysisIfAvailable(), llvm::Value::getName(), llvm::DominatorTreeBase< NodeT >::getNode(), I, LI, and llvm::BasicBlock::splitBasicBlock().
Referenced by SplitEdge(), and UnrollRuntimeLoopProlog().
TerminatorInst * llvm::SplitBlockAndInsertIfThen | ( | Value * | Cond, |
Instruction * | SplitBefore, | ||
bool | Unreachable, | ||
MDNode * | BranchWeights = nullptr , |
||
DominatorTree * | DT = nullptr |
||
) |
SplitBlockAndInsertIfThen - Split the containing block at the specified instruction - everything before and including SplitBefore stays in the old basic block, and everything after SplitBefore is moved to a new block. The two blocks are connected by a conditional branch (with value of Cmp being the condition). Before: Head SplitBefore Tail After: Head if (Cond) ThenBlock SplitBefore Tail
If Unreachable is true, then ThenBlock ends with UnreachableInst, otherwise it branches to Tail. Returns the NewBasicBlock's terminator.
Updates DT if given.
SplitBlockAndInsertIfThen - Split the containing block at the specified instruction - everything before and including SplitBefore stays in the old basic block, and everything after SplitBefore is moved to a new block. The two blocks are connected by a conditional branch (with value of Cmp being the condition). Before: Head SplitBefore Tail After: Head if (Cond) ThenBlock SplitBefore Tail
If Unreachable is true, then ThenBlock ends with UnreachableInst, otherwise it branches to Tail. Returns the NewBasicBlock's terminator.
Definition at line 673 of file BasicBlockUtils.cpp.
References llvm::DominatorTreeBase< NodeT >::addNewBlock(), llvm::CallingConv::C, llvm::DominatorTreeBase< NodeT >::changeImmediateDominator(), llvm::BasicBlock::Create(), llvm::BranchInst::Create(), llvm::BasicBlock::getContext(), llvm::Instruction::getDebugLoc(), llvm::DominatorTreeBase< NodeT >::getNode(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::LLVMContext::MD_prof, ReplaceInstWithInst(), llvm::Instruction::setDebugLoc(), llvm::Instruction::setMetadata(), and llvm::BasicBlock::splitBasicBlock().
void llvm::SplitBlockAndInsertIfThenElse | ( | Value * | Cond, |
Instruction * | SplitBefore, | ||
TerminatorInst ** | ThenTerm, | ||
TerminatorInst ** | ElseTerm, | ||
MDNode * | BranchWeights = nullptr |
||
) |
SplitBlockAndInsertIfThenElse is similar to SplitBlockAndInsertIfThen, but also creates the ElseBlock. Before: Head SplitBefore Tail After: Head if (Cond) ThenBlock else ElseBlock SplitBefore Tail
Definition at line 725 of file BasicBlockUtils.cpp.
References llvm::CallingConv::C, llvm::BasicBlock::Create(), llvm::BranchInst::Create(), llvm::BasicBlock::getContext(), llvm::Instruction::getDebugLoc(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::LLVMContext::MD_prof, ReplaceInstWithInst(), llvm::Instruction::setDebugLoc(), llvm::Instruction::setMetadata(), and llvm::BasicBlock::splitBasicBlock().
BasicBlock * llvm::SplitBlockPredecessors | ( | BasicBlock * | BB, |
ArrayRef< BasicBlock * > | Preds, | ||
const char * | Suffix, | ||
Pass * | P = nullptr |
||
) |
SplitBlockPredecessors - This method transforms BB by introducing a new basic block into the function, and moving some of the predecessors of BB to be predecessors of the new block. The new predecessors are indicated by the Preds array, which has NumPreds elements in it. The new block is given a suffix of 'Suffix'. This function returns the new block.
This currently updates the LLVM IR, AliasAnalysis, DominatorTree, DominanceFrontier, LoopInfo, and LCCSA but no other analyses. In particular, it does not preserve LoopSimplify (because it's complicated to handle the case where one of the edges being split is an exit of a loop with other exits).
SplitBlockPredecessors - This method transforms BB by introducing a new basic block into the function, and moving some of the predecessors of BB to be predecessors of the new block. The new predecessors are indicated by the Preds array, which has NumPreds elements in it. The new block is given a suffix of 'Suffix'.
This currently updates the LLVM IR, AliasAnalysis, DominatorTree, LoopInfo, and LCCSA but no other analyses. In particular, it does not preserve LoopSimplify (because it's complicated to handle the case where one of the edges being split is an exit of a loop with other exits).
Definition at line 463 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), llvm::BasicBlock::Create(), llvm::BranchInst::Create(), llvm::UndefValue::get(), llvm::BasicBlock::getContext(), llvm::Value::getName(), llvm::BasicBlock::getParent(), I, llvm::ArrayRef< T >::size(), UpdateAnalysisInformation(), and UpdatePHINodes().
Referenced by ConnectProlog(), InsertPreheaderForLoop(), rewriteLoopExitBlock(), separateNestedLoop(), and SplitCriticalEdge().
BasicBlock * llvm::SplitCriticalEdge | ( | TerminatorInst * | TI, |
unsigned | SuccNum, | ||
Pass * | P = nullptr , |
||
bool | MergeIdenticalEdges = false , |
||
bool | DontDeleteUselessPhis = false , |
||
bool | SplitLandingPads = false |
||
) |
SplitCriticalEdge - If this edge is a critical edge, insert a new node to split the critical edge. This will update DominatorTree and DominatorFrontier information if it is available, thus calling this pass will not invalidate either of them. This returns the new block if the edge was split, null otherwise.
If MergeIdenticalEdges is true (not the default), *all* edges from TI to the specified successor will be merged into the same critical edge block. This is most commonly interesting with switch instructions, which may have many edges to any one destination. This ensures that all edges to that dest go to one block instead of each going to a different block, but isn't the standard definition of a "critical edge".
It is invalid to call this function on a critical edge that starts at an IndirectBrInst. Splitting these edges will almost always create an invalid program because the address of the new block won't be the one that is jumped to.
SplitCriticalEdge - If this edge is a critical edge, insert a new node to split the critical edge. This will update DominatorTree information if it is available, thus calling this pass will not invalidate either of them. This returns the new block if the edge was split, null otherwise.
If MergeIdenticalEdges is true (not the default), *all* edges from TI to the specified successor will be merged into the same critical edge block. This is most commonly interesting with switch instructions, which may have many edges to any one destination. This ensures that all edges to that dest go to one block instead of each going to a different block, but isn't the standard definition of a "critical edge".
It is invalid to call this function on a critical edge that starts at an IndirectBrInst. Splitting these edges will almost always create an invalid program because the address of the new block won't be the one that is jumped to.
Definition at line 141 of file BreakCriticalEdges.cpp.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::BasicBlock::begin(), llvm::SmallVectorImpl< T >::clear(), llvm::BasicBlock::Create(), llvm::BranchInst::Create(), createPHIsForSplitLoopExit(), llvm::SmallVectorBase::empty(), llvm::Pass::getAnalysisIfAvailable(), llvm::LoopInfo::getBase(), llvm::PHINode::getBasicBlockIndex(), llvm::Function::getBasicBlockList(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::DominatorTreeWrapperPass::getDomTree(), llvm::PHINode::getIncomingBlock(), llvm::LoopInfo::getLoopFor(), llvm::Value::getName(), llvm::TerminatorInst::getNumSuccessors(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::TerminatorInst::getSuccessor(), I, llvm::iplist< NodeTy, Traits >::insert(), isCriticalEdge(), llvm::BasicBlock::isLandingPad(), LCSSAID, LI, LoopSimplifyID, llvm::Pass::mustPreserveAnalysisID(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::BasicBlock::removePredecessor(), llvm::PHINode::setIncomingBlock(), llvm::TerminatorInst::setSuccessor(), and SplitBlockPredecessors().
Referenced by DemoteRegToStack(), SplitCriticalEdge(), SplitCriticalSideEffectEdges(), and SplitEdge().
BasicBlock* llvm::SplitCriticalEdge | ( | BasicBlock * | BB, |
succ_iterator | SI, | ||
Pass * | P = nullptr |
||
) | [inline] |
Definition at line 97 of file BasicBlockUtils.h.
References llvm::SuccIterator< Term_, BB_ >::getSuccessorIndex(), llvm::BasicBlock::getTerminator(), P, and SplitCriticalEdge().
bool llvm::SplitCriticalEdge | ( | BasicBlock * | Succ, |
pred_iterator | PI, | ||
Pass * | P = nullptr |
||
) | [inline] |
SplitCriticalEdge - If the edge from *PI to BB is not critical, return false. Otherwise, split all edges between the two blocks and return true. This updates all of the same analyses as the other SplitCriticalEdge function. If P is specified, it updates the analyses described above.
Definition at line 107 of file BasicBlockUtils.h.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), P, and SplitCriticalEdge().
BasicBlock* llvm::SplitCriticalEdge | ( | BasicBlock * | Src, |
BasicBlock * | Dst, | ||
Pass * | P = nullptr , |
||
bool | MergeIdenticalEdges = false , |
||
bool | DontDeleteUselessPHIs = false |
||
) | [inline] |
SplitCriticalEdge - If an edge from Src to Dst is critical, split the edge and return true, otherwise return false. This method requires that there be an edge between the two blocks. If P is specified, it updates the analyses described above.
Definition at line 121 of file BasicBlockUtils.h.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), P, and SplitCriticalEdge().
BasicBlock * llvm::SplitEdge | ( | BasicBlock * | BB, |
BasicBlock * | Succ, | ||
Pass * | P | ||
) |
SplitEdge - Split the edge connecting specified block. Pass P must not be NULL.
Definition at line 243 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), llvm::TerminatorInst::getNumSuccessors(), llvm::BasicBlock::getSinglePredecessor(), llvm::TerminatorInst::getSuccessor(), GetSuccessorNumber(), llvm::BasicBlock::getTerminator(), SplitBlock(), and SplitCriticalEdge().
Referenced by replaceConstantExprOp(), and UnrollRuntimeLoopProlog().
void llvm::SplitLandingPadPredecessors | ( | BasicBlock * | OrigBB, |
ArrayRef< BasicBlock * > | Preds, | ||
const char * | Suffix1, | ||
const char * | Suffix2, | ||
Pass * | P, | ||
SmallVectorImpl< BasicBlock * > & | NewBBs | ||
) |
SplitLandingPadPredecessors - This method transforms the landing pad, OrigBB, by introducing two new basic blocks into the function. One of those new basic blocks gets the predecessors listed in Preds. The other basic block gets the remaining predecessors of OrigBB. The landingpad instruction OrigBB is clone into both of the new basic blocks. The new blocks are given the suffixes 'Suffix1' and 'Suffix2', and are returned in the NewBBs vector.
This currently updates the LLVM IR, AliasAnalysis, DominatorTree, DominanceFrontier, LoopInfo, and LCCSA but no other analyses. In particular, it does not preserve LoopSimplify (because it's complicated to handle the case where one of the edges being split is an exit of a loop with other exits).
Definition at line 516 of file BasicBlockUtils.cpp.
References llvm::PHINode::addIncoming(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::Instruction::clone(), llvm::BasicBlock::Create(), llvm::PHINode::Create(), llvm::BranchInst::Create(), llvm::SmallVectorBase::empty(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::getContext(), llvm::BasicBlock::getFirstInsertionPt(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getLandingPadInst(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), llvm::iplist< NodeTy, Traits >::insert(), llvm::BasicBlock::isLandingPad(), pred_begin(), pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::Value::replaceAllUsesWith(), llvm::Value::setName(), llvm::ArrayRef< T >::size(), UpdateAnalysisInformation(), and UpdatePHINodes().
Referenced by ConnectProlog(), InsertPreheaderForLoop(), and rewriteLoopExitBlock().
void llvm::SplitString | ( | StringRef | Source, |
SmallVectorImpl< StringRef > & | OutFragments, | ||
StringRef | Delimiters = " \t\n\v\f\r" |
||
) |
SplitString - Split up the specified string according to the specified delimiters, appending the result fragments to the output list.
Definition at line 51 of file StringExtras.cpp.
References getToken(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::ARMTargetLowering::ExpandInlineAsm(), and llvm::sys::Process::FindInEnvPath().
StrInStrNoCase - Portable version of strcasestr. Locates the first occurrence of string 's1' in string 's2', ignoring case. Returns the offset of s2 in s1 or npos if s2 cannot be found.
Definition at line 22 of file StringExtras.cpp.
References llvm::StringRef::equals_lower(), N, llvm::StringRef::npos, llvm::StringRef::size(), and llvm::StringRef::substr().
bool llvm::StripDebugInfo | ( | Module & | M | ) |
Strip debug info in the module if it exists. To do this, we remove all calls to the debugger intrinsics and any named metadata for debugging. We also remove debug locations for instructions. Return true if module is modified.
Definition at line 1516 of file DebugInfo.cpp.
References llvm::Module::begin(), llvm::Module::end(), llvm::Instruction::eraseFromParent(), llvm::NamedMDNode::eraseFromParent(), llvm::Module::getFunction(), llvm::NamedMDNode::getName(), llvm::AArch64CC::MI, llvm::Module::named_metadata_begin(), llvm::Module::named_metadata_end(), and llvm::StringRef::startswith().
Referenced by UpgradeDebugInfo().
static Constant* llvm::SubOne | ( | Constant * | C | ) | [inline, static] |
SubOne - Subtract one from a Constant.
Definition at line 67 of file InstCombine.h.
References llvm::ConstantInt::get(), llvm::ConstantExpr::getSub(), and llvm::Value::getType().
Referenced by llvm::InstCombiner::FoldAndOfICmps(), llvm::InstCombiner::FoldICmpDivCst(), llvm::InstCombiner::FoldOrOfICmps(), llvm::InstCombiner::visitAdd(), and llvm::InstCombiner::visitICmpInstWithInstAndIntCst().
Interval::succ_iterator llvm::succ_begin | ( | Interval * | I | ) | [inline] |
succ_begin/succ_end - define methods so that Intervals may be used just like BasicBlocks can with the succ_* functions, and *succ_iterator.
Definition at line 104 of file Interval.h.
References llvm::Interval::Successors.
Referenced by llvm::SSAUpdaterTraits< SSAUpdater >::BlkSucc_begin(), CanPropagatePredecessorsForPHIs(), changeToUnreachable(), llvm::GraphTraits< BlockFrequencyInfo * >::child_begin(), llvm::GraphTraits< Interval * >::child_begin(), llvm::GraphTraits< BasicBlock * >::child_begin(), llvm::GraphTraits< const BasicBlock * >::child_begin(), ConnectProlog(), DFSPass(), llvm::InstCombiner::DoOneIteration(), llvm::CodeExtractor::extractCodeRegion(), FindFunctionBackedges(), llvm::DOTGraphTraits< const Function * >::getEdgeSourceLabel(), llvm::BranchProbabilityInfo::getEdgeWeight(), llvm::BranchProbabilityInfo::getHotSucc(), llvm::Loop::getUniqueExitBlocks(), HoistThenElseCodeToIf(), isPotentiallyReachable(), isPotentiallyReachableInner(), isProfitableToFoldUnconditional(), isSafeToHoistInvoke(), isTrivialLoopExitBlockHelper(), IsValueFullyAvailableInBlock(), markAliveBlocks(), MergeBlockIntoPredecessor(), llvm::BranchProbabilityInfo::print(), removeUnreachableBlocks(), SafeToMergeTerminators(), simplifyOneLoop(), llvm::BasicBlock::splitBasicBlock(), and UnrollLoop().
succ_iterator llvm::succ_begin | ( | BasicBlock * | BB | ) | [inline] |
Definition at line 248 of file IR/CFG.h.
References llvm::BasicBlock::getTerminator().
succ_const_iterator llvm::succ_begin | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 251 of file IR/CFG.h.
References llvm::BasicBlock::getTerminator().
RNSuccIterator<NodeType, BlockT, RegionT> llvm::succ_begin | ( | NodeType * | Node | ) | [inline] |
Definition at line 256 of file RegionIterator.h.
References Node.
Interval::succ_iterator llvm::succ_end | ( | Interval * | I | ) | [inline] |
Definition at line 107 of file Interval.h.
References llvm::Interval::Successors.
Referenced by llvm::SSAUpdaterTraits< SSAUpdater >::BlkSucc_end(), changeToUnreachable(), llvm::GraphTraits< BlockFrequencyInfo * >::child_end(), llvm::GraphTraits< Interval * >::child_end(), llvm::GraphTraits< BasicBlock * >::child_end(), llvm::GraphTraits< const BasicBlock * >::child_end(), ConnectProlog(), DFSPass(), llvm::InstCombiner::DoOneIteration(), llvm::CodeExtractor::extractCodeRegion(), FindFunctionBackedges(), llvm::BranchProbabilityInfo::getEdgeWeight(), llvm::BranchProbabilityInfo::getHotSucc(), llvm::Loop::getUniqueExitBlocks(), HoistThenElseCodeToIf(), isPotentiallyReachable(), isPotentiallyReachableInner(), isProfitableToFoldUnconditional(), isSafeToHoistInvoke(), isTrivialLoopExitBlockHelper(), IsValueFullyAvailableInBlock(), markAliveBlocks(), MergeBlockIntoPredecessor(), llvm::IntervalIterator< NodeTy, OrigContainer_t, GT, IGT >::operator++(), llvm::RNSuccIterator< FlatIt< NodeType >, BlockT, RegionT >::operator++(), llvm::BranchProbabilityInfo::print(), removeUnreachableBlocks(), SafeToMergeTerminators(), simplifyOneLoop(), llvm::BasicBlock::splitBasicBlock(), and UnrollLoop().
succ_iterator llvm::succ_end | ( | BasicBlock * | BB | ) | [inline] |
Definition at line 254 of file IR/CFG.h.
References llvm::BasicBlock::getTerminator().
succ_const_iterator llvm::succ_end | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 257 of file IR/CFG.h.
References llvm::BasicBlock::getTerminator().
RNSuccIterator<NodeType, BlockT, RegionT> llvm::succ_end | ( | NodeType * | Node | ) | [inline] |
Definition at line 261 of file RegionIterator.h.
References Node.
int llvm::TableGenMain | ( | char * | argv0, |
TableGenMainFn * | MainFn | ||
) |
Definition at line 80 of file Main.cpp.
References llvm::SourceMgr::AddNewSourceBuffer(), createDependencyFile(), ErrorsPrinted, errs(), llvm::sys::fs::F_Text, llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFileOrSTDIN(), llvm::tool_output_file::keep(), llvm::tool_output_file::os(), llvm::TGParser::ParseFile(), llvm::MipsISD::Ret, llvm::SourceMgr::setIncludeDirs(), and SrcMgr.
llvm::TEMPLATE_INSTANTIATION | ( | class DomTreeNodeBase< MachineBasicBlock > | ) |
static StringRef llvm::toStringRef | ( | bool | B | ) | [inline, static] |
Construct a string ref from a boolean.
Definition at line 32 of file StringExtras.h.
const SCEV * llvm::TransformForPostIncUse | ( | TransformKind | Kind, |
const SCEV * | S, | ||
Instruction * | User, | ||
Value * | OperandValToReplace, | ||
PostIncLoopSet & | Loops, | ||
ScalarEvolution & | SE, | ||
DominatorTree & | DT | ||
) |
TransformForPostIncUse - Transform the given expression according to the given transformation kind.
Top level driver for transforming an expression DAG into its requested post-inc form (either "Normalized" or "Denormalized").
Definition at line 245 of file ScalarEvolutionNormalization.cpp.
Referenced by llvm::IVUsers::AddUsersImpl(), and llvm::IVUsers::getExpr().
bool llvm::tryFoldSPUpdateIntoPushPop | ( | const ARMSubtarget & | Subtarget, |
MachineFunction & | MF, | ||
MachineInstr * | MI, | ||
unsigned | NumBytes | ||
) |
Tries to add registers to the reglist of a given base-updating push/pop instruction to adjust the stack by an additional NumBytes. This can save a few bytes per function in code-size, but obviously generates more memory traffic. As such, it only takes effect in functions being optimised for size.
Definition at line 1942 of file ARMBaseInstrInfo.cpp.
References llvm::MachineInstrBuilder::addOperand(), llvm::MachineOperand::CreateReg(), llvm::AttributeSet::FunctionIndex, llvm::Function::getAttributes(), llvm::TargetRegisterInfo::getCalleeSavedRegs(), llvm::MachineFunction::getFunction(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getRegInfo(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), llvm::AttributeSet::hasAttribute(), isAnySubRegLive(), isCalleeSavedRegister(), isPopOpcode(), isPushOpcode(), llvm::Attribute::MinSize, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::MachineInstr::RemoveOperand(), and llvm::SmallVectorTemplateCommon< T >::size().
Referenced by llvm::Thumb1FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), llvm::Thumb1FrameLowering::emitPrologue(), and llvm::ARMFrameLowering::emitPrologue().
TryToSimplifyUncondBranchFromEmptyBlock - BB is known to contain an unconditional branch, and contains no instructions other than PHI nodes, potential debug intrinsics and the branch. If possible, eliminate BB by rewriting all the predecessors to branch to the successor block and return true. If we can't transform, return false.
TryToSimplifyUncondBranchFromEmptyBlock - BB is known to contain an unconditional branch, and contains no instructions other than PHI nodes, potential side-effect free intrinsics and the branch. If possible, eliminate BB by rewriting all the predecessors to branch to the successor block and return true. If we can't transform, return false.
Definition at line 743 of file Local.cpp.
References llvm::BasicBlock::begin(), CanPropagatePredecessorsForPHIs(), dbgs(), DEBUG, llvm::Instruction::eraseFromParent(), llvm::BasicBlock::eraseFromParent(), llvm::BasicBlock::front(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), I, pred_begin(), pred_end(), redirectValuesFromPredecessorsToPhi(), and llvm::Value::replaceAllUsesWith().
bool llvm::UnrollLoop | ( | Loop * | L, |
unsigned | Count, | ||
unsigned | TripCount, | ||
bool | AllowRuntime, | ||
unsigned | TripMultiple, | ||
LoopInfo * | LI, | ||
Pass * | PP, | ||
LPPassManager * | LPM, | ||
AssumptionTracker * | AT | ||
) |
Unroll the given loop by Count. The loop must be in LCSSA form. Returns true if unrolling was successful, or false if the loop was unmodified. Unrolling can only fail when the loop's latch block is not terminated by a conditional branch instruction. However, if the trip count (and multiple) are not known, loop unrolling will mostly produce more code that is no faster.
TripCount is generally defined as the number of times the loop header executes. UnrollLoop relaxes the definition to permit early exits: here TripCount is the iteration on which control exits LatchBlock if no early exits were taken. Note that UnrollLoop assumes that the loop counter test terminates LatchBlock in order to remove unnecesssary instances of the test. In other words, control may exit the loop prior to TripCount iterations via an early branch, but control may not exit the loop from the LatchBlock's terminator prior to TripCount iterations.
Similarly, TripMultiple divides the number of times that the LatchBlock may execute without exiting the loop.
The LoopInfo Analysis that is passed will be kept consistent.
If a LoopPassManager is passed in, and the loop is fully removed, it will be removed from the LoopPassManager as well. LPM can also be NULL.
This utility preserves LoopInfo. If DominatorTree or ScalarEvolution are available from the Pass it must also preserve those analyses.
Definition at line 156 of file LoopUnroll.cpp.
References llvm::LoopBase< BlockT, LoopT >::addBasicBlockToLoop(), llvm::PHINode::addIncoming(), llvm::sys::path::begin(), llvm::ValueMap< KeyT, ValueT, Config >::begin(), llvm::BasicBlock::begin(), llvm::LoopBlocksDFS::beginRPO(), CloneBasicBlock(), llvm::LoopBase< BlockT, LoopT >::contains(), llvm::BranchInst::Create(), dbgs(), DEBUG, DEBUG_TYPE, llvm::LPPassManager::deleteLoopFromQueue(), dyn_cast(), emitOptimizationRemark(), llvm::SmallVectorBase::empty(), llvm::sys::path::const_iterator::end, llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::LoopBlocksDFS::endRPO(), llvm::iplist< NodeTy, Traits >::erase(), llvm::Instruction::eraseFromParent(), F(), llvm::ValueMap< KeyT, ValueT, Config >::find(), FoldBlockIntoPredecessor(), llvm::AssumptionTracker::forgetCachedAssumptions(), llvm::ScalarEvolution::forgetLoop(), formLCSSARecursively(), llvm::Pass::getAnalysisIfAvailable(), llvm::LoopInfo::getBase(), llvm::Function::getBasicBlockList(), llvm::LoopBase< BlockT, LoopT >::getBlocks(), llvm::Function::getContext(), llvm::DataLayoutPass::getDataLayout(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::PHINode::getIncomingValueForBlock(), llvm::BasicBlock::getInstList(), llvm::LoopInfo::getLoopFor(), llvm::LoopBase< BlockT, LoopT >::getLoopLatch(), llvm::LoopBase< BlockT, LoopT >::getLoopPreheader(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), llvm::Loop::getStartLoc(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), GreatestCommonDivisor64(), llvm::BasicBlock::hasAddressTaken(), I, isInstructionTriviallyDead(), llvm::Loop::isSafeToClone(), llvm::BranchInst::isUnconditional(), llvm::LoopBlocksDFS::perform(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::iplist< NodeTy, Traits >::push_back(), llvm::DominatorTreeBase< NodeT >::recalculate(), RecursivelyDeleteTriviallyDeadInstructions(), RemapInstruction(), llvm::PHINode::removeIncomingValue(), llvm::Value::replaceAllUsesWith(), llvm::LoopInfo::replacementPreservesLCSSAForm(), llvm::ValueMapIterator< DenseMapT, KeyT >::ValueTypeProxy::second, llvm::BranchInst::setSuccessor(), SimplifyInstruction(), simplifyLoop(), simplifyLoopIVs(), succ_begin(), succ_end(), T, and UnrollRuntimeLoopProlog().
bool llvm::UnrollRuntimeLoopProlog | ( | Loop * | L, |
unsigned | Count, | ||
LoopInfo * | LI, | ||
LPPassManager * | LPM | ||
) |
Insert code in the prolog code when unrolling a loop with a run-time trip-count.
This method assumes that the loop unroll factor is total number of loop bodes in the loop after unrolling. (Some folks refer to the unroll factor as the number of *extra* copies added). We assume also that the loop unroll factor is a power-of-two. So, after unrolling the loop, the number of loop bodies executed is 2, 4, 8, etc. Note - LLVM converts the if-then-sequence to a switch instruction in SimplifyCFG.cpp. Then, the backend decides how code for the switch instruction is generated.
extraiters = tripcount % loopfactor if (extraiters == 0) jump Loop: if (extraiters == loopfactor) jump L1 if (extraiters == loopfactor-1) jump L2 ... L1: LoopBody; L2: LoopBody; ... if tripcount < loopfactor jump End Loop: ... End:
Definition at line 228 of file LoopUnrollRuntime.cpp.
References llvm::sys::path::begin(), CloneLoopBlocks(), ConnectProlog(), llvm::BasicBlock::Create(), llvm::BranchInst::Create(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateAnd(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateIsNotNull(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateIsNull(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateOr(), llvm::sys::path::const_iterator::end, llvm::Function::end(), F(), llvm::ScalarEvolution::forgetLoop(), llvm::ConstantInt::get(), llvm::ScalarEvolution::getAddExpr(), llvm::Pass::getAnalysisIfAvailable(), llvm::LPPassManager::getAsPass(), llvm::ScalarEvolution::getBackedgeTakenCount(), llvm::LoopInfo::getBase(), llvm::Function::getBasicBlockList(), llvm::ScalarEvolution::getConstant(), llvm::BasicBlock::getContext(), llvm::LoopBase< BlockT, LoopT >::getExitingBlock(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::LoopBase< BlockT, LoopT >::getLoopLatch(), llvm::LoopBase< BlockT, LoopT >::getLoopPreheader(), llvm::BasicBlock::getParent(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), llvm::BasicBlock::getTerminator(), llvm::SCEV::getType(), llvm::Value::getType(), llvm::Loop::getUniqueExitBlock(), I, llvm::CmpInst::ICMP_EQ, llvm::Type::isIntegerTy(), llvm::Loop::isLoopSimplifyForm(), llvm::LoopBlocksDFS::perform(), RemapInstruction(), RF_IgnoreMissingEntries, RF_NoModuleLevelChanges, llvm::TerminatorInst::setSuccessor(), llvm::iplist< NodeTy, Traits >::splice(), SplitBlock(), and SplitEdge().
Referenced by UnrollLoop().
CodeModel::Model llvm::unwrap | ( | LLVMCodeModel | Model | ) | [inline] |
Definition at line 54 of file CodeGen.h.
References llvm::CodeModel::Default, llvm::CodeModel::JITDefault, llvm::CodeModel::Kernel, llvm::CodeModel::Large, LLVMCodeModelDefault, LLVMCodeModelJITDefault, LLVMCodeModelKernel, LLVMCodeModelLarge, LLVMCodeModelMedium, LLVMCodeModelSmall, llvm::CodeModel::Medium, and llvm::CodeModel::Small.
LLVMContext** llvm::unwrap | ( | LLVMContextRef * | Tys | ) | [inline] |
Definition at line 188 of file LLVMContext.h.
DataLayout* llvm::unwrap | ( | LLVMTargetDataRef | P | ) | [inline] |
Definition at line 453 of file DataLayout.h.
Referenced by LLVMABIAlignmentOfType(), LLVMABISizeOfType(), LLVMAddAggressiveDCEPass(), LLVMAddAlias(), LLVMAddAlignmentFromAssumptionsPass(), LLVMAddAlwaysInlinerPass(), LLVMAddAnalysisPasses(), LLVMAddArgumentPromotionPass(), LLVMAddBasicAliasAnalysisPass(), LLVMAddBBVectorizePass(), LLVMAddCase(), LLVMAddCFGSimplificationPass(), LLVMAddClause(), LLVMAddConstantMergePass(), LLVMAddConstantPropagationPass(), LLVMAddCorrelatedValuePropagationPass(), LLVMAddDeadArgEliminationPass(), LLVMAddDeadStoreEliminationPass(), LLVMAddDemoteMemoryToRegisterPass(), LLVMAddDestination(), LLVMAddEarlyCSEPass(), LLVMAddFunction(), LLVMAddFunctionAttrsPass(), LLVMAddFunctionInliningPass(), LLVMAddGlobal(), LLVMAddGlobalDCEPass(), LLVMAddGlobalInAddressSpace(), LLVMAddGlobalMapping(), LLVMAddGlobalOptimizerPass(), LLVMAddGVNPass(), LLVMAddIncoming(), LLVMAddIndVarSimplifyPass(), LLVMAddInstructionCombiningPass(), LLVMAddInternalizePass(), LLVMAddIPConstantPropagationPass(), LLVMAddIPSCCPPass(), LLVMAddJumpThreadingPass(), LLVMAddLICMPass(), LLVMAddLoopDeletionPass(), LLVMAddLoopIdiomPass(), LLVMAddLoopRerollPass(), LLVMAddLoopRotatePass(), LLVMAddLoopUnrollPass(), LLVMAddLoopUnswitchPass(), LLVMAddLoopVectorizePass(), LLVMAddLowerExpectIntrinsicPass(), LLVMAddLowerSwitchPass(), LLVMAddMemCpyOptPass(), LLVMAddMergedLoadStoreMotionPass(), LLVMAddModule(), LLVMAddNamedMetadataOperand(), LLVMAddPartiallyInlineLibCallsPass(), LLVMAddPromoteMemoryToRegisterPass(), LLVMAddPruneEHPass(), LLVMAddReassociatePass(), LLVMAddScalarizerPass(), LLVMAddScalarReplAggregatesPass(), LLVMAddScalarReplAggregatesPassSSA(), LLVMAddScalarReplAggregatesPassWithThreshold(), LLVMAddSCCPPass(), LLVMAddScopedNoAliasAAPass(), LLVMAddSLPVectorizePass(), LLVMAddStripDeadPrototypesPass(), LLVMAddStripSymbolsPass(), LLVMAddTailCallEliminationPass(), LLVMAddTargetData(), LLVMAddTargetLibraryInfo(), LLVMAddTypeBasedAliasAnalysisPass(), LLVMAddVerifierPass(), LLVMAlignOf(), LLVMAppendBasicBlockInContext(), LLVMArrayType(), LLVMBasicBlockAsValue(), LLVMBlockAddress(), LLVMBuildAdd(), LLVMBuildAddrSpaceCast(), LLVMBuildAggregateRet(), LLVMBuildAlloca(), LLVMBuildAnd(), LLVMBuildArrayAlloca(), LLVMBuildArrayMalloc(), LLVMBuildAShr(), LLVMBuildAtomicRMW(), LLVMBuildBinOp(), LLVMBuildBitCast(), LLVMBuildBr(), LLVMBuildCall(), LLVMBuildCast(), LLVMBuildCondBr(), LLVMBuildExactSDiv(), LLVMBuildExtractElement(), LLVMBuildExtractValue(), LLVMBuildFAdd(), LLVMBuildFCmp(), LLVMBuildFDiv(), LLVMBuildFence(), LLVMBuildFMul(), LLVMBuildFNeg(), LLVMBuildFPCast(), LLVMBuildFPExt(), LLVMBuildFPToSI(), LLVMBuildFPToUI(), LLVMBuildFPTrunc(), LLVMBuildFree(), LLVMBuildFRem(), LLVMBuildFSub(), LLVMBuildGEP(), LLVMBuildGlobalString(), LLVMBuildGlobalStringPtr(), LLVMBuildICmp(), LLVMBuildInBoundsGEP(), LLVMBuildIndirectBr(), LLVMBuildInsertElement(), LLVMBuildInsertValue(), LLVMBuildIntCast(), LLVMBuildIntToPtr(), LLVMBuildInvoke(), LLVMBuildIsNotNull(), LLVMBuildIsNull(), LLVMBuildLandingPad(), LLVMBuildLoad(), LLVMBuildLShr(), LLVMBuildMalloc(), LLVMBuildMul(), LLVMBuildNeg(), LLVMBuildNot(), LLVMBuildNSWAdd(), LLVMBuildNSWMul(), LLVMBuildNSWNeg(), LLVMBuildNSWSub(), LLVMBuildNUWAdd(), LLVMBuildNUWMul(), LLVMBuildNUWNeg(), LLVMBuildNUWSub(), LLVMBuildOr(), LLVMBuildPhi(), LLVMBuildPointerCast(), LLVMBuildPtrDiff(), LLVMBuildPtrToInt(), LLVMBuildResume(), LLVMBuildRet(), LLVMBuildRetVoid(), LLVMBuildSDiv(), LLVMBuildSelect(), LLVMBuildSExt(), LLVMBuildSExtOrBitCast(), LLVMBuildShl(), LLVMBuildShuffleVector(), LLVMBuildSIToFP(), LLVMBuildSRem(), LLVMBuildStore(), LLVMBuildStructGEP(), LLVMBuildSub(), LLVMBuildSwitch(), LLVMBuildTrunc(), LLVMBuildTruncOrBitCast(), LLVMBuildUDiv(), LLVMBuildUIToFP(), LLVMBuildUnreachable(), LLVMBuildURem(), LLVMBuildVAArg(), LLVMBuildXor(), LLVMBuildZExt(), LLVMBuildZExtOrBitCast(), LLVMByteOrder(), LLVMCallFrameAlignmentOfType(), LLVMClearInsertionPosition(), LLVMConstAddrSpaceCast(), LLVMConstAllOnes(), LLVMConstArray(), LLVMConstBitCast(), LLVMConstFPCast(), LLVMConstFPExt(), LLVMConstFPToSI(), LLVMConstFPToUI(), LLVMConstFPTrunc(), LLVMConstInlineAsm(), LLVMConstIntCast(), LLVMConstIntToPtr(), LLVMConstNamedStruct(), LLVMConstNull(), LLVMConstPointerCast(), LLVMConstPtrToInt(), LLVMConstReal(), LLVMConstRealOfString(), LLVMConstRealOfStringAndSize(), LLVMConstSExt(), LLVMConstSExtOrBitCast(), LLVMConstSIToFP(), LLVMConstStringInContext(), LLVMConstStructInContext(), LLVMConstTrunc(), LLVMConstTruncOrBitCast(), LLVMConstUIToFP(), LLVMConstZExt(), LLVMConstZExtOrBitCast(), LLVMContextDispose(), LLVMContextSetDiagnosticHandler(), LLVMContextSetYieldCallback(), LLVMCopyStringRepOfTargetData(), LLVMCreateBuilderInContext(), LLVMCreateExecutionEngineForModule(), LLVMCreateFunctionPassManagerForModule(), LLVMCreateGenericValueOfFloat(), LLVMCreateInterpreterForModule(), LLVMCreateJITCompilerForModule(), LLVMCreateMCJITCompilerForModule(), LLVMCreateObjectFile(), LLVMCreateTargetMachine(), LLVMDeleteBasicBlock(), LLVMDisposeBuilder(), LLVMDisposeExecutionEngine(), LLVMDisposeGenericValue(), LLVMDisposeMCJITMemoryManager(), LLVMDisposeMemoryBuffer(), LLVMDisposeModule(), LLVMDisposeModuleProvider(), LLVMDisposeObjectFile(), LLVMDisposePassManager(), LLVMDisposeRelocationIterator(), LLVMDisposeSectionIterator(), LLVMDisposeSymbolIterator(), LLVMDisposeTargetData(), LLVMDisposeTargetMachine(), LLVMDoubleTypeInContext(), LLVMDumpModule(), LLVMDumpType(), LLVMDumpValue(), LLVMElementAtOffset(), LLVMFindFunction(), LLVMFloatTypeInContext(), LLVMFP128TypeInContext(), LLVMFunctionType(), LLVMGenericValueIntWidth(), LLVMGenericValueToFloat(), LLVMGenericValueToInt(), LLVMGenericValueToPointer(), LLVMGetAsString(), LLVMGetBasicBlockParent(), LLVMGetBasicBlockTerminator(), LLVMGetBitcodeModuleInContext(), LLVMGetBufferSize(), LLVMGetBufferStart(), LLVMGetCurrentDebugLocation(), LLVMGetDataLayout(), LLVMGetDiagInfoDescription(), LLVMGetDiagInfoSeverity(), LLVMGetElementAsConstant(), LLVMGetExecutionEngineTargetData(), LLVMGetExecutionEngineTargetMachine(), LLVMGetFirstFunction(), LLVMGetFirstGlobal(), LLVMGetFirstInstruction(), LLVMGetFirstUse(), LLVMGetICmpPredicate(), LLVMGetInsertBlock(), LLVMGetInstructionCallConv(), LLVMGetInstructionOpcode(), LLVMGetIntrinsicID(), LLVMGetLastFunction(), LLVMGetLastGlobal(), LLVMGetLastInstruction(), LLVMGetMDKindIDInContext(), LLVMGetMDNodeNumOperands(), LLVMGetMDNodeOperands(), LLVMGetMDString(), LLVMGetModuleContext(), LLVMGetNamedFunction(), LLVMGetNamedGlobal(), LLVMGetNamedMetadataNumOperands(), LLVMGetNamedMetadataOperands(), LLVMGetNextBasicBlock(), LLVMGetNextTarget(), LLVMGetNextUse(), LLVMGetNumOperands(), LLVMGetOperand(), LLVMGetOperandUse(), LLVMGetPointerToGlobal(), LLVMGetPreviousBasicBlock(), LLVMGetRelocationAddress(), LLVMGetRelocationOffset(), LLVMGetRelocations(), LLVMGetRelocationSymbol(), LLVMGetRelocationType(), LLVMGetRelocationTypeName(), LLVMGetRelocationValueString(), LLVMGetSectionAddress(), LLVMGetSectionContainsSymbol(), LLVMGetSectionContents(), LLVMGetSectionName(), LLVMGetSections(), LLVMGetSectionSize(), LLVMGetSymbolAddress(), LLVMGetSymbolName(), LLVMGetSymbols(), LLVMGetSymbolSize(), LLVMGetTarget(), LLVMGetTargetDescription(), LLVMGetTargetMachineCPU(), LLVMGetTargetMachineData(), LLVMGetTargetMachineFeatureString(), LLVMGetTargetMachineTarget(), LLVMGetTargetMachineTriple(), LLVMGetTargetName(), LLVMGetTypeByName(), LLVMGetTypeContext(), LLVMGetTypeKind(), LLVMGetUndef(), LLVMGetUsedValue(), LLVMGetUser(), LLVMGetValueName(), LLVMHalfTypeInContext(), LLVMInitializeAnalysis(), LLVMInitializeCodeGen(), LLVMInitializeCore(), LLVMInitializeInstCombine(), LLVMInitializeInstrumentation(), LLVMInitializeIPA(), LLVMInitializeIPO(), LLVMInitializeObjCARCOpts(), LLVMInitializeScalarOpts(), LLVMInitializeTarget(), LLVMInitializeTransformUtils(), LLVMInitializeVectorization(), LLVMInsertBasicBlockInContext(), LLVMInsertIntoBuilder(), LLVMInsertIntoBuilderWithName(), LLVMInt16TypeInContext(), LLVMInt1TypeInContext(), LLVMInt32TypeInContext(), LLVMInt64TypeInContext(), LLVMInt8TypeInContext(), LLVMIntPtrType(), LLVMIntPtrTypeForAS(), LLVMIntPtrTypeForASInContext(), LLVMIntPtrTypeInContext(), LLVMIntTypeInContext(), LLVMIsConstant(), LLVMIsConstantString(), LLVMIsNull(), LLVMIsRelocationIteratorAtEnd(), LLVMIsSectionIteratorAtEnd(), LLVMIsSymbolIteratorAtEnd(), LLVMIsUndef(), LLVMLabelTypeInContext(), LLVMLinkModules(), LLVMMDNodeInContext(), LLVMMDStringInContext(), LLVMModuleCreateWithNameInContext(), LLVMMoveBasicBlockAfter(), LLVMMoveBasicBlockBefore(), LLVMMoveToContainingSection(), LLVMMoveToNextRelocation(), LLVMMoveToNextSection(), LLVMMoveToNextSymbol(), LLVMOffsetOfElement(), LLVMParseBitcodeInContext(), LLVMParseIRInContext(), LLVMPassManagerBuilderDispose(), LLVMPassManagerBuilderPopulateFunctionPassManager(), LLVMPassManagerBuilderPopulateLTOPassManager(), LLVMPassManagerBuilderPopulateModulePassManager(), LLVMPassManagerBuilderSetDisableUnitAtATime(), LLVMPassManagerBuilderSetDisableUnrollLoops(), LLVMPassManagerBuilderSetOptLevel(), LLVMPassManagerBuilderSetSizeLevel(), LLVMPassManagerBuilderUseInlinerWithThreshold(), LLVMPointerSize(), LLVMPointerSizeForAS(), LLVMPointerType(), LLVMPositionBuilder(), LLVMPositionBuilderAtEnd(), LLVMPositionBuilderBefore(), LLVMPPCFP128TypeInContext(), LLVMPreferredAlignmentOfGlobal(), LLVMPreferredAlignmentOfType(), LLVMPrintModuleToFile(), LLVMPrintModuleToString(), LLVMPrintTypeToString(), LLVMPrintValueToString(), LLVMRemoveBasicBlockFromParent(), LLVMRemoveModule(), LLVMReplaceAllUsesWith(), LLVMRunFunction(), LLVMRunFunctionAsMain(), LLVMRunPassManager(), LLVMRunStaticConstructors(), LLVMRunStaticDestructors(), LLVMSetCurrentDebugLocation(), LLVMSetDataLayout(), LLVMSetInstDebugLocation(), LLVMSetInstructionCallConv(), LLVMSetModuleInlineAsm(), LLVMSetOperand(), LLVMSetTarget(), LLVMSetTargetMachineAsmVerbosity(), LLVMSetValueName(), LLVMSizeOf(), LLVMSizeOfTypeInBits(), LLVMStoreSizeOfType(), LLVMStructCreateNamed(), LLVMStructSetBody(), LLVMStructTypeInContext(), LLVMTargetHasAsmBackend(), LLVMTargetHasJIT(), LLVMTargetHasTargetMachine(), LLVMTargetMachineEmit(), LLVMTypeIsSized(), LLVMTypeOf(), LLVMValueIsBasicBlock(), LLVMVectorType(), LLVMVerifyModule(), LLVMVoidTypeInContext(), LLVMWriteBitcodeToFD(), LLVMWriteBitcodeToFile(), LLVMX86FP80TypeInContext(), and LLVMX86MMXTypeInContext().
Type** llvm::unwrap | ( | LLVMTypeRef * | Tys | ) | [inline] |
Module* llvm::unwrap | ( | LLVMModuleProviderRef | MP | ) | [inline] |
Value** llvm::unwrap | ( | LLVMValueRef * | Vals | ) | [inline] |
T** llvm::unwrap | ( | LLVMValueRef * | Vals, |
unsigned | Length | ||
) | [inline] |
Value * llvm::UpgradeBitCastExpr | ( | unsigned | Opc, |
Constant * | C, | ||
Type * | DestTy | ||
) |
This is an auto-upgrade for bitcast constant expression between pointers with different address spaces: the instruction is replaced by a pair ptrtoint+inttoptr.
Definition at line 580 of file AutoUpgrade.cpp.
References llvm::Value::getContext(), llvm::Type::getInt64Ty(), llvm::ConstantExpr::getIntToPtr(), llvm::Type::getPointerAddressSpace(), llvm::ConstantExpr::getPtrToInt(), llvm::Value::getType(), and llvm::Type::isPtrOrPtrVectorTy().
Instruction * llvm::UpgradeBitCastInst | ( | unsigned | Opc, |
Value * | V, | ||
Type * | DestTy, | ||
Instruction *& | Temp | ||
) |
This is an auto-upgrade for bitcast between pointers with different address spaces: the instruction is replaced by a pair ptrtoint+inttoptr.
Definition at line 558 of file AutoUpgrade.cpp.
References llvm::CastInst::Create(), llvm::Value::getContext(), llvm::Type::getInt64Ty(), llvm::Type::getPointerAddressSpace(), llvm::Value::getType(), IntToPtr, and llvm::Type::isPtrOrPtrVectorTy().
void llvm::UpgradeCallsToIntrinsic | ( | Function * | F | ) |
This is an auto-upgrade hook for any old intrinsic function syntaxes which need to have both the function updated as well as all calls updated to the new function. This should only be run in a post-processing fashion so that it can update all calls to the old function.
Definition at line 511 of file AutoUpgrade.cpp.
References llvm::Function::eraseFromParent(), UpgradeIntrinsicCall(), UpgradeIntrinsicFunction(), llvm::Value::user_begin(), and llvm::Value::user_end().
bool llvm::UpgradeDebugInfo | ( | Module & | M | ) |
Check the debug info version number, if it is out-dated, drop the debug info. Return true if module is modified.
Definition at line 602 of file AutoUpgrade.cpp.
References DEBUG_METADATA_VERSION, llvm::LLVMContext::diagnose(), llvm::Module::getContext(), getDebugMetadataVersionFromModule(), StripDebugInfo(), and llvm::IndexedInstrProf::Version.
Referenced by llvm::BitcodeReader::MaterializeModule().
This checks for global variables which should be upgraded. It returns true if it requires upgrading.
Definition at line 237 of file AutoUpgrade.cpp.
void llvm::UpgradeInstWithTBAATag | ( | Instruction * | I | ) |
If the TBAA tag for the given instruction uses the scalar TBAA format, we upgrade it to the struct-path aware TBAA format.
Definition at line 530 of file AutoUpgrade.cpp.
References llvm::MDNode::get(), llvm::Value::getContext(), llvm::Type::getInt64Ty(), llvm::Instruction::getMetadata(), llvm::Constant::getNullValue(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::LLVMContext::MD_tbaa, and llvm::Instruction::setMetadata().
Referenced by llvm::BitcodeReader::MaterializeModule().
void llvm::UpgradeIntrinsicCall | ( | CallInst * | CI, |
Function * | NewFn | ||
) |
This is the complement to the above, replacing a specific call to an intrinsic function with a call to the specified new function.
Definition at line 245 of file AutoUpgrade.cpp.
References llvm::CallInst::arg_operands(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::CallingConv::C, llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall2(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateCall3(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateICmpEQ(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateICmpSGT(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateInsertElement(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateLoad(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateSExt(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateShuffleVector(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateStore(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateTrunc(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateZExt(), llvm::StringRef::endswith(), llvm::Instruction::eraseFromParent(), llvm::ConstantInt::get(), llvm::MDNode::get(), llvm::VectorType::get(), llvm::ConstantVector::get(), llvm::UndefValue::get(), llvm::CallInst::getArgOperand(), llvm::CallInst::getCalledFunction(), llvm::Value::getContext(), llvm::Intrinsic::getDeclaration(), llvm::IRBuilderBase::getFalse(), llvm::Type::getFloatTy(), llvm::IRBuilderBase::getInt32(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::IRBuilderBase::getInt8(), llvm::Type::getInt8Ty(), llvm::Function::getIntrinsicID(), llvm::Module::getMDKindID(), llvm::Value::getName(), llvm::CallInst::getNumArgOperands(), llvm::Instruction::getParent(), llvm::GlobalValue::getParent(), llvm::Type::getPointerTo(), llvm::Value::getType(), llvm::PointerType::getUnqual(), llvm::Type::getVectorElementType(), llvm::Type::getVectorNumElements(), I, llvm_unreachable, llvm::SPII::Load, Name, Node, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::Value::replaceAllUsesWith(), llvm::StoreInst::setAlignment(), llvm::IRBuilderBase::SetInsertPoint(), llvm::Instruction::setMetadata(), llvm::Value::setName(), llvm::StringRef::startswith(), llvm::StringRef::str(), and llvm::StringRef::substr().
Referenced by llvm::BitcodeReader::Materialize(), llvm::BitcodeReader::MaterializeModule(), and UpgradeCallsToIntrinsic().
bool llvm::UpgradeIntrinsicFunction | ( | Function * | F, |
Function *& | NewFn | ||
) |
This is a more granular function that simply checks an intrinsic function for upgrading, and returns true if it requires upgrading. It may return null in NewFn if the all calls to the original intrinsic function should be transformed to non-function-call instructions.
Definition at line 224 of file AutoUpgrade.cpp.
References llvm::Intrinsic::getAttributes(), llvm::Function::getContext(), llvm::Function::getIntrinsicID(), llvm::Function::setAttributes(), and UpgradeIntrinsicFunction1().
Referenced by UpgradeCallsToIntrinsic().
void llvm::UpgradeMDStringConstant | ( | std::string & | String | ) |
Upgrade a metadata string constant in place.
Definition at line 615 of file AutoUpgrade.cpp.
static char* llvm::utohex_buffer | ( | IntTy | X, |
char * | BufferEnd, | ||
bool | LowerCase = false |
||
) | [inline, static] |
utohex_buffer - Emit the specified number into the buffer specified by BufferEnd, returning a pointer to the start of the string. This can be used like this: (note that the buffer must be large enough to handle any number): char Buffer[40]; printf("0x%s", utohex_buffer(X, Buffer+40));
This should only be used with unsigned types.
Definition at line 56 of file StringExtras.h.
References hexdigit(), and X.
Referenced by utohexstr(), and WriteConstantInternal().
static std::string llvm::utohexstr | ( | uint64_t | X, |
bool | LowerCase = false |
||
) | [inline, static] |
Definition at line 72 of file StringExtras.h.
References utohex_buffer().
Referenced by APIntToHexString(), llvm::yaml::escape(), llvm::MipsAsmPrinter::PrintAsmOperand(), and llvm::NVPTXFloatMCExpr::PrintImpl().
static std::string llvm::utostr | ( | uint64_t | X, |
bool | isNeg = false |
||
) | [inline, static] |
Definition at line 93 of file StringExtras.h.
Referenced by AddAliasScopeMetadata(), llvm::Attribute::getAsString(), llvm::BitsRecTy::getAsString(), llvm::VarBitInit::getAsString(), llvm::VarListElementInit::getAsString(), llvm::MCObjectFileInfo::getDwarfTypesSection(), llvm::EVT::getEVTString(), llvm::Intrinsic::getName(), llvm::SDNode::getOperationName(), getStaticStructorSection(), getTypePrefix(), itostr(), PrintStatistics(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), and llvm::AArch64SysReg::SysRegMapper::toString().
static std::string llvm::utostr_32 | ( | uint32_t | X, |
bool | isNeg = false |
||
) | [inline, static] |
Definition at line 77 of file StringExtras.h.
static size_t llvm::VarAndRedzoneSize | ( | size_t | Size, |
size_t | Alignment | ||
) | [static] |
Definition at line 43 of file ASanStackFrameLayout.cpp.
References RoundUpTo().
Referenced by ComputeASanStackFrameLayout().
bool llvm::vectorizeBasicBlock | ( | Pass * | P, |
BasicBlock & | BB, | ||
const VectorizeConfig & | C = VectorizeConfig() |
||
) |
Vectorize the BasicBlock.
BB | The BasicBlock to be vectorized |
P | The current running pass, should require AliasAnalysis and ScalarEvolution. After the vectorization, AliasAnalysis, ScalarEvolution and CFG are preserved. |
Definition at line 3206 of file BBVectorize.cpp.
bool llvm::verifyFunction | ( | const Function & | F, |
raw_ostream * | OS = nullptr |
||
) |
Check a function for errors, useful for use when debugging a pass.
If there are no errors, the function returns false. If an error is found, a message describing the error is written to OS (if non-null) and true is returned.
Definition at line 2598 of file Verifier.cpp.
References llvm::GlobalValue::isDeclaration().
Referenced by llvm::CodeExtractor::extractCodeRegion(), LLVMVerifyFunction(), and llvm::VerifierPass::run().
static void llvm::verifyIntrinsicTables | ( | ) | [static] |
Definition at line 249 of file X86IntrinsicsInfo.h.
References llvm::sys::path::begin(), llvm::sys::path::end(), IntrinsicsWithChain, and IntrinsicsWithoutChain.
bool llvm::verifyModule | ( | const Module & | M, |
raw_ostream * | OS = nullptr |
||
) |
Check a module for errors.
If there are no errors, the function returns false. If an error is found, a message describing the error is written to OS (if non-null) and true is returned.
Definition at line 2610 of file Verifier.cpp.
References llvm::Module::begin(), llvm::Module::end(), and I.
Referenced by LLVMVerifyModule(), and llvm::VerifierPass::run().
void llvm::ViewGraph | ( | const GraphType & | G, |
const Twine & | Name, | ||
bool | ShortNames = false , |
||
const Twine & | Title = "" , |
||
GraphProgram::Name | Program = GraphProgram::DOT |
||
) |
ViewGraph - Emit a dot graph, run 'dot', run gv on the postscript file, then cleanup. For use from the debugger.
Definition at line 349 of file GraphWriter.h.
References DisplayGraph(), and WriteGraph().
Referenced by INITIALIZE_PASS(), llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsModuleViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), llvm::BlockFrequencyInfo::view(), llvm::MachineBlockFrequencyInfo::view(), llvm::EdgeBundles::view(), llvm::MachineFunction::viewCFG(), llvm::MachineFunction::viewCFGOnly(), llvm::Function::viewCFGOnly(), llvm::SelectionDAG::viewGraph(), llvm::ScheduleDAGMI::viewGraph(), and llvm::ScheduleDAG::viewGraph().
void llvm::visitAll | ( | const SCEV * | Root, |
SV & | Visitor | ||
) |
Use SCEVTraversal to visit all nodes in the givien expression tree.
Definition at line 629 of file ScalarEvolutionExpressions.h.
References T, and llvm::SCEVTraversal< SV >::visitAll().
Referenced by llvm::SCEVAddRecExpr::collectParametricTerms(), llvm::ScalarEvolution::hasOperand(), and isSafeToExpand().
LLVMCodeModel llvm::wrap | ( | CodeModel::Model | Model | ) | [inline] |
Definition at line 72 of file CodeGen.h.
References llvm::CodeModel::Default, llvm::CodeModel::JITDefault, llvm::CodeModel::Kernel, llvm::CodeModel::Large, llvm_unreachable, LLVMCodeModelDefault, LLVMCodeModelJITDefault, LLVMCodeModelKernel, LLVMCodeModelLarge, LLVMCodeModelMedium, LLVMCodeModelSmall, llvm::CodeModel::Medium, and llvm::CodeModel::Small.
LLVMContextRef* llvm::wrap | ( | const LLVMContext ** | Tys | ) | [inline] |
Definition at line 192 of file LLVMContext.h.
LLVMTargetDataRef llvm::wrap | ( | const DataLayout * | P | ) | [inline] |
Definition at line 457 of file DataLayout.h.
Referenced by LLVMAddAlias(), LLVMAddFunction(), LLVMAddGlobal(), LLVMAddGlobalInAddressSpace(), LLVMAlignOf(), LLVMAppendBasicBlockInContext(), LLVMArrayType(), LLVMBasicBlockAsValue(), LLVMBlockAddress(), LLVMBuildAdd(), LLVMBuildAddrSpaceCast(), LLVMBuildAggregateRet(), LLVMBuildAlloca(), LLVMBuildAnd(), LLVMBuildArrayAlloca(), LLVMBuildArrayMalloc(), LLVMBuildAShr(), LLVMBuildAtomicRMW(), LLVMBuildBinOp(), LLVMBuildBitCast(), LLVMBuildBr(), LLVMBuildCall(), LLVMBuildCast(), LLVMBuildCondBr(), LLVMBuildExactSDiv(), LLVMBuildExtractElement(), LLVMBuildExtractValue(), LLVMBuildFAdd(), LLVMBuildFCmp(), LLVMBuildFDiv(), LLVMBuildFence(), LLVMBuildFMul(), LLVMBuildFNeg(), LLVMBuildFPCast(), LLVMBuildFPExt(), LLVMBuildFPToSI(), LLVMBuildFPToUI(), LLVMBuildFPTrunc(), LLVMBuildFree(), LLVMBuildFRem(), LLVMBuildFSub(), LLVMBuildGEP(), LLVMBuildGlobalString(), LLVMBuildGlobalStringPtr(), LLVMBuildICmp(), LLVMBuildInBoundsGEP(), LLVMBuildIndirectBr(), LLVMBuildInsertElement(), LLVMBuildInsertValue(), LLVMBuildIntCast(), LLVMBuildIntToPtr(), LLVMBuildInvoke(), LLVMBuildIsNotNull(), LLVMBuildIsNull(), LLVMBuildLandingPad(), LLVMBuildLoad(), LLVMBuildLShr(), LLVMBuildMalloc(), LLVMBuildMul(), LLVMBuildNeg(), LLVMBuildNot(), LLVMBuildNSWAdd(), LLVMBuildNSWMul(), LLVMBuildNSWNeg(), LLVMBuildNSWSub(), LLVMBuildNUWAdd(), LLVMBuildNUWMul(), LLVMBuildNUWNeg(), LLVMBuildNUWSub(), LLVMBuildOr(), LLVMBuildPhi(), LLVMBuildPointerCast(), LLVMBuildPtrDiff(), LLVMBuildPtrToInt(), LLVMBuildResume(), LLVMBuildRet(), LLVMBuildRetVoid(), LLVMBuildSDiv(), LLVMBuildSelect(), LLVMBuildSExt(), LLVMBuildSExtOrBitCast(), LLVMBuildShl(), LLVMBuildShuffleVector(), LLVMBuildSIToFP(), LLVMBuildSRem(), LLVMBuildStore(), LLVMBuildStructGEP(), LLVMBuildSub(), LLVMBuildSwitch(), LLVMBuildTrunc(), LLVMBuildTruncOrBitCast(), LLVMBuildUDiv(), LLVMBuildUIToFP(), LLVMBuildUnreachable(), LLVMBuildURem(), LLVMBuildVAArg(), LLVMBuildXor(), LLVMBuildZExt(), LLVMBuildZExtOrBitCast(), LLVMConstAdd(), LLVMConstAddrSpaceCast(), LLVMConstAllOnes(), LLVMConstAnd(), LLVMConstArray(), LLVMConstAShr(), LLVMConstBitCast(), LLVMConstExactSDiv(), LLVMConstExtractElement(), LLVMConstExtractValue(), LLVMConstFAdd(), LLVMConstFCmp(), LLVMConstFDiv(), LLVMConstFMul(), LLVMConstFNeg(), LLVMConstFPCast(), LLVMConstFPExt(), LLVMConstFPToSI(), LLVMConstFPToUI(), LLVMConstFPTrunc(), LLVMConstFRem(), LLVMConstFSub(), LLVMConstGEP(), LLVMConstICmp(), LLVMConstInBoundsGEP(), LLVMConstInlineAsm(), LLVMConstInsertElement(), LLVMConstInsertValue(), LLVMConstInt(), LLVMConstIntCast(), LLVMConstIntOfArbitraryPrecision(), LLVMConstIntOfString(), LLVMConstIntOfStringAndSize(), LLVMConstIntToPtr(), LLVMConstLShr(), LLVMConstMul(), LLVMConstNamedStruct(), LLVMConstNeg(), LLVMConstNot(), LLVMConstNSWAdd(), LLVMConstNSWMul(), LLVMConstNSWNeg(), LLVMConstNSWSub(), LLVMConstNull(), LLVMConstNUWAdd(), LLVMConstNUWMul(), LLVMConstNUWNeg(), LLVMConstNUWSub(), LLVMConstOr(), LLVMConstPointerCast(), LLVMConstPointerNull(), LLVMConstPtrToInt(), LLVMConstReal(), LLVMConstRealOfString(), LLVMConstRealOfStringAndSize(), LLVMConstSDiv(), LLVMConstSelect(), LLVMConstSExt(), LLVMConstSExtOrBitCast(), LLVMConstShl(), LLVMConstShuffleVector(), LLVMConstSIToFP(), LLVMConstSRem(), LLVMConstStringInContext(), LLVMConstStructInContext(), LLVMConstSub(), LLVMConstTrunc(), LLVMConstTruncOrBitCast(), LLVMConstUDiv(), LLVMConstUIToFP(), LLVMConstURem(), LLVMConstVector(), LLVMConstXor(), LLVMConstZExt(), LLVMConstZExtOrBitCast(), LLVMContextCreate(), LLVMCreateBuilderInContext(), LLVMCreateExecutionEngineForModule(), LLVMCreateFunctionPassManagerForModule(), LLVMCreateGenericValueOfFloat(), LLVMCreateGenericValueOfInt(), LLVMCreateGenericValueOfPointer(), LLVMCreateInterpreterForModule(), LLVMCreateJITCompilerForModule(), LLVMCreateMCJITCompilerForModule(), LLVMCreateMemoryBufferWithContentsOfFile(), LLVMCreateMemoryBufferWithMemoryRange(), LLVMCreateMemoryBufferWithMemoryRangeCopy(), LLVMCreateMemoryBufferWithSTDIN(), LLVMCreateObjectFile(), LLVMCreatePassManager(), LLVMCreateSimpleMCJITMemoryManager(), LLVMCreateTargetData(), LLVMCreateTargetMachine(), LLVMFindFunction(), LLVMFunctionType(), LLVMGetBasicBlockParent(), LLVMGetBasicBlocks(), LLVMGetBasicBlockTerminator(), LLVMGetBitcodeModuleInContext(), LLVMGetCurrentDebugLocation(), LLVMGetElementAsConstant(), LLVMGetElementType(), LLVMGetEntryBasicBlock(), LLVMGetExecutionEngineTargetData(), LLVMGetExecutionEngineTargetMachine(), LLVMGetFirstBasicBlock(), LLVMGetFirstFunction(), LLVMGetFirstGlobal(), LLVMGetFirstInstruction(), LLVMGetFirstParam(), LLVMGetFirstTarget(), LLVMGetFirstUse(), LLVMGetGlobalContext(), LLVMGetGlobalParent(), LLVMGetGlobalPassRegistry(), LLVMGetIncomingBlock(), LLVMGetIncomingValue(), LLVMGetInitializer(), LLVMGetInsertBlock(), LLVMGetInstructionParent(), LLVMGetLastBasicBlock(), LLVMGetLastFunction(), LLVMGetLastGlobal(), LLVMGetLastInstruction(), LLVMGetLastParam(), LLVMGetMDNodeOperands(), LLVMGetMetadata(), LLVMGetModuleContext(), LLVMGetNamedFunction(), LLVMGetNamedGlobal(), LLVMGetNamedMetadataOperands(), LLVMGetNextBasicBlock(), LLVMGetNextFunction(), LLVMGetNextGlobal(), LLVMGetNextInstruction(), LLVMGetNextParam(), LLVMGetNextTarget(), LLVMGetNextUse(), LLVMGetOperand(), LLVMGetOperandUse(), LLVMGetParam(), LLVMGetParamParent(), LLVMGetParams(), LLVMGetParamTypes(), LLVMGetPreviousBasicBlock(), LLVMGetPreviousFunction(), LLVMGetPreviousGlobal(), LLVMGetPreviousInstruction(), LLVMGetPreviousParam(), LLVMGetRelocations(), LLVMGetRelocationSymbol(), LLVMGetReturnType(), LLVMGetSections(), LLVMGetStructElementTypes(), LLVMGetSwitchDefaultDest(), LLVMGetSymbols(), LLVMGetTargetFromName(), LLVMGetTargetFromTriple(), LLVMGetTargetMachineData(), LLVMGetTargetMachineTarget(), LLVMGetTypeByName(), LLVMGetTypeContext(), LLVMGetUndef(), LLVMGetUsedValue(), LLVMGetUser(), LLVMInsertBasicBlockInContext(), LLVMIntPtrType(), LLVMIntPtrTypeForAS(), LLVMIntPtrTypeForASInContext(), LLVMIntPtrTypeInContext(), LLVMIntTypeInContext(), LLVMLabelTypeInContext(), LLVMMDNodeInContext(), LLVMMDStringInContext(), LLVMModuleCreateWithName(), LLVMModuleCreateWithNameInContext(), LLVMParseBitcode(), LLVMParseBitcodeInContext(), LLVMParseIRInContext(), LLVMPassManagerBuilderCreate(), LLVMPointerType(), LLVMRemoveModule(), LLVMRunFunction(), LLVMSizeOf(), LLVMStructCreateNamed(), LLVMStructTypeInContext(), LLVMTypeOf(), LLVMValueAsBasicBlock(), LLVMVectorType(), and LLVMVoidTypeInContext().
LLVMTypeRef* llvm::wrap | ( | Type ** | Tys | ) | [inline] |
LLVMValueRef* llvm::wrap | ( | const Value ** | Vals | ) | [inline] |
static void llvm::WriteAsOperandInternal | ( | raw_ostream & | Out, |
const Value * | V, | ||
TypePrinting * | TypePrinter, | ||
SlotTracker * | Machine, | ||
const Module * | Context | ||
) | [static] |
Definition at line 1278 of file AsmWriter.cpp.
Referenced by llvm::Value::printAsOperand(), llvm::AssemblyWriter::printFunction(), llvm::AssemblyWriter::printGlobal(), llvm::AssemblyWriter::printInstruction(), WriteConstantInternal(), llvm::AssemblyWriter::writeOperand(), and llvm::AssemblyWriter::writeParamOperand().
static void llvm::writeAtomicRMWOperation | ( | raw_ostream & | Out, |
AtomicRMWInst::BinOp | Op | ||
) | [static] |
Definition at line 923 of file AsmWriter.cpp.
References llvm::AtomicRMWInst::Add, llvm::AtomicRMWInst::And, llvm::AtomicRMWInst::Max, llvm::AtomicRMWInst::Min, llvm::AtomicRMWInst::Nand, llvm::AtomicRMWInst::Or, llvm::AtomicRMWInst::Sub, llvm::AtomicRMWInst::UMax, llvm::AtomicRMWInst::UMin, llvm::AtomicRMWInst::Xchg, and llvm::AtomicRMWInst::Xor.
Referenced by llvm::AssemblyWriter::printInstruction().
void llvm::WriteBitcodeToFile | ( | const Module * | M, |
raw_ostream & | Out | ||
) |
WriteBitcodeToFile - Write the specified module to the specified raw output stream. For streams where it matters, the given stream should be in "binary" mode.
WriteBitcodeToFile - Write the specified module to the specified output stream.
Definition at line 2002 of file BitcodeWriter.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), DarwinBCHeaderSize, llvm::BitstreamWriter::Emit(), EmitDarwinBCHeaderAndTrailer(), llvm::SmallVectorTemplateCommon< T >::front(), llvm::Module::getTargetTriple(), llvm::SmallVectorImpl< T >::insert(), llvm::SmallVectorImpl< T >::reserve(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::raw_ostream::write(), and WriteModule().
Referenced by LLVMWriteBitcodeToFD(), LLVMWriteBitcodeToFile(), llvm::BitcodeWriterPass::run(), and llvm::LTOCodeGenerator::writeMergedModules().
static void llvm::WriteConstantInternal | ( | raw_ostream & | Out, |
const Constant * | CV, | ||
TypePrinting & | TypePrinter, | ||
SlotTracker * | Machine, | ||
const Module * | Context | ||
) | [static] |
Definition at line 974 of file AsmWriter.cpp.
References llvm::lltok::APFloat, llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convert(), llvm::Constant::getAggregateElement(), llvm::APInt::getBitWidth(), llvm::MDNode::getNumOperands(), llvm::APInt::getRawData(), llvm::Value::getType(), llvm::Type::getVectorElementType(), llvm::Type::getVectorNumElements(), llvm::APInt::getZExtValue(), llvm::APFloat::IEEEdouble, llvm::APFloat::IEEEhalf, llvm::APFloat::IEEEquad, llvm::APFloat::IEEEsingle, llvm_unreachable, Machine, llvm::APFloat::PPCDoubleDouble, llvm::TypePrinting::print(), PrintEscapedString(), llvm::APFloat::rmNearestTiesToEven, llvm::SmallString< InternalLen >::str(), llvm::tgtok::StrVal, utohex_buffer(), WriteAsOperandInternal(), and llvm::APFloat::x87DoubleExtended.
Referenced by llvm::Value::print().
raw_ostream& llvm::WriteGraph | ( | raw_ostream & | O, |
const EdgeBundles & | G, | ||
bool | ShortNames, | ||
const Twine & | Title | ||
) |
Definition at line 73 of file EdgeBundles.cpp.
References G.
raw_ostream& llvm::WriteGraph | ( | raw_ostream & | O, |
const GraphType & | G, | ||
bool | ShortNames = false , |
||
const Twine & | Title = "" |
||
) |
Definition at line 310 of file GraphWriter.h.
References llvm::GraphWriter< GraphType >::writeGraph().
Referenced by INITIALIZE_PASS(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsModulePrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), ViewGraph(), and WriteGraph().
std::string llvm::WriteGraph | ( | const GraphType & | G, |
const Twine & | Name, | ||
bool | ShortNames = false , |
||
const Twine & | Title = "" |
||
) |
Definition at line 325 of file GraphWriter.h.
References createGraphFilename(), errs(), N, llvm::Twine::str(), and WriteGraph().
static void llvm::WriteMDNodeBodyInternal | ( | raw_ostream & | Out, |
const MDNode * | Node, | ||
TypePrinting * | TypePrinter, | ||
SlotTracker * | Machine, | ||
const Module * | Context | ||
) | [static] |
Definition at line 1254 of file AsmWriter.cpp.
Referenced by llvm::AssemblyWriter::printMDNodeBody().
static void llvm::WriteMDNodeComment | ( | const MDNode * | Node, |
formatted_raw_ostream & | Out | ||
) | [static] |
Definition at line 2337 of file AsmWriter.cpp.
References llvm::dwarf::DW_TAG_user_base, getBitWidth(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::DIDescriptor::getTag(), llvm::formatted_raw_ostream::PadToColumn(), llvm::DIDescriptor::print(), llvm::dwarf::TagString(), and llvm::DIDescriptor::Verify().
Referenced by llvm::AssemblyWriter::printMDNodeBody().
static void llvm::WriteOptimizationInfo | ( | raw_ostream & | Out, |
const User * | U | ||
) | [static] |
Definition at line 941 of file AsmWriter.cpp.
Referenced by llvm::AssemblyWriter::printInstruction().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst llvm::AddrSpaceCast |
Definition at line 158 of file InstVisitor.h.
Referenced by canVectorizeInst(), llvm::CastInst::castIsValid(), llvm::AddrSpaceCastInst::classof(), CleanupConstantGlobalUsers(), computeKnownBits(), ConstantFoldCastInstruction(), ConstantFoldInstOperands(), llvm::CastInst::Create(), llvm::IRBuilder< true, TargetFolder >::CreateAddrSpaceCast(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), DecomposeGEPExpression(), determinePointerReadAttrs(), llvm::ConstantExpr::getAddrSpaceCast(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::Instruction::getOpcodeName(), GetPointerBaseWithConstantOffset(), GetUnderlyingObject(), llvm::ConstantExpr::getWithOperands(), INITIALIZE_PASS(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), IsConstantOffsetFromGlobal(), llvm::CastInst::isEliminableCastPair(), llvm::CastInst::isNoopCast(), nvptx::LowerConstant(), PointerMayBeCaptured(), pointsToConstantGlobal(), llvm::Value::stripAndAccumulateInBoundsConstantOffsets(), and tryPromoteAllocaToVector().
Definition at line 133 of file InstVisitor.h.
Referenced by llvm::UnaryInstruction::classof(), llvm::AllocaInst::classof(), collectFailStats(), computeKnownBits(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), isSafeToSpeculativelyExecute(), isUnmovableInstruction(), llvm::FastISel::selectOperator(), and WriteInstruction().
Definition at line 55 of file NVPTXBaseInfo.h.
Referenced by AddThumb1SBit().
const char llvm::AsmRewritePrecedence[] |
{ 0, 1, 1, 1, 3, 3, 2, 2, 4, 1 }
Definition at line 44 of file MCTargetAsmParser.h.
Referenced by rewritesSort().
char & llvm::AtomicExpandID = AtomicExpand::ID |
AtomicExpandID -- Lowers atomic operations in terms of either cmpxchg load-linked/store-conditional loops.
Definition at line 54 of file AtomicExpandPass.cpp.
const unsigned char llvm::BitReverseTable256[256] [static] |
Macro compressed bit reversal table for 256 bits.
http://graphics.stanford.edu/~seander/bithacks.html#BitReverseTable
Definition at line 228 of file MathExtras.h.
Referenced by reverseBits().
char & llvm::BranchFolderPassID = BranchFolderPass::ID |
BranchFolding - This pass performs machine code CFG based optimizations to delete branches to branches, eliminate branches to successor blocks (creating fall throughs), and eliminating branches over branches.
Definition at line 85 of file BranchFolding.cpp.
Referenced by llvm::TargetPassConfig::addMachineLateOptimization(), and overridePass().
Referenced by llvm::UnifyFunctionExitNodes::getAnalysisUsage().
const unsigned llvm::CodeModelLargeSize = 256 [static] |
Definition at line 17 of file XCoreTargetObjectFile.h.
Referenced by IsSmallObject(), and llvm::XCoreTargetObjectFile::SelectSectionForGlobal().
char & llvm::DeadMachineInstructionElimID = DeadMachineInstructionElim::ID |
DeadMachineInstructionElim - This pass removes dead machine instructions.
Definition at line 51 of file DeadMachineInstructionElim.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization(), and overridePass().
char & llvm::DemoteRegisterToMemoryID = RegToMem::ID |
Definition at line 130 of file Reg2Mem.cpp.
const uint16_t llvm::DRegList[] [static] |
{ ARM::D0, ARM::D1, ARM::D2, ARM::D3, ARM::D4, ARM::D5, ARM::D6, ARM::D7 }
Definition at line 167 of file ARMCallingConv.h.
Referenced by CC_ARM_AAPCS_Custom_HA().
cl::opt<bool> llvm::DumpCriticalPathLength("misched-dcpl", cl::Hidden, cl::desc("Print critical path length to stdout")) |
Referenced by llvm::GenericScheduler::registerRoots(), and llvm::PostGenericScheduler::registerRoots().
char & llvm::EarlyIfConverterID = EarlyIfConverter::ID |
EarlyIfConverter - This pass performs if-conversion on SSA form by inserting cmov instructions.
Definition at line 608 of file EarlyIfConversion.cpp.
Referenced by overridePass().
char& llvm::EdgeBundlesID |
EdgeBundles analysis - Bundle machine CFG edges.
EnableDebugBuffering - This defaults to false. If true, the debug stream will install signal handlers to dump any buffered debug output. It allows clients to selectively allow the debug stream to install signal handlers if they are certain there will be no conflict.
EnableDebugBuffering - Turn on signal handler installation.
Definition at line 135 of file Debug.cpp.
Referenced by dbgs().
cl::opt<bool> llvm::EnablePatchPointLiveness("enable-patchpoint-liveness", cl::Hidden, cl::init(true), cl::desc("Enable PatchPoint Liveness Analysis Pass")) |
Referenced by llvm::StackMapLiveness::runOnMachineFunction().
Definition at line 23 of file TableGen/Error.cpp.
Referenced by PrintMessage(), and TableGenMain().
char & llvm::ExpandISelPseudosID = ExpandISelPseudos::ID |
ExpandISelPseudos - This pass expands pseudo-instructions.
Definition at line 44 of file ExpandISelPseudos.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses().
char & llvm::ExpandPostRAPseudosID = ExpandPostRA::ID |
ExpandPostRAPseudos - This pass expands pseudo instructions after register allocation.
Definition at line 60 of file ExpandPostRAPseudos.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst llvm::ExtractValue |
Definition at line 174 of file InstVisitor.h.
Referenced by llvm::UnaryInstruction::classof(), llvm::ExtractValueInst::classof(), collectFailStats(), computeKnownBits(), ComputeSpeculationCost(), llvm::ConstantExprKeyType::create(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getExtractValue(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getWithOperands(), llvm::ConstantExpr::hasIndices(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::FastISel::selectOperator(), and WriteInstruction().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst llvm::FCmp |
Definition at line 164 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateShuffled(), llvm::CmpInst::classof(), llvm::FCmpInst::classof(), collectFailStats(), ConstantFoldBinaryInstruction(), ConstantFoldInstOperands(), llvm::ConstantExprKeyType::create(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getFCmp(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), getReductionBinOp(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::ConstantExpr::isCompare(), SimplifyInstruction(), ThreadCmpOverSelect(), WriteConstants(), and WriteInstruction().
char & llvm::FinalizeMachineBundlesID = FinalizeMachineBundles::ID |
FinalizeMachineBundles - This pass finalize machine instruction bundles (created earlier, e.g. during pre-RA scheduling).
Definition at line 86 of file MachineInstrBundle.cpp.
Definition at line 19 of file HexagonSelectionDAGInfo.cpp.
Referenced by llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), and llvm::HexagonTargetLowering::LowerCall().
cl::opt<bool> llvm::ForceBottomUp("misched-bottomup", cl::Hidden, cl::desc("Force bottom-up list scheduling")) |
cl::opt<bool> llvm::ForceTopDown("misched-topdown", cl::Hidden, cl::desc("Force top-down list scheduling")) |
Definition at line 154 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateShuffled(), llvm::CastInst::castIsValid(), llvm::FPExtInst::classof(), collectFailStats(), computeKnownBits(), ConstantFoldCastInstruction(), ConstantFoldInstOperands(), llvm::CastInst::Create(), llvm::CastInst::CreateFPCast(), llvm::IRBuilder< true, TargetFolder >::CreateFPExt(), createReplacementInstr(), evaluateFCmpRelation(), evaluateICmpRelation(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::CastInst::isNoopCast(), LookThroughFPExtensions(), llvm::InstCombiner::visitFCmpInst(), and llvm::InstCombiner::visitFPTrunc().
Definition at line 150 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateShuffled(), llvm::CastInst::castIsValid(), llvm::FPToSIInst::classof(), collectFailStats(), computeKnownBits(), ConstantFoldCastInstruction(), ConstantFoldInstOperands(), llvm::CastInst::Create(), llvm::IRBuilder< true, TargetFolder >::CreateFPToSI(), createReplacementInstr(), evaluateICmpRelation(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::ConstantExpr::getFPToSI(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::CastInst::isNoopCast(), and llvm::FastISel::selectOperator().
char & llvm::GCMachineCodeAnalysisID = GCMachineCodeAnalysis::ID |
GCMachineCodeAnalysis - Target-independent pass to mark safe points in machine code. Must be added very late during code generation, just prior to output, and importantly after all CFG transformations (such as branch folding).
Definition at line 331 of file GCStrategy.cpp.
Referenced by llvm::TargetPassConfig::addGCPasses().
get_array_pod_sort_comparator - This is an internal helper function used to get type deduction of T right.
Definition at line 314 of file STLExtras.h.
Referenced by array_pod_sort().
const float llvm::huge_valf = HUGE_VALF |
Definition at line 647 of file MathExtras.h.
Referenced by llvm::LiveInterval::isSpillable(), and llvm::LiveInterval::markNotSpillable().
char & llvm::IfConverterID = IfConverter::ID |
IfConverter - This pass performs machine code if conversion.
Definition at line 268 of file IfConversion.cpp.
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst llvm::InsertElement |
Definition at line 172 of file InstVisitor.h.
Referenced by CanEvaluateShuffled(), CheapToScalarize(), llvm::InsertElementInst::classof(), collectFailStats(), ComputeSpeculationCost(), ConstantFoldInstOperands(), llvm::ConstantExprKeyType::create(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getInsertElement(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), WriteConstants(), and WriteInstruction().
char& llvm::InstructionNamerID |
Remove redundant false char & llvm::InstructionSimplifierID = InstSimplifier::ID |
Definition at line 111 of file SimplifyInstructions.cpp.
host_char_bit * static_cast<unsigned int>(sizeof(integerPart))
Definition at line 42 of file APInt.h.
Referenced by llvm::APFloat::convertFromSignExtendedInteger(), llvm::SelectionDAG::getNode(), lostFractionThroughTruncation(), llvm::APFloat::mod(), partAsHex(), partCountForBits(), llvm::APFloat::remainder(), llvm::APInt::tcClearBit(), llvm::APInt::tcDivide(), llvm::APInt::tcExtract(), llvm::APInt::tcExtractBit(), llvm::APInt::tcLSB(), llvm::APInt::tcMSB(), llvm::APInt::tcMultiplyPart(), llvm::APInt::tcSetBit(), llvm::APInt::tcSetLeastSignificantBits(), llvm::APInt::tcShiftLeft(), llvm::APInt::tcShiftRight(), and ulpsFromBoundary().
const IntrinsicData llvm::IntrinsicsWithChain[] [static] |
Definition at line 48 of file X86IntrinsicsInfo.h.
Referenced by getIntrinsicWithChain(), and verifyIntrinsicTables().
const IntrinsicData llvm::IntrinsicsWithoutChain[] [static] |
Definition at line 123 of file X86IntrinsicsInfo.h.
Referenced by getIntrinsicWithoutChain(), and verifyIntrinsicTables().
Definition at line 156 of file InstVisitor.h.
Referenced by llvm::CastInst::castIsValid(), llvm::IntToPtrInst::classof(), collectFailStats(), computeKnownBits(), ConstantFoldCastInstruction(), ConstantFoldCompareInstOperands(), ConstantFoldInstOperands(), ConstantFoldLoadThroughBitcast(), llvm::CastInst::Create(), llvm::ConstantFolder::CreateIntToPtr(), llvm::TargetFolder::CreateIntToPtr(), llvm::NoFolder::CreateIntToPtr(), llvm::IRBuilder< true, TargetFolder >::CreateIntToPtr(), createReplacementInstr(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), GetConstantInt(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::objcarc::GetInstructionClass(), llvm::ConstantExpr::getIntToPtr(), llvm::Instruction::getOpcodeName(), getUnderlyingObjects(), llvm::ConstantExpr::getWithOperands(), llvm::FastISel::hasTrivialKill(), InstCombineStoreToCast(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), isEliminableCastPair(), llvm::CastInst::isNoopCast(), isSimpleEnoughValueToCommitHelper(), nvptx::LowerConstant(), lowerConstant(), ReadDataFromGlobal(), llvm::FastISel::selectOperator(), llvm::FastISel::selectPatchpoint(), SymbolicallyEvaluateGEP(), UpgradeBitCastInst(), llvm::InstCombiner::visitGetElementPtrInst(), and llvm::InstCombiner::visitICmpInst().
const int llvm::kAsanStackLeftRedzoneMagic = 0xf1 [static] |
Definition at line 24 of file ASanStackFrameLayout.h.
Referenced by ComputeASanStackFrameLayout().
const int llvm::kAsanStackMidRedzoneMagic = 0xf2 [static] |
Definition at line 25 of file ASanStackFrameLayout.h.
Referenced by ComputeASanStackFrameLayout().
const int llvm::kAsanStackRightRedzoneMagic = 0xf3 [static] |
Definition at line 26 of file ASanStackFrameLayout.h.
Referenced by ComputeASanStackFrameLayout().
const size_t llvm::kMinAlignment = 16 [static] |
Definition at line 34 of file ASanStackFrameLayout.cpp.
Referenced by ComputeASanStackFrameLayout().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst ExtractValueInst llvm::LandingPad |
Definition at line 176 of file InstVisitor.h.
Referenced by llvm::LandingPadInst::classof(), collectFailStats(), llvm::EHStreamer::computeCallSiteTable(), llvm::EHStreamer::emitExceptionTable(), llvm::Instruction::getOpcodeName(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), isSafeToSpeculativelyExecute(), isUnmovableInstruction(), LLVMAddClause(), LLVMSetCleanup(), llvm::SelectionDAGBuilder::LowerCallTo(), and WriteInstruction().
char & llvm::LCSSAID = LCSSA::ID |
Definition at line 282 of file LCSSA.cpp.
Referenced by SplitCriticalEdge(), and UpdateAnalysisInformation().
char & llvm::LiveIntervalsID = LiveIntervals::ID |
LiveIntervals - This analysis keeps track of the live ranges of virtual and physical registers.
Definition at line 48 of file LiveIntervalAnalysis.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc().
Live Stack Slot false char & llvm::LiveStacksID = LiveStacks::ID |
LiveStacks pass. An analysis keeping track of the liveness of stack slots.
Definition at line 36 of file LiveStackAnalysis.cpp.
char & llvm::LiveVariablesID = LiveVariables::ID |
LiveVariables pass - This pass computes the set of blocks in which each variable is life and sets machine operand kill flags.
Definition at line 45 of file LiveVariables.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc().
char & llvm::LocalStackSlotAllocationID = LocalStackSlotPass::ID |
LocalStackSlotAllocation - This pass assigns local frame indices to stack slots relative to one another and allocates base registers to access them when it is estimated by the target to be out of range of normal frame pointer or stack pointer index addressing.
Definition at line 96 of file LocalStackSlotAllocation.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses(), and llvm::TargetPassConfig::addMachineSSAOptimization().
loop Canonicalize natural false char & llvm::LoopSimplifyID = LoopSimplify::ID |
Definition at line 789 of file LoopSimplify.cpp.
Referenced by SplitCriticalEdge().
char& llvm::LowerInvokePassID |
char& llvm::LowerSwitchID |
Referenced by llvm::UnifyFunctionExitNodes::getAnalysisUsage().
Definition at line 124 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateShifted(), CanEvaluateShuffled(), CanEvaluateTruncated(), CanEvaluateZExtd(), collectFailStats(), computeKnownBits(), ComputeSpeculationCost(), ConstantFoldBinaryInstruction(), createReplacementInstr(), ExtractConstantBytes(), llvm::InstCombiner::FoldICmpShrCst(), llvm::InstCombiner::FoldShiftByConstant(), foldUDivPow2Cst(), foldUDivShl(), llvm::ConstantExpr::get(), GetDecodedBinaryOpcode(), GetEncodedBinaryOpcode(), llvm::objcarc::GetInstructionClass(), llvm::ConstantExpr::getLShr(), llvm::Instruction::getOpcodeName(), GetSelectFoldableConstant(), GetSelectFoldableOperands(), GetShiftedValue(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::Instruction::isLogicalShift(), llvm::PossiblyExactOperator::isPossiblyExactOpcode(), RightDistributesOverLeft(), llvm::FastISel::selectOperator(), shouldSpeculateInstrs(), SimplifyBinOp(), SimplifyICmpInst(), SimplifyInstruction(), SimplifyLShrInst(), simplifyValueKnownNonZero(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), and llvm::InstCombiner::visitXor().
char & llvm::MachineBlockPlacementID = MachineBlockPlacement::ID |
MachineBlockPlacement - This pass places basic blocks based on branch probabilities.
Definition at line 254 of file MachineBlockPlacement.cpp.
Referenced by llvm::TargetPassConfig::addBlockPlacement(), and overridePass().
char & llvm::MachineBlockPlacementStatsID = MachineBlockPlacementStats::ID |
MachineBlockPlacementStats - This pass collects statistics about the basic block placement using branch probabilities and block frequency information.
Definition at line 1167 of file MachineBlockPlacement.cpp.
Referenced by llvm::TargetPassConfig::addBlockPlacement().
char & llvm::MachineCombinerID = MachineCombiner::ID |
This pass performs instruction combining using trace metrics to estimate critical-path and resource depth.
Definition at line 84 of file MachineCombiner.cpp.
char & llvm::MachineCopyPropagationID = MachineCopyPropagation::ID |
MachineCopyPropagation - This pass performs copy propagation on machine instructions.
Definition at line 61 of file MachineCopyPropagation.cpp.
Referenced by llvm::TargetPassConfig::addMachineLateOptimization(), and overridePass().
char & llvm::MachineCSEID = MachineCSE::ID |
MachineCSE - This pass performs global CSE on machine instructions.
Definition at line 109 of file MachineCSE.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization(), and overridePass().
MachineDominanaceFrontier - This pass is a machine dominators analysis pass.
Definition at line 38 of file MachineDominanceFrontier.cpp.
MachineDominators - This pass is a machine dominators analysis pass.
Referenced by llvm::LiveIntervals::getAnalysisUsage().
char & llvm::MachineFunctionPrinterPassID = MachineFunctionPrinterPass::ID |
MachineFunctionPrinterPass - This pass prints out MachineInstr's.
Definition at line 54 of file MachineFunctionPrinterPass.cpp.
char & llvm::MachineLICMID = MachineLICM::ID |
MachineLICM - This pass performs LICM on machine instructions.
Definition at line 300 of file MachineLICM.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization(), overridePass(), and llvm::TargetPassConfig::TargetPassConfig().
machine Machine Natural Loop true char & llvm::MachineLoopInfoID = MachineLoopInfo::ID |
MachineLoopInfo - This pass is a loop analysis pass.
Definition at line 35 of file MachineLoopInfo.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc(), and llvm::LiveIntervals::getAnalysisUsage().
char & llvm::MachineSchedulerID = MachineScheduler::ID |
MachineScheduler - This pass schedules machine instructions.
Definition at line 145 of file MachineScheduler.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc(), overridePass(), and llvm::TargetPassConfig::TargetPassConfig().
char & llvm::MachineSinkingID = MachineSinking::ID |
MachineSinking - This pass performs sinking on machine instructions.
Definition at line 127 of file MachineSink.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization(), and overridePass().
MachineTraceMetrics - This pass computes critical path and CPU resource usage in an ensemble of traces.
Definition at line 31 of file MachineTraceMetrics.cpp.
const unsigned int llvm::maxExponent = 16383 |
Definition at line 89 of file APFloat.cpp.
Referenced by powerOf5().
Definition at line 91 of file APFloat.cpp.
2 + ((maxPowerOfFiveExponent * 815) / (351 * integerPartWidth))
Definition at line 92 of file APFloat.cpp.
Referenced by powerOf5().
const unsigned int llvm::maxPrecision = 113 |
Definition at line 90 of file APFloat.cpp.
const unsigned llvm::MIPS_NACL_BUNDLE_ALIGN = 4u [static] |
Definition at line 18 of file MipsMCNaCl.h.
Referenced by createMipsNaClELFStreamer(), and llvm::MipsAsmPrinter::EmitFunctionEntryLabel().
Referenced by getInstDesc().
const char* llvm::NamedMDForAnnotations = "nvvm.annotations" [static] |
Definition at line 85 of file NVPTXBaseInfo.h.
Referenced by cacheAnnotationFromMD().
const unsigned llvm::NumStratifiedAttrs = 32 [static] |
Definition at line 42 of file StratifiedSets.h.
char & llvm::OptimizePHIsID = OptimizePHIs::ID |
OptimizePHIs - This pass optimizes machine instruction PHIs to take advantage of opportunities created during DAG legalization.
Definition at line 61 of file OptimizePHIs.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization().
char & llvm::PeepholeOptimizerID = PeepholeOptimizer::ID |
PeepholeOptimizer - This pass performs peephole optimizations - like extension and comparison eliminations.
Definition at line 296 of file PeepholeOptimizer.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization().
char & llvm::PHIEliminationID = PHIElimination::ID |
PHIElimination - This pass eliminates machine instruction PHI nodes by inserting copy instructions. This destroys SSA information, but is the desired input for some register allocators. This pass is "required" by these register allocator like this: AU.addRequiredID(PHIEliminationID);
Definition at line 110 of file PHIElimination.cpp.
Referenced by llvm::TargetPassConfig::addFastRegAlloc(), and llvm::TargetPassConfig::addOptimizedRegAlloc().
char & llvm::PostMachineSchedulerID = PostMachineScheduler::ID |
PostMachineScheduler - This pass schedules machine instructions postRA.
Definition at line 175 of file MachineScheduler.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses().
char & llvm::PostRASchedulerID = PostRAScheduler::ID |
createPostRAScheduler - This pass performs post register allocation scheduling.
Definition at line 190 of file PostRASchedulerList.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses(), and overridePass().
PowerPC VSX FMA false char & llvm::PPCVSXFMAMutateID = PPCVSXFMAMutate::ID |
Definition at line 1868 of file PPCInstrInfo.cpp.
char & llvm::ProcessImplicitDefsID = ProcessImplicitDefs::ID |
ProcessImpicitDefs pass - This pass removes IMPLICIT_DEFs.
Definition at line 52 of file ProcessImplicitDefs.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc().
char & llvm::PrologEpilogCodeInserterID = PEI::ID |
PrologEpilogCodeInserter - This pass inserts prolog and epilog code, and eliminates abstract frame references.
Definition at line 52 of file PrologEpilogInserter.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses().
{ "maxntidx", "maxntidy", "maxntidz", "reqntidx", "reqntidy", "reqntidz", "minctasm", "texture", "surface", "sampler", "rdoimage", "wroimage", "rdwrimage", "kernel", "align", "managed", "proplast", }
Definition at line 56 of file NVPTXBaseInfo.h.
Referenced by getAlign(), getMaxNTIDx(), getMaxNTIDy(), getMaxNTIDz(), getMinCTASm(), getReqNTIDx(), getReqNTIDy(), getReqNTIDz(), isImageReadOnly(), isImageReadWrite(), isImageWriteOnly(), isKernelFunction(), isManaged(), isSampler(), isSurface(), and isTexture().
const uint16_t llvm::QRegList[] = { ARM::Q0, ARM::Q1, ARM::Q2, ARM::Q3 } [static] |
Definition at line 169 of file ARMCallingConv.h.
Referenced by CC_ARM_AAPCS_Custom_HA().
char & llvm::RegisterCoalescerID = RegisterCoalescer::ID |
RegisterCoalescer - This pass merges live ranges to eliminate copies.
end anonymous namespace
Definition at line 203 of file RegisterCoalescer.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc().
Definition at line 148 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateSExtd(), CanEvaluateShuffled(), CanEvaluateTruncated(), CanEvaluateZExtd(), llvm::CastInst::castIsValid(), llvm::SExtInst::classof(), collectFailStats(), computeKnownBits(), ComputeMultiple(), ComputeNumSignBits(), ComputeSpeculationCost(), ConstantFoldCastInstruction(), ConstantFoldCompareInstruction(), ConstantFoldInstOperands(), ConvertDebugDeclareToDebugValue(), llvm::CastInst::Create(), llvm::CastInst::CreateIntegerCast(), createReplacementInstr(), llvm::IRBuilder< true, TargetFolder >::CreateSExt(), llvm::CastInst::CreateSExtOrBitCast(), evaluateICmpRelation(), getAArch64Cmp(), llvm::ScalarEvolution::getAnyExtendExpr(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::objcarc::GetInstructionClass(), llvm::ConstantExpr::getIntegerCast(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getSExt(), llvm::ScalarEvolution::getSignedRange(), llvm::ScalarEvolution::getUnsignedRange(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::CastInst::isIntegerCast(), llvm::CastInst::isNoopCast(), llvm::SCEV::print(), llvm::FastISel::selectOperator(), shouldSpeculateInstrs(), SimplifyICmpInst(), llvm::InstCombiner::visitICmpInstWithCastAndCast(), visitIVCast(), and llvm::InstCombiner::visitXor().
char & llvm::SIFixSGPRLiveRangesID = SIFixSGPRLiveRanges::ID |
Definition at line 68 of file SIFixSGPRLiveRanges.cpp.
char & llvm::SILowerI1CopiesID = SILowerI1Copies::ID |
Definition at line 66 of file SILowerI1Copies.cpp.
Definition at line 152 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateShuffled(), llvm::CastInst::castIsValid(), llvm::SIToFPInst::classof(), collectFailStats(), computeKnownBits(), ConstantFoldCastInstruction(), ConstantFoldInstOperands(), llvm::CastInst::Create(), createReplacementInstr(), llvm::IRBuilder< true, TargetFolder >::CreateSIToFP(), evaluateFCmpRelation(), evaluateICmpRelation(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::objcarc::GetInstructionClass(), llvm::Instruction::getOpcodeName(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getWithOperands(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::CastInst::isNoopCast(), llvm::FastISel::selectOperator(), and llvm::InstCombiner::visitFCmpInst().
spill code Spill Code Placement true char & llvm::SpillPlacementID = SpillPlacement::ID |
SpillPlacement analysis. Suggest optimal placement of spill code between basic blocks.
Definition at line 53 of file SpillPlacement.cpp.
Definition at line 22 of file TableGen/Error.cpp.
Referenced by llvm::object::IRObjectFile::IRObjectFile(), PrintError(), PrintMessage(), PrintWarning(), and TableGenMain().
const uint16_t llvm::SRegList[] [static] |
{ ARM::S0, ARM::S1, ARM::S2, ARM::S3, ARM::S4, ARM::S5, ARM::S6, ARM::S7, ARM::S8, ARM::S9, ARM::S10, ARM::S11, ARM::S12, ARM::S13, ARM::S14, ARM::S15 }
Definition at line 163 of file ARMCallingConv.h.
Referenced by CC_ARM_AAPCS_Custom_HA().
char & llvm::StackColoringID = StackColoring::ID |
StackSlotColoring - This pass performs stack coloring and merging. It merges disjoint allocas to reduce the stack size.
Definition at line 178 of file StackColoring.cpp.
Referenced by llvm::TargetPassConfig::addMachineSSAOptimization().
StackMapLiveness - This pass analyses the register live-out set of stackmap/patchpoint intrinsics and attaches the calculated information to the intrinsic for later emission to the StackMap.
Definition at line 43 of file StackMapLivenessAnalysis.cpp.
Referenced by llvm::TargetPassConfig::addMachinePasses().
char & llvm::StackSlotColoringID = StackSlotColoring::ID |
StackSlotColoring - This pass performs stack slot coloring.
Definition at line 118 of file StackSlotColoring.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc(), and overridePass().
char & llvm::TailDuplicateID = TailDuplicatePass::ID |
TailDuplicate - Duplicate blocks with unconditional branches into tails of their predecessors.
Definition at line 130 of file TailDuplication.cpp.
Referenced by llvm::TargetPassConfig::addMachineLateOptimization(), overridePass(), and llvm::TargetPassConfig::TargetPassConfig().
Definition at line 16 of file AArch64TargetInfo.cpp.
Referenced by LLVMInitializeAArch64AsmParser(), LLVMInitializeAArch64AsmPrinter(), LLVMInitializeAArch64Disassembler(), LLVMInitializeAArch64Target(), LLVMInitializeAArch64TargetInfo(), and LLVMInitializeAArch64TargetMC().
Definition at line 15 of file AArch64TargetInfo.cpp.
Referenced by LLVMInitializeAArch64AsmParser(), LLVMInitializeAArch64AsmPrinter(), LLVMInitializeAArch64Disassembler(), LLVMInitializeAArch64Target(), LLVMInitializeAArch64TargetInfo(), and LLVMInitializeAArch64TargetMC().
The target for the AMDGPU backend.
Definition at line 30 of file AMDGPUMCTargetDesc.h.
Referenced by LLVMInitializeR600AsmPrinter(), LLVMInitializeR600Target(), LLVMInitializeR600TargetInfo(), and LLVMInitializeR600TargetMC().
Definition at line 17 of file AArch64TargetInfo.cpp.
Referenced by LLVMInitializeAArch64AsmParser(), LLVMInitializeAArch64AsmPrinter(), LLVMInitializeAArch64Disassembler(), LLVMInitializeAArch64Target(), LLVMInitializeAArch64TargetInfo(), and LLVMInitializeAArch64TargetMC().
Definition at line 15 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmParser(), LLVMInitializeARMAsmPrinter(), LLVMInitializeARMDisassembler(), LLVMInitializeARMTarget(), LLVMInitializeARMTargetInfo(), and LLVMInitializeARMTargetMC().
Definition at line 15 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmParser(), LLVMInitializeARMAsmPrinter(), LLVMInitializeARMDisassembler(), LLVMInitializeARMTarget(), LLVMInitializeARMTargetInfo(), and LLVMInitializeARMTargetMC().
Definition at line 15 of file CppBackendTargetInfo.cpp.
Referenced by LLVMInitializeCppBackendTarget(), and LLVMInitializeCppBackendTargetInfo().
Definition at line 15 of file HexagonTargetInfo.cpp.
Referenced by LLVMInitializeHexagonAsmPrinter(), LLVMInitializeHexagonTarget(), LLVMInitializeHexagonTargetInfo(), and LLVMInitializeHexagonTargetMC().
Definition at line 34 of file MipsMCTargetDesc.h.
Referenced by LLVMInitializeMipsAsmParser(), LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsDisassembler(), LLVMInitializeMipsTarget(), LLVMInitializeMipsTargetInfo(), and LLVMInitializeMipsTargetMC().
Definition at line 33 of file MipsMCTargetDesc.h.
Referenced by LLVMInitializeMipsAsmParser(), LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsDisassembler(), LLVMInitializeMipsTarget(), LLVMInitializeMipsTargetInfo(), and LLVMInitializeMipsTargetMC().
Definition at line 32 of file MipsMCTargetDesc.h.
Referenced by LLVMInitializeMipsAsmParser(), LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsDisassembler(), LLVMInitializeMipsTarget(), LLVMInitializeMipsTargetInfo(), and LLVMInitializeMipsTargetMC().
Definition at line 29 of file MipsMCTargetDesc.h.
Referenced by LLVMInitializeMipsAsmParser(), LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsDisassembler(), LLVMInitializeMipsTarget(), LLVMInitializeMipsTargetInfo(), and LLVMInitializeMipsTargetMC().
Definition at line 15 of file MSP430TargetInfo.cpp.
Referenced by LLVMInitializeMSP430AsmPrinter(), LLVMInitializeMSP430Target(), LLVMInitializeMSP430TargetInfo(), and LLVMInitializeMSP430TargetMC().
Definition at line 75 of file NVPTX.h.
Referenced by LLVMInitializeNVPTXAsmPrinter(), LLVMInitializeNVPTXBackendAsmPrinter(), LLVMInitializeNVPTXTarget(), LLVMInitializeNVPTXTargetInfo(), and LLVMInitializeNVPTXTargetMC().
Definition at line 76 of file NVPTX.h.
Referenced by LLVMInitializeNVPTXAsmPrinter(), LLVMInitializeNVPTXBackendAsmPrinter(), LLVMInitializeNVPTXTarget(), LLVMInitializeNVPTXTargetInfo(), and LLVMInitializeNVPTXTargetMC().
Definition at line 15 of file PowerPCTargetInfo.cpp.
Referenced by LLVMInitializePowerPCAsmParser(), LLVMInitializePowerPCAsmPrinter(), LLVMInitializePowerPCDisassembler(), LLVMInitializePowerPCTarget(), LLVMInitializePowerPCTargetInfo(), and LLVMInitializePowerPCTargetMC().
Definition at line 15 of file PowerPCTargetInfo.cpp.
Referenced by LLVMInitializePowerPCAsmParser(), LLVMInitializePowerPCAsmPrinter(), LLVMInitializePowerPCDisassembler(), LLVMInitializePowerPCTarget(), LLVMInitializePowerPCTargetInfo(), and LLVMInitializePowerPCTargetMC().
Definition at line 15 of file PowerPCTargetInfo.cpp.
Referenced by LLVMInitializePowerPCAsmParser(), LLVMInitializePowerPCAsmPrinter(), LLVMInitializePowerPCDisassembler(), LLVMInitializePowerPCTarget(), LLVMInitializePowerPCTargetInfo(), and LLVMInitializePowerPCTargetMC().
Definition at line 29 of file SparcMCTargetDesc.h.
Referenced by LLVMInitializeSparcAsmParser(), LLVMInitializeSparcAsmPrinter(), LLVMInitializeSparcDisassembler(), LLVMInitializeSparcTarget(), LLVMInitializeSparcTargetInfo(), and LLVMInitializeSparcTargetMC().
Definition at line 32 of file SparcMCTargetDesc.h.
Referenced by LLVMInitializeSparcAsmParser(), LLVMInitializeSparcAsmPrinter(), LLVMInitializeSparcDisassembler(), LLVMInitializeSparcTarget(), LLVMInitializeSparcTargetInfo(), and LLVMInitializeSparcTargetMC().
Definition at line 15 of file SystemZTargetInfo.cpp.
Referenced by LLVMInitializeSystemZAsmParser(), LLVMInitializeSystemZAsmPrinter(), LLVMInitializeSystemZDisassembler(), LLVMInitializeSystemZTarget(), LLVMInitializeSystemZTargetInfo(), and LLVMInitializeSystemZTargetMC().
Definition at line 16 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmParser(), LLVMInitializeARMAsmPrinter(), LLVMInitializeARMDisassembler(), LLVMInitializeARMTarget(), LLVMInitializeARMTargetInfo(), and LLVMInitializeARMTargetMC().
Definition at line 16 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmParser(), LLVMInitializeARMAsmPrinter(), LLVMInitializeARMDisassembler(), LLVMInitializeARMTarget(), LLVMInitializeARMTargetInfo(), and LLVMInitializeARMTargetMC().
Definition at line 33 of file X86MCTargetDesc.h.
Referenced by LLVMInitializeX86AsmParser(), LLVMInitializeX86AsmPrinter(), LLVMInitializeX86Disassembler(), LLVMInitializeX86Target(), LLVMInitializeX86TargetInfo(), and LLVMInitializeX86TargetMC().
Definition at line 33 of file X86MCTargetDesc.h.
Referenced by LLVMInitializeX86AsmParser(), LLVMInitializeX86AsmPrinter(), LLVMInitializeX86Disassembler(), LLVMInitializeX86Target(), LLVMInitializeX86TargetInfo(), and LLVMInitializeX86TargetMC().
Definition at line 18 of file XCoreMCTargetDesc.h.
Referenced by LLVMInitializeXCoreAsmPrinter(), LLVMInitializeXCoreDisassembler(), LLVMInitializeXCoreTarget(), LLVMInitializeXCoreTargetInfo(), and LLVMInitializeXCoreTargetMC().
This is the storage for the -time-passes option.
If the user specifies the -time-passes argument on an LLVM tool command line then the value of this boolean will be true, otherwise false.
Definition at line 26 of file IRReader.cpp.
Referenced by llvm::AsmPrinter::doFinalization(), llvm::DwarfDebug::DwarfDebug(), llvm::AsmPrinter::EmitFunctionBody(), llvm::AsmPrinter::EmitFunctionHeader(), llvm::AsmPrinter::EmitGlobalVariable(), and parseIR().
Definition at line 146 of file InstVisitor.h.
Referenced by BuildNew(), CanEvaluateSExtd(), CanEvaluateShuffled(), CanEvaluateTruncated(), CanEvaluateZExtd(), llvm::CastInst::castIsValid(), llvm::TruncInst::classof(), collectFailStats(), computeKnownBits(), ComputeNumSignBits(), ComputeSpeculationCost(), ConstantFoldCastInstruction(), ConstantFoldInstOperands(), llvm::CastInst::Create(), llvm::CastInst::CreateIntegerCast(), createReplacementInstr(), llvm::IRBuilder< true, TargetFolder >::CreateTrunc(), llvm::CastInst::CreateTruncOrBitCast(), evaluateICmpRelation(), expandDivisionUpTo32Bits(), expandDivisionUpTo64Bits(), expandRemainderUpTo32Bits(), expandRemainderUpTo64Bits(), llvm::ScalarEvolution::getAddExpr(), llvm::ConstantExpr::getAsInstruction(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), GetDecodedCastOpcode(), GetEncodedCastOpcode(), llvm::objcarc::GetInstructionClass(), llvm::ConstantExpr::getIntegerCast(), llvm::Instruction::getOpcodeName(), llvm::ScalarEvolution::getSignedRange(), llvm::ConstantExpr::getTrunc(), llvm::ScalarEvolution::getUnsignedRange(), getWideOperand(), llvm::ConstantExpr::getWithOperands(), insertFastDiv(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::CastInst::isIntegerCast(), llvm::CastInst::isNoopCast(), nvptx::LowerConstant(), lowerConstant(), llvm::SCEV::print(), ProcessUMulZExtIdiom(), llvm::FastISel::selectOperator(), shouldSpeculateInstrs(), SimplifyICmpInst(), SimplifyInstruction(), llvm::TargetLowering::SimplifySetCC(), SimplifyTruncInst(), truncateIVUse(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), and llvm::InstCombiner::visitZExt().
Two Address instruction false char & llvm::TwoAddressInstructionPassID = TwoAddressInstructionPass::ID |
TwoAddressInstruction - This pass reduces two-address instructions to use two operands. This destroys SSA information but it is desired by register allocators.
Definition at line 172 of file TwoAddressInstructionPass.cpp.
Referenced by llvm::TargetPassConfig::addFastRegAlloc(), and llvm::TargetPassConfig::addOptimizedRegAlloc().
char & llvm::UnpackMachineBundlesID = UnpackMachineBundles::ID |
UnpackMachineBundles - This pass unpack machine instruction bundles.
Definition at line 35 of file MachineInstrBundle.cpp.
UnreachableMachineBlockElimination - This pass removes unreachable machine basic blocks.
Referenced by llvm::LiveVariables::getAnalysisUsage().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst llvm::UserOp1 |
Definition at line 168 of file InstVisitor.h.
Referenced by llvm::Operator::getOpcode(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), and llvm::ShuffleVectorInst::isValidOperands().
BinaryOperator AllocaInst TruncInst SExtInst FPToSIInst SIToFPInst FPExtInst IntToPtrInst AddrSpaceCastInst FCmpInst CallInst Instruction llvm::VAArg |
Definition at line 170 of file InstVisitor.h.
Referenced by llvm::UnaryInstruction::classof(), llvm::VAArgInst::classof(), collectFailStats(), llvm::objcarc::GetInstructionClass(), llvm::AliasAnalysis::getModRefInfo(), llvm::Instruction::getOpcodeName(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), isSafeToSpeculativelyExecute(), llvm::Instruction::mayReadFromMemory(), llvm::Instruction::mayWriteToMemory(), PointerMayBeCaptured(), and WriteInstruction().
char & llvm::VirtRegRewriterID = VirtRegRewriter::ID |
VirtRegRewriter pass. Rewrite virtual registers to physical registers as assigned in VirtRegMap.
Definition at line 180 of file VirtRegMap.cpp.
Referenced by llvm::TargetPassConfig::addOptimizedRegAlloc().
RegisterPass<NVPTXAllocaHoisting> llvm::X("alloca-hoisting","Hoisting alloca instructions in non-entry ""blocks to the entry block") [static] |
Referenced by llvm::ConstantRange::add(), llvm::AliasSetTracker::add(), llvm::cl::parser< const PassInfo * >::addLiteralOption(), cast(), checkForNegativeOperand(), llvm::InstCombiner::commonIDivTransforms(), createAArch64MCCodeGenInfo(), createAArch64MCInstrInfo(), createAArch64MCRegisterInfo(), createAArch64MCSubtargetInfo(), createAMDGPUMCCodeGenInfo(), createAMDGPUMCInstrInfo(), createAMDGPUMCRegisterInfo(), createAMDGPUMCSubtargetInfo(), createARMMCCodeGenInfo(), createARMMCInstrInfo(), createARMMCRegisterInfo(), llvm::ARM_MC::createARMMCSubtargetInfo(), createHexagonMCCodeGenInfo(), createHexagonMCInstrInfo(), createHexagonMCRegisterInfo(), createHexagonMCSubtargetInfo(), createMipsMCCodeGenInfo(), createMipsMCInstrInfo(), createMipsMCRegisterInfo(), createMipsMCSubtargetInfo(), createMSP430MCCodeGenInfo(), createMSP430MCInstrInfo(), createMSP430MCRegisterInfo(), createMSP430MCSubtargetInfo(), createNVPTXMCCodeGenInfo(), createNVPTXMCInstrInfo(), createNVPTXMCRegisterInfo(), createNVPTXMCSubtargetInfo(), createPPCMCCodeGenInfo(), createPPCMCInstrInfo(), createPPCMCRegisterInfo(), createPPCMCSubtargetInfo(), createSparcMCCodeGenInfo(), createSparcMCInstrInfo(), createSparcMCRegisterInfo(), createSparcMCSubtargetInfo(), createSparcV9MCCodeGenInfo(), createSystemZMCCodeGenInfo(), createSystemZMCInstrInfo(), createSystemZMCRegisterInfo(), createSystemZMCSubtargetInfo(), createX86MCCodeGenInfo(), createX86MCInstrInfo(), createX86MCRegisterInfo(), llvm::X86_MC::createX86MCSubtargetInfo(), createXCoreMCCodeGenInfo(), createXCoreMCInstrInfo(), createXCoreMCRegisterInfo(), createXCoreMCSubtargetInfo(), expandExp(), expandExp2(), expandLog(), expandLog10(), expandLog2(), expandPow(), llvm::OnDiskChainedHashTable< Info >::find(), llvm::InstCombiner::FoldICmpDivCst(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), llvm::PMDataManager::freePass(), genConstMult(), llvm::SDNode::getVTList(), isa(), isKnownNonZero(), isKnownToBeAPowerOfTwo(), LLVMInitializeAArch64AsmParser(), LLVMInitializeAArch64AsmPrinter(), LLVMInitializeAArch64Target(), LLVMInitializeAArch64TargetMC(), LLVMInitializeARMAsmParser(), LLVMInitializeARMAsmPrinter(), LLVMInitializeARMTarget(), LLVMInitializeARMTargetInfo(), LLVMInitializeARMTargetMC(), LLVMInitializeCppBackendTarget(), LLVMInitializeHexagonAsmPrinter(), LLVMInitializeHexagonTarget(), LLVMInitializeHexagonTargetInfo(), LLVMInitializeHexagonTargetMC(), LLVMInitializeMipsAsmParser(), LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsTarget(), LLVMInitializeMipsTargetInfo(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430AsmPrinter(), LLVMInitializeMSP430Target(), LLVMInitializeMSP430TargetInfo(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXAsmPrinter(), LLVMInitializeNVPTXBackendAsmPrinter(), LLVMInitializeNVPTXTarget(), LLVMInitializeNVPTXTargetInfo(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetInfo(), LLVMInitializeR600Target(), LLVMInitializeSparcAsmPrinter(), LLVMInitializeSparcTarget(), LLVMInitializeSparcTargetInfo(), LLVMInitializeSparcTargetMC(), LLVMInitializeSystemZAsmParser(), LLVMInitializeSystemZAsmPrinter(), LLVMInitializeSystemZTarget(), LLVMInitializeSystemZTargetInfo(), LLVMInitializeX86AsmParser(), LLVMInitializeX86AsmPrinter(), LLVMInitializeX86Target(), LLVMInitializeX86TargetInfo(), LLVMInitializeXCoreAsmPrinter(), LLVMInitializeXCoreTarget(), LLVMInitializeXCoreTargetInfo(), LLVMInitializeXCoreTargetMC(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), LowerSDIV_v4i8(), operator<<(), llvm::UseListOrder::operator=(), OptimizeAndOrXor(), llvm::SetVector< Type * >::remove(), llvm::RGPassManager::runOnFunction(), llvm::LPPassManager::runOnFunction(), llvm::FPPassManager::runOnFunction(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(), SimplifyAShrInst(), SimplifyDiv(), SimplifyFSubInst(), SimplifyLShrInst(), SimplifyMulInst(), SimplifyShlInst(), SimplifySubInst(), llvm::opt::StrCmpOptionNameIgnoreCase(), llvm::ConstantRange::sub(), sub_1(), tryLowerToSLI(), utohex_buffer(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitBranchInst(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFDiv(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitUDiv(), llvm::InstCombiner::visitZExt(), and wrap().