LLVM API Documentation
| typedef const PassInfo* llvm::AnalysisID |
| typedef unsigned llvm::Attributes |
| typedef std::vector<uint8_t> llvm::BinaryData |
Definition at line 25 of file BinaryObject.h.
| typedef bool llvm::CCAssignFn(unsigned ValNo, EVT ValVT, EVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State) |
CCAssignFn - This function assigns a location for Val, updating State to reflect the change.
Definition at line 130 of file CallingConvLower.h.
| typedef bool llvm::CCCustomFn(unsigned &ValNo, EVT &ValVT, EVT &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 137 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 std::pair<const Constant *, int64_t> llvm::CstExprResTy |
Definition at line 46 of file ELFWriter.h.
| typedef DomTreeNodeBase<BasicBlock> llvm::DomTreeNode |
Definition at line 185 of file Dominators.h.
| typedef std::vector<ELFSection*>::iterator llvm::ELFSectionIter |
Definition at line 43 of file ELFWriter.h.
| typedef std::vector<ELFSym*>::iterator llvm::ELFSymIter |
Definition at line 40 of file ELFWriter.h.
| typedef signed short llvm::exponent_t |
Definition at line 251 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 30 of file GCMetadataPrinter.h.
| typedef Registry<GCStrategy> llvm::GCRegistry |
The GC strategy registry uses all the defaults from Registry.
Definition at line 45 of file GCStrategy.h.
Definition at line 82 of file GetElementPtrTypeIterator.h.
| typedef std::pair<unsigned, MachineBasicBlock*> llvm::IdxMBBPair |
Definition at line 42 of file LiveIntervalAnalysis.h.
| typedef InstIterator<iplist<BasicBlock>, Function::iterator, BasicBlock::iterator, Instruction> llvm::inst_iterator |
Definition at line 122 of file InstIterator.h.
| typedef uint64_t llvm::integerPart |
Definition at line 236 of file IntervalIterator.h.
| typedef LoadSDNode llvm::LargestSDNode |
LargestSDNode - The largest SDNode class.
Definition at line 2416 of file SelectionDAGNodes.h.
| typedef void(* llvm::llvm_error_handler_t)(void *user_data, const std::string &reason) |
Definition at line 36 of file MachineDominators.h.
| typedef void*(* llvm::MachinePassCtor)() |
Definition at line 26 of file MachinePassRegistry.h.
MostAlignedSDNode - The SDNode class with the greatest alignment requirement.
Definition at line 2421 of file SelectionDAGNodes.h.
| typedef SetVector<const char *>::const_iterator llvm::PendingExtsIter |
Definition at line 45 of file ELFWriter.h.
| typedef SetVector<const GlobalValue*>::const_iterator llvm::PendingGblsIter |
Definition at line 44 of file ELFWriter.h.
| typedef void* llvm::PointerTy |
Definition at line 23 of file GenericValue.h.
| typedef PredIterator<const BasicBlock, Value::use_const_iterator> llvm::pred_const_iterator |
| typedef unsigned llvm::SerializedPtrID |
Definition at line 21 of file SerializationFwd.h.
| typedef SuccIterator<const TerminatorInst*, const BasicBlock> llvm::succ_const_iterator |
| typedef SuccIterator<TerminatorInst*, BasicBlock> llvm::succ_iterator |
| typedef DenseMap<const Value *, Value *> llvm::ValueMapTy |
Definition at line 23 of file ValueMapper.h.
| typedef StringMapEntry<Value*> llvm::ValueName |
| typedef std::vector<GenericValue> llvm::ValuePlaneTy |
Definition at line 65 of file lib/ExecutionEngine/Interpreter/Interpreter.h.
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
Definition at line 39 of file lib/CodeGen/ELF.h.
| anonymous enum |
| enum llvm::AlignTypeEnum |
Enum used to categorize the alignment types stored by TargetAlignElem.
| INTEGER_ALIGN | Integer type alignment. |
| VECTOR_ALIGN | Vector type alignment. |
| FLOAT_ALIGN | Floating point type alignment. |
| AGGREGATE_ALIGN | Aggregate alignment. |
| STACK_ALIGN | Stack objects alignment. |
Definition at line 40 of file TargetData.h.
| enum llvm::BfinSubregIdx |
Definition at line 28 of file BlackfinRegisterInfo.h.
| enum llvm::CombineLevel |
Definition at line 58 of file SelectionDAG.h.
| enum llvm::lostFraction |
| EXECUTION_MSG | |
| MODIFICATION_MSG | |
| FREEING_MSG | |
| ON_BASICBLOCK_MSG | |
| ON_FUNCTION_MSG | |
| ON_MODULE_MSG | |
| ON_LOOP_MSG | |
| ON_CG_MSG |
Definition at line 107 of file PassManagers.h.
| enum llvm::PassDebugLevel |
Definition at line 45 of file PassManager.cpp.
Different types of internal pass managers. External pass managers (PassManager and FunctionPassManager) are not represented here. Ordering of pass manager types is important here.
| PMT_Unknown | |
| PMT_ModulePassManager | |
| PMT_CallGraphPassManager | MPPassManager. |
| PMT_FunctionPassManager | CGPassManager. |
| PMT_LoopPassManager | FPPassManager. |
| PMT_BasicBlockPassManager | LPPassManager. |
| PMT_Last | BBPassManager. |
| enum llvm::SCEVTypes |
| scConstant | |
| scTruncate | |
| scZeroExtend | |
| scSignExtend | |
| scAddExpr | |
| scMulExpr | |
| scUDivExpr | |
| scAddRecExpr | |
| scUMaxExpr | |
| scSMaxExpr | |
| scFieldOffset | |
| scAllocSize | |
| scUnknown | |
| scCouldNotCompute |
Definition at line 25 of file ScalarEvolutionExpressions.h.
| enum llvm::SolverResult |
| enum llvm::Tag |
FunctionPassManager and PassManager, two top level managers, serve as the public interface of pass manager infrastructure.
Definition at line 101 of file PassManagers.h.
An enumeration to specify the action to be taken if errors found.
This enumeration is used in the functions below to indicate what should happen if the verifier finds errors. Each of the functions that uses this enumeration as an argument provides a default value for it. The actions are listed below.
| AbortProcessAction | verifyModule will print to stderr and abort() |
| PrintMessageAction | verifyModule will print to stderr and return true |
| ReturnStatusAction | verifyModule will just return true |
Definition at line 38 of file Verifier.h.
| 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 441 of file MathExtras.h.
Referenced by useSIToFPInst().
| void llvm::AddCatchInfo | ( | 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 2972 of file SelectionDAGBuild.cpp.
References llvm::MachineModuleInfo::addCatchTypeInfo(), llvm::MachineModuleInfo::addCleanup(), llvm::MachineModuleInfo::addFilterTypeInfo(), llvm::MachineModuleInfo::addPersonality(), BitCast, ExtractTypeInfo(), llvm::User::getNumOperands(), llvm::ConstantExpr::getOpcode(), llvm::User::getOperand(), and llvm::Constant::getOperand().
Referenced by copyCatchInfo().
| 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 162 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 265 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addReg().
Referenced by llvm::ARMBaseInstrInfo::copyRegToReg(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), and llvm::ARMBaseRegisterInfo::emitPrologue().
| static const MachineInstrBuilder& llvm::AddDefaultPred | ( | const MachineInstrBuilder & | MIB | ) | [inline, static] |
Definition at line 260 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), and llvm::ARMCC::AL.
Referenced by llvm::ARMBaseInstrInfo::copyRegToReg(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseRegisterInfo::emitPrologue(), emitThumbConstant(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), llvm::Thumb1InstrInfo::spillCalleeSavedRegisters(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), and llvm::Thumb2InstrInfo::storeRegToStackSlot().
| static const MachineInstrBuilder& llvm::AddDefaultT1CC | ( | const MachineInstrBuilder & | MIB, | |
| bool | isDead = false | |||
| ) | [inline, static] |
Definition at line 270 of file ARMBaseInstrInfo.h.
References llvm::MachineInstrBuilder::addReg(), getDeadRegState(), and getDefRegState().
Referenced by llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), emitThumbConstant(), emitThumbRegPlusImmediate(), and emitThumbRegPlusImmInReg().
| 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 index or displacement.
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 58 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
| ObjectCodeEmitter * llvm::AddELFWriter | ( | PassManagerBase & | FPM, | |
| raw_ostream & | O, | |||
| TargetMachine & | TM | |||
| ) |
AddELFWriter - Add the ELF writer to the function pass manager.
Definition at line 64 of file ELFWriter.cpp.
References llvm::PassManagerBase::add(), and llvm::ELFWriter::getObjectCodeEmitter().
| 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 106 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), addOffset(), llvm::MachineInstr::getDesc(), llvm::PseudoSourceValue::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::MachineFrameInfo::getObjectOffset(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::TargetInstrDesc::mayLoad(), llvm::TargetInstrDesc::mayStore(), MF, MFI, MI, llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, and Offset.
| static const MachineInstrBuilder & llvm::addFrameReference | ( | const MachineInstrBuilder & | MIB, | |
| int | FI, | |||
| int | Offset = 0, |
|||
| bool | mem = true | |||
| ) | [inline] |
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 SPUInstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), and Offset.
Referenced by llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::loadRegFromStackSlot(), llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::SPUInstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::SPUInstrInfo::storeRegToStackSlot(), and llvm::SystemZInstrInfo::storeRegToStackSlot().
| static const MachineInstrBuilder& llvm::addFullAddress | ( | const MachineInstrBuilder & | MIB, | |
| const X86AddressMode & | AM | |||
| ) | [inline, static] |
Definition at line 124 of file X86InstrBuilder.h.
References addLeaAddress(), and llvm::MachineInstrBuilder::addReg().
| static const MachineInstrBuilder& llvm::addFullAddress | ( | const MachineInstrBuilder & | MIB, | |
| const SystemZAddressMode & | AM | |||
| ) | [inline, static] |
Definition at line 89 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::SystemZAddressMode::Base, llvm::SystemZAddressMode::BaseType, llvm::SystemZAddressMode::Disp, llvm::SystemZAddressMode::FrameIndex, llvm::SystemZAddressMode::FrameIndexBase, llvm::SystemZAddressMode::IndexReg, llvm::SystemZAddressMode::Reg, and llvm::SystemZAddressMode::RegBase.
Referenced by llvm::X86InstrInfo::convertToThreeAddress(), and llvm::X86TargetLowering::EmitInstrWithCustomInserter().
| static const MachineInstrBuilder& llvm::addLeaAddress | ( | const MachineInstrBuilder & | MIB, | |
| const X86AddressMode & | AM | |||
| ) | [inline, static] |
Definition at line 107 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.
Referenced by addFullAddress().
| static const MachineInstrBuilder& llvm::addLeaOffset | ( | const MachineInstrBuilder & | MIB, | |
| int | Offset | |||
| ) | [inline, static] |
Definition at line 72 of file X86InstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
Referenced by addLeaRegOffset().
| static const MachineInstrBuilder& llvm::addLeaRegOffset | ( | const MachineInstrBuilder & | MIB, | |
| unsigned | Reg, | |||
| bool | isKill, | |||
| int | Offset | |||
| ) | [inline, static] |
Definition at line 92 of file X86InstrBuilder.h.
References addLeaOffset(), llvm::MachineInstrBuilder::addReg(), and getKillRegState().
Referenced by llvm::X86InstrInfo::convertToThreeAddress(), and llvm::X86RegisterInfo::emitEpilogue().
| ObjectCodeEmitter * llvm::AddMachOWriter | ( | PassManagerBase & | PM, | |
| raw_ostream & | O, | |||
| TargetMachine & | TM | |||
| ) |
AddMachOWriter - Concrete function to add the Mach-O writer to the function pass manager.
Definition at line 45 of file MachOWriter.cpp.
References llvm::PassManagerBase::add(), and llvm::MachOWriter::getObjectCodeEmitter().
| void llvm::addNodeToInterval | ( | Interval * | Int, | |
| Interval * | I | |||
| ) | [inline] |
| void llvm::addNodeToInterval | ( | Interval * | Int, | |
| BasicBlock * | BB | |||
| ) | [inline] |
| static const MachineInstrBuilder& llvm::AddNoT1CC | ( | const MachineInstrBuilder & | MIB | ) | [inline, static] |
| static const MachineInstrBuilder & llvm::addOffset | ( | const MachineInstrBuilder & | MIB, | |
| int | Offset | |||
| ) | [inline, static] |
Definition at line 65 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), and llvm::MachineInstrBuilder::addReg().
Referenced by addFrameReference(), addRegOffset(), FuseInst(), FuseTwoAddrInst(), and MakeM0Inst().
| static void llvm::addOnePass | ( | PassManager * | PM, | |
| Pass * | P, | |||
| bool | AndVerify | |||
| ) | [inline, static] |
Definition at line 160 of file StandardPasses.h.
References llvm::PassManager::add(), and createVerifierPass().
Referenced by createStandardLTOPasses().
| 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 or index, but with a displacement. An example is: 10(r15).
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 74 of file SystemZInstrBuilder.h.
References addOffset(), llvm::MachineInstrBuilder::addReg(), and getKillRegState().
Referenced by llvm::X86InstrInfo::convertToThreeAddress(), and llvm::X86RegisterInfo::emitPrologue().
| 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 82 of file SystemZInstrBuilder.h.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), and getKillRegState().
Referenced by llvm::X86InstrInfo::convertToThreeAddress().
| static unsigned llvm::alignof | ( | ) | [inline, static] |
alignof - A templated function that returns the mininum 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.
| static const char* llvm::ARMCondCodeToString | ( | ARMCC::CondCodes | CC | ) | [inline, static] |
Definition at line 74 of file ARM.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.
Find where an array ends (for ending iterators) This returns a pointer to the byte immediately after the end of an array.
Definition at line 221 of file STLExtras.h.
Referenced by llvm::Mangler::Mangler().
| size_t llvm::array_lengthof | ( | T(&) | x[N] | ) | [inline] |
Find the length of an array.
Definition at line 227 of file STLExtras.h.
Referenced by llvm::TargetLowering::addRegisterClass(), CC_PPC_SVR4_Custom_AlignArgRegs(), CC_PPC_SVR4_Custom_AlignFPArgRegs(), llvm::PPCFrameInfo::getCalleeSavedSpillSlots(), getConcreteOpcode(), llvm::TargetLowering::getCondCodeAction(), llvm::TargetLowering::getConvertAction(), llvm::SimpleHazardRecognizer::getHazardType(), llvm::TargetLowering::getIndexedLoadAction(), llvm::TargetLowering::getIndexedStoreAction(), llvm::TargetLowering::getLoadExtAction(), llvm::XCoreRegisterInfo::getNumArgRegs(), llvm::TargetLowering::getNumRegisters(), llvm::TargetLowering::getOperationAction(), llvm::TargetLowering::getRegisterType(), llvm::TargetLowering::getTruncStoreAction(), llvm::TargetLowering::ValueTypeActionImpl::getTypeAction(), llvm::TargetLowering::getTypeToTransformTo(), llvm::TargetLowering::hasTargetDAGCombine(), llvm::TargetLowering::isTypeLegal(), llvm::SystemZRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::SimpleHazardRecognizer::Reset(), llvm::TargetLowering::setCondCodeAction(), llvm::TargetLowering::setConvertAction(), llvm::TargetLowering::setIndexedLoadAction(), llvm::TargetLowering::setIndexedStoreAction(), llvm::TargetLowering::setLoadExtAction(), llvm::TargetLowering::setTargetDAGCombine(), llvm::TargetLowering::setTruncStoreAction(), llvm::TargetLowering::ValueTypeActionImpl::setTypeAction(), llvm::SystemZInstrInfo::SystemZInstrInfo(), llvm::TargetLowering::TargetLowering(), and llvm::X86InstrInfo::X86InstrInfo().
| static void llvm::array_pod_sort | ( | IteratorTy | Start, | |
| IteratorTy | End | |||
| ) | [inline, static] |
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 operator< 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 266 of file STLExtras.h.
References get_array_pad_sort_comparator().
| static int llvm::array_pod_sort_comparator | ( | const void * | P1, | |
| const void * | P2 | |||
| ) | [inline, static] |
array_pod_sort_comparator - This is helper function for array_pod_sort, which just uses operator< on T.
Definition at line 234 of file STLExtras.h.
| bool llvm::AsmVerbosityDefault | ( | false | ) |
| double llvm::BitsToDouble | ( | uint64_t | Bits | ) | [inline] |
BitsToDouble - This function takes a 64-bit integer and returns the bit equivalent double.
Definition at line 353 of file MathExtras.h.
| float llvm::BitsToFloat | ( | uint32_t | Bits | ) | [inline] |
BitsToFloat - This function takes a 32-bit integer and returns the bit equivalent float.
Definition at line 364 of file MathExtras.h.
| MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock * | BB, | |
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID, | |||
| 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 197 of file MachineInstrBuilder.h.
References llvm::MachineBasicBlock::end().
Referenced by BuildMI(), and InsertLDR_STR().
| MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock * | BB, | |
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID | |||
| ) | [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 187 of file MachineInstrBuilder.h.
References BuildMI(), and llvm::MachineBasicBlock::end().
| MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, | |
| MachineBasicBlock::iterator | I, | |||
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID | |||
| ) | [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 174 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and MI.
| MachineInstrBuilder llvm::BuildMI | ( | MachineBasicBlock & | BB, | |
| MachineBasicBlock::iterator | I, | |||
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID, | |||
| 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 160 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), llvm::RegState::Define, llvm::MachineBasicBlock::getParent(), llvm::MachineBasicBlock::insert(), and MI.
| MachineInstrBuilder llvm::BuildMI | ( | MachineFunction & | MF, | |
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID, | |||
| unsigned | DestReg | |||
| ) | [inline] |
BuildMI - This version of the builder sets up the first operand as a destination virtual register.
Definition at line 148 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr(), and llvm::RegState::Define.
| MachineInstrBuilder llvm::BuildMI | ( | MachineFunction & | MF, | |
| DebugLoc | DL, | |||
| const TargetInstrDesc & | TID | |||
| ) | [inline] |
BuildMI - Builder interface. Specify how to create the initial instruction itself.
Definition at line 139 of file MachineInstrBuilder.h.
References llvm::MachineFunction::CreateMachineInstr().
Referenced by llvm::BlackfinRegisterInfo::adjustRegister(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::AlphaInstrInfo::copyRegToReg(), llvm::MipsInstrInfo::copyRegToReg(), llvm::SPUInstrInfo::copyRegToReg(), llvm::ARMBaseInstrInfo::copyRegToReg(), llvm::PIC16InstrInfo::copyRegToReg(), llvm::X86InstrInfo::copyRegToReg(), llvm::BlackfinInstrInfo::copyRegToReg(), llvm::Thumb2InstrInfo::copyRegToReg(), llvm::XCoreInstrInfo::copyRegToReg(), llvm::PPCInstrInfo::copyRegToReg(), llvm::MSP430InstrInfo::copyRegToReg(), llvm::Thumb1InstrInfo::copyRegToReg(), llvm::SparcInstrInfo::copyRegToReg(), llvm::SystemZInstrInfo::copyRegToReg(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::SparcRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), emitARMRegPlusImmediate(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::AlphaRegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitEpilogue(), llvm::MipsRegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::SparcRegisterInfo::emitEpilogue(), llvm::BlackfinRegisterInfo::emitEpilogue(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::SparcRegisterInfo::emitPrologue(), llvm::BlackfinRegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), llvm::XCoreRegisterInfo::emitPrologue(), llvm::MipsRegisterInfo::emitPrologue(), llvm::Thumb1RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::PPCRegisterInfo::emitPrologue(), llvm::SPURegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), emitSPUpdate(), emitThumbConstant(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), llvm::FastISel::FastEmitInst_(), llvm::FastISel::FastEmitInst_extractsubreg(), llvm::FastISel::FastEmitInst_i(), llvm::FastISel::FastEmitInst_r(), llvm::FastISel::FastEmitInst_rf(), llvm::FastISel::FastEmitInst_ri(), llvm::FastISel::FastEmitInst_rr(), llvm::FastISel::FastEmitInst_rri(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::FastISel::getRegForValue(), HandleVRSaveUpdate(), llvm::MipsInstrInfo::InsertBranch(), llvm::SystemZInstrInfo::InsertBranch(), llvm::BlackfinInstrInfo::InsertBranch(), llvm::PIC16InstrInfo::InsertBranch(), llvm::SPUInstrInfo::InsertBranch(), llvm::XCoreInstrInfo::InsertBranch(), llvm::X86InstrInfo::InsertBranch(), llvm::ARMBaseInstrInfo::InsertBranch(), llvm::AlphaInstrInfo::InsertBranch(), llvm::PPCInstrInfo::InsertBranch(), llvm::MSP430InstrInfo::InsertBranch(), llvm::SparcInstrInfo::InsertBranch(), llvm::PPCInstrInfo::insertNoop(), llvm::MipsInstrInfo::insertNoop(), llvm::AlphaInstrInfo::insertNoop(), llvm::BlackfinRegisterInfo::loadConstant(), llvm::X86InstrInfo::loadRegFromAddr(), llvm::BlackfinInstrInfo::loadRegFromStackSlot(), llvm::X86InstrInfo::loadRegFromStackSlot(), llvm::AlphaInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::MipsInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::PIC16InstrInfo::loadRegFromStackSlot(), llvm::SPUInstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), MakeM0Inst(), llvm::X86InstrInfo::reMaterialize(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), llvm::X86InstrInfo::restoreCalleeSavedRegisters(), llvm::MSP430InstrInfo::restoreCalleeSavedRegisters(), llvm::SystemZInstrInfo::restoreCalleeSavedRegisters(), llvm::FunctionLoweringInfo::set(), llvm::SystemZInstrInfo::spillCalleeSavedRegisters(), llvm::MSP430InstrInfo::spillCalleeSavedRegisters(), llvm::X86InstrInfo::spillCalleeSavedRegisters(), llvm::XCoreInstrInfo::spillCalleeSavedRegisters(), llvm::Thumb1InstrInfo::spillCalleeSavedRegisters(), llvm::X86InstrInfo::storeRegToAddr(), llvm::MipsInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::BlackfinInstrInfo::storeRegToStackSlot(), llvm::AlphaInstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::PIC16InstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::SPUInstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), and llvm::SystemZInstrInfo::storeRegToStackSlot().
| 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 106 of file MathExtras.h.
References llvm::SPISD::Hi, and llvm::SPISD::Lo.
Referenced by llvm::APInt::byteSwap(), and llvm::MachOWriter::InitMem().
| 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 120 of file MathExtras.h.
Referenced by llvm::APInt::byteSwap(), ByteSwap_64(), and llvm::MachOWriter::InitMem().
| 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 136 of file MathExtras.h.
References ByteSwap_32(), llvm::SPISD::Hi, and llvm::SPISD::Lo.
Referenced by llvm::APInt::byteSwap(), and llvm::MachOWriter::InitMem().
| void llvm::Calculate | ( | DominatorTreeBase< typename GraphTraits< N >::NodeType > & | DT, | |
| FuncT & | F | |||
| ) | [inline] |
DominatorTree - Calculate the immediate dominator tree for a function.
| void llvm::Calculate | ( | DominatorTreeBase< typename GraphTraits< NodeT >::NodeType > & | DT, | |
| FuncT & | F | |||
| ) | [inline] |
Definition at line 231 of file DominatorInternals.h.
References llvm::DomTreeNodeBase< NodeT >::addChild(), llvm::CallingConv::C, DT, E, Root, swap(), U, and V.
| Pass* llvm::callDefaultCtor | ( | ) | [inline] |
Definition at line 141 of file PassSupport.h.
canConstantFoldCallTo - Return true if its even possible to fold a call to the specified function.
Definition at line 673 of file ConstantFolding.cpp.
References llvm::Intrinsic::bswap, llvm::Intrinsic::ctlz, llvm::Intrinsic::ctpop, llvm::Intrinsic::cttz, llvm::Function::getIntrinsicID(), llvm::Value::getName(), llvm::Value::hasName(), Name, llvm::Intrinsic::powi, and llvm::Intrinsic::sqrt.
Referenced by CanConstantFold(), and ConstantFoldInstOperands().
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 785 of file ValueTracking.cpp.
References dyn_cast(), F, llvm::Operator::getOpcode(), llvm::User::getOperand(), II, and llvm::Intrinsic::sqrt.
| cast_retty<X, Y>::ret_type llvm::cast | ( | const Y & | Val | ) | [inline] |
| cast_retty<X, Y*>::ret_type llvm::cast_or_null | ( | Y * | Val | ) | [inline] |
| OStream llvm::cerr | ( | std::cerr | ) |
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses(), llvm::LLVMTargetMachine::addPassesToEmitFile(), llvm::LLVMTargetMachine::addPassesToEmitMachineCode(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::CCState::AnalyzeCallOperands(), llvm::CCState::AnalyzeCallResult(), llvm::CCState::AnalyzeFormalArguments(), llvm::CCState::AnalyzeReturn(), llvm::Interpreter::callExternalFunction(), CheckBitcodeOutputToConsole(), llvm::SelectionDAG::clearGraphAttrs(), DisplayGraph(), llvm::DIEAbbrev::dump(), llvm::SubtargetFeatures::dump(), llvm::DIVariable::dump(), llvm::Pass::dump(), llvm::CallGraph::dump(), llvm::DbgScope::dump(), llvm::Trace::dump(), llvm::AttrListPtr::dump(), llvm::DIBasicType::dump(), llvm::DIGlobalVariable::dump(), llvm::LiveVariables::VarInfo::dump(), llvm::MachineInstr::dump(), llvm::CallGraphNode::dump(), llvm::DIE::dump(), llvm::DIType::dump(), llvm::DIGlobal::dump(), llvm::MachineFrameInfo::dump(), llvm::TypeSymbolTable::dump(), llvm::LoopBase< llvm::MachineBasicBlock, llvm::MachineLoop >::dump(), llvm::DIDescriptor::dump(), llvm::DICompileUnit::dump(), llvm::DIEValue::dump(), llvm::MachineBasicBlock::dump(), llvm::MachineJumpTableInfo::dump(), llvm::MachineFunction::dump(), llvm::AliasSetTracker::dump(), llvm::DIDerivedType::dump(), llvm::ExtAddrMode::dump(), llvm::ARMConstantPoolValue::dump(), llvm::DICompositeType::dump(), llvm::DominanceFrontierBase::dump(), llvm::DominatorTreeBase< llvm::MachineBasicBlock >::dump(), llvm::AliasSet::dump(), llvm::VirtRegMap::dump(), llvm::LPPassManager::dumpPassStructure(), llvm::Pass::dumpPassStructure(), DumpTypes(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::TargetLowering::EmitInstrWithCustomInserter(), llvm::cl::Option::error(), 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::SubtargetFeatures::getBits(), llvm::MSILWriter::getConvModopt(), getErrorOutputStream(), llvm::SelectionDAG::getGraphAttrs(), llvm::SubtargetFeatures::getInfo(), GetLibSupportInfoOutputFile(), GetOptionInfo(), llvm::MSILWriter::getPrimitiveTypeName(), llvm::MSILWriter::getTypeName(), llvm::MSILWriter::getTypePostfix(), LeakDetectorImpl< llvm::Value >::hasGarbage(), Help(), llvm::ExecutionEngine::InitializeMemory(), llvm::MachOWriter::InitMem(), llvm::TypeSymbolTable::insert(), llvm::SPUInstrInfo::InsertBranch(), llvm::Linker::LinkModules(), lle_X_sprintf(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::SPUTargetLowering::LowerOperation(), LowerSTORE(), llvm::PluginLoader::operator=(), llvm::cl::ParseCommandLineOptions(), llvm::PassNameParser::passRegistered(), llvm::GCStrategy::performCustomLowering(), llvm::SPUTargetLowering::PerformDAGCombine(), PrinterTrait< T >::print(), PrinterTrait< Value >::print(), printAndVerify(), llvm::MSILWriter::printCastInstruction(), llvm::MSILWriter::printConstLoad(), PrintMap(), PrintOps(), llvm::MSILWriter::printPtrLoad(), llvm::MSILWriter::printValueLoad(), llvm::MSILWriter::printValueSave(), llvm::ProfileInfoLoader::ProfileInfoLoader(), ProvideOption(), ReadProfilingBlock(), llvm::Deserializer::ReadUIntPtr(), llvm::Deserializer::RegisterPtr(), RemapOperand(), llvm::TypeSymbolTable::remove(), llvm::SPUInstrInfo::RemoveBranch(), llvm::SPUTargetLowering::ReplaceNodeResults(), llvm::DAGTypeLegalizer::run(), llvm::SelectionDAG::setGraphAttrs(), llvm::SelectionDAG::setGraphColor(), llvm::SelectionDAG::setSubgraphColor(), llvm::ExecutionEngine::StoreValueToMemory(), llvm::MachineFunction::viewCFG(), llvm::MachineFunction::viewCFGOnly(), llvm::SelectionDAG::viewGraph(), llvm::ScheduleDAG::viewGraph(), llvm::Interpreter::visitBinaryOperator(), llvm::Interpreter::visitFCmpInst(), llvm::Interpreter::visitICmpInst(), llvm::Interpreter::visitInstruction(), llvm::Interpreter::visitLoadInst(), llvm::Interpreter::visitStoreInst(), llvm::Interpreter::visitVAArgInst(), and WriteGraph().
| 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 the outs() and displayed or not (to a console window). If so, generate a warning message 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 22 of file SystemUtils.cpp.
References cerr(), outs(), and llvm::sys::Process::StandardOutIsDisplayed().
| bool llvm::CheckBitcodeOutputToConsole | ( | std::ostream * | stream_to_check, | |
| bool | print_warning = true | |||
| ) |
Check for output written to a console.
Determine if the ostream provided is connected to the std::cout and displayed or not (to a console window). If so, generate a warning message 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 37 of file SystemUtils.cpp.
References cerr(), cout(), and llvm::sys::Process::StandardOutIsDisplayed().
Definition at line 367 of file Instructions.h.
| IStream llvm::cin | ( | std::cin | ) |
| void llvm::CloneAndPruneFunctionInto | ( | Function * | NewFunc, | |
| const Function * | OldFunc, | |||
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| std::vector< ReturnInst * > & | Returns, | |||
| const char * | NameSuffix = "", |
|||
| ClonedCodeInfo * | CodeInfo = 0, |
|||
| const TargetData * | TD = 0 | |||
| ) |
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.
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 362 of file CloneFunction.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::BasicBlock::back(), llvm::Function::begin(), llvm::BasicBlock::begin(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::count(), dyn_cast(), E, llvm::BasicBlock::end(), llvm::Function::end(), llvm::BasicBlock::eraseFromParent(), llvm::Instruction::eraseFromParent(), llvm::UndefValue::get(), llvm::Function::getBasicBlockList(), llvm::Function::getContext(), 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::Value::getType(), II, llvm::BranchInst::isConditional(), MapValue(), PI, Pred, pred, pred_begin(), pred_end(), RemapInstruction(), llvm::PHINode::removeIncomingValue(), llvm::Value::replaceAllUsesWith(), llvm::PHINode::setIncomingBlock(), and llvm::PHINode::setIncomingValue().
Referenced by InlineFunction().
| BasicBlock * llvm::CloneBasicBlock | ( | const BasicBlock * | BB, | |
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| const char * | NameSuffix = "", |
|||
| Function * | F = 0, |
|||
| ClonedCodeInfo * | CodeInfo = 0 | |||
| ) |
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 ValueMap 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 34 of file CloneFunction.cpp.
References AI, llvm::BasicBlock::begin(), llvm::ClonedCodeInfo::ContainsCalls, llvm::ClonedCodeInfo::ContainsDynamicAllocas, llvm::ClonedCodeInfo::ContainsUnwinds, llvm::BasicBlock::Create(), llvm::BasicBlock::end(), llvm::AllocationInst::getArraySize(), llvm::BasicBlock::getContext(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getInstList(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::Value::hasName(), II, and llvm::Value::setName().
Referenced by CloneFunctionInto(), CloneLoop(), CloneTrace(), CloneTraceInto(), and UnrollLoop().
| Function* llvm::CloneFunction | ( | const Function * | F, | |
| ClonedCodeInfo * | CodeInfo = 0 | |||
| ) | [inline] |
CloneFunction - Version of the function that doesn't need the ValueMap.
Definition at line 127 of file Cloning.h.
References CloneFunction(), and CodeInfo.
Referenced by SpecializeFunction().
| Function * llvm::CloneFunction | ( | const Function * | F, | |
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| ClonedCodeInfo * | CodeInfo = 0 | |||
| ) |
CloneFunction - Return a copy of the specified function, but without embedding the function into another module. Also, any references specified in the ValueMap are changed to refer to their mapped value instead of the original one. If any of the arguments to the function are in the ValueMap, the arguments are deleted from the resultant function. The ValueMap 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.
CloneFunction - Return a copy of the specified function, but without embedding the function into another module. Also, any references specified in the ValueMap are changed to refer to their mapped value instead of the original one. If any of the arguments to the function are in the ValueMap, the arguments are deleted from the resultant function. The ValueMap is updated to include mappings from all of the instructions and basicblocks in the function from their old to new values.
Definition at line 140 of file CloneFunction.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), CloneFunctionInto(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::count(), llvm::Function::Create(), E, llvm::FunctionType::get(), llvm::Function::getFunctionType(), llvm::GlobalValue::getLinkage(), llvm::Value::getName(), llvm::FunctionType::getReturnType(), llvm::FunctionType::isVarArg(), and Returns.
Referenced by CloneFunction().
| void llvm::CloneFunctionInto | ( | Function * | NewFunc, | |
| const Function * | OldFunc, | |||
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| std::vector< ReturnInst * > & | Returns, | |||
| const char * | NameSuffix = "", |
|||
| ClonedCodeInfo * | CodeInfo = 0 | |||
| ) |
Clone OldFunc into NewFunc, transforming the old arguments into references to ArgMap 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 append the specified suffix to all values cloned.
Definition at line 74 of file CloneFunction.cpp.
References llvm::AttrListPtr::addAttr(), llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Function::arg_size(), BB, llvm::MachineBasicBlock::begin(), llvm::Function::begin(), CloneBasicBlock(), llvm::Function::copyAttributesFrom(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::count(), E, llvm::Function::end(), llvm::MachineBasicBlock::end(), llvm::Function::getAttributes(), llvm::AttrListPtr::getFnAttributes(), llvm::AttrListPtr::getParamAttributes(), llvm::AttrListPtr::getRetAttributes(), llvm::BasicBlock::getTerminator(), II, RemapInstruction(), and llvm::Function::setAttributes().
Referenced by CloneFunction(), and CloneModule().
| Loop * llvm::CloneLoop | ( | Loop * | OrigL, | |
| LPPassManager * | LPM, | |||
| LoopInfo * | LI, | |||
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| Pass * | P | |||
| ) |
CloneLoop - Clone Loop. Clone dominator info for loop insiders. Populate ValueMap using old blocks to new blocks mapping.
CloneLoop - Clone Loop. Clone dominator info. Populate ValueMap using old blocks to new blocks mapping.
Definition at line 76 of file CloneLoop.cpp.
References llvm::LoopBase< BlockT, LoopT >::addBasicBlockToLoop(), BB, llvm::LoopBase< BlockT, LoopT >::begin(), llvm::SmallVectorImpl< T >::begin(), llvm::BasicBlock::begin(), llvm::LoopBase< BlockT, LoopT >::block_begin(), llvm::LoopBase< BlockT, LoopT >::block_end(), CloneBasicBlock(), llvm::LPPassManager::cloneBasicBlockSimpleAnalysis(), CloneDominatorInfo(), DF, DT, E, llvm::SmallVectorImpl< T >::empty(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::end(), llvm::BasicBlock::end(), llvm::SmallVectorImpl< T >::end(), llvm::LoopBase< BlockT, LoopT >::end(), F, llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::find(), llvm::Pass::getAnalysisIfAvailable(), llvm::LoopInfo::getBase(), llvm::Function::getBasicBlockList(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::LoopBase< BlockT, LoopT >::getLoopLatch(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::BasicBlock::getParent(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), index, llvm::LPPassManager::insertLoop(), L, llvm::GC::Loop, NewBlocks, Op, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorImpl< T >::push_back(), and llvm::User::setOperand().
Definition at line 35 of file CloneModule.cpp.
References llvm::Module::addLibrary(), llvm::Module::addTypeName(), llvm::Module::alias_begin(), llvm::Module::alias_end(), llvm::Function::arg_begin(), llvm::TypeSymbolTable::begin(), llvm::Module::begin(), llvm::CallingConv::C, CloneFunctionInto(), llvm::Function::copyAttributesFrom(), llvm::Function::Create(), E, llvm::Module::end(), llvm::TypeSymbolTable::end(), llvm::GlobalValue::ExternalLinkage, F, llvm::Module::getContext(), llvm::Module::getDataLayout(), llvm::Module::getModuleIdentifier(), llvm::Module::getModuleInlineAsm(), llvm::Module::getTargetTriple(), llvm::Module::getTypeSymbolTable(), llvm::Module::global_begin(), llvm::Module::global_end(), GV, llvm::Module::lib_begin(), llvm::Module::lib_end(), MapValue(), Returns, llvm::GlobalAlias::setAliasee(), llvm::GlobalValue::setAlignment(), llvm::GlobalVariable::setConstant(), llvm::Module::setDataLayout(), llvm::GlobalVariable::setInitializer(), llvm::GlobalValue::setLinkage(), llvm::Module::setModuleInlineAsm(), llvm::Module::setTargetTriple(), and llvm::GlobalVariable::setThreadLocal().
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 28 of file CloneModule.cpp.
| std::vector< BasicBlock * > llvm::CloneTrace | ( | const std::vector< BasicBlock * > & | origTrace | ) |
CloneTrace - Returns a copy of the specified trace. It takes a vector of basic blocks clones the basic blocks, removes internal phi nodes, adds it to the same function as the original (although there is no jump to it) and returns the new vector of basic blocks.
Definition at line 27 of file CloneTrace.cpp.
References BB, llvm::MachineBasicBlock::begin(), llvm::BasicBlock::begin(), CloneBasicBlock(), E, End, llvm::PHINode::getIncomingValueForBlock(), llvm::BasicBlock::getInstList(), Op, T, and V.
| void llvm::CloneTraceInto | ( | Function * | NewFunc, | |
| Trace & | T, | |||
| DenseMap< const Value *, Value * > & | ValueMap, | |||
| const char * | NameSuffix | |||
| ) |
CloneTraceInto - Clone T into NewFunc. Original<->clone mapping is saved in ValueMap.
Definition at line 93 of file CloneTrace.cpp.
References BB, llvm::MachineBasicBlock::begin(), llvm::Trace::begin(), CloneBasicBlock(), llvm::Function::end(), llvm::MachineBasicBlock::end(), llvm::Trace::end(), llvm::Trace::getEntryBasicBlock(), II, and RemapInstruction().
| void llvm::Compress | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, | |
| typename GraphT::NodeType * | VIn | |||
| ) | [inline] |
Definition at line 117 of file DominatorInternals.h.
References llvm::DominatorTreeBase< NodeT >::Info, llvm::SmallPtrSet< PtrType, SmallSize >::insert(), V, llvm::DominatorTreeBase< NodeT >::Vertex, and Visited.
| void llvm::ComputeMaskedBits | ( | Value * | V, | |
| const APInt & | Mask, | |||
| APInt & | KnownZero, | |||
| APInt & | KnownOne, | |||
| TargetData * | TD = 0, |
|||
| unsigned | Depth = 0 | |||
| ) |
ComputeMaskedBits - Determine which of the bits specified in Mask are known to be either zero or one and return them in the KnownZero/KnownOne bit sets. This code only analyzes bits in Mask, in order to short-circuit processing.
ComputeMaskedBits - Determine which of the bits specified in Mask are known to be either zero or one and return them in the KnownZero/KnownOne bit sets. This code only analyzes bits in Mask, in order to short-circuit processing. NOTE: we cannot consider 'undef' to be "IsZero" here. The problem is that we cannot optimize based on the assumption that it is zero without changing it to be an explicit zero. If we don't change it to zero, other code could optimized based on the contradictory assumption that it is non-zero. Because instcombine aggressively folds operations with undef args anyway, this won't lose us code quality.
Definition at line 38 of file ValueTracking.cpp.
References AI, Align, llvm::APIntOps::And(), BitCast, Call, llvm::APInt::clear(), llvm::APInt::countLeadingZeros(), CountTrailingZeros_32(), CountTrailingZeros_64(), llvm::Intrinsic::ctlz, llvm::Intrinsic::ctpop, llvm::Intrinsic::cttz, dyn_cast(), FPToUI, FPTrunc, gep_type_begin(), llvm::TargetData::getABITypeAlignment(), llvm::AllocationInst::getAlignment(), llvm::GlobalValue::getAlignment(), llvm::APInt::getAllOnesValue(), llvm::IntegerType::getBitWidth(), llvm::APInt::getBitWidth(), llvm::Value::getContext(), llvm::Type::getDoubleTy(), llvm::StructLayout::getElementOffset(), llvm::SequentialType::getElementType(), llvm::APInt::getHighBitsSet(), llvm::PHINode::getIncomingValue(), llvm::generic_gep_type_iterator< ItTy >::getIndexedType(), llvm::Type::getInt64Ty(), llvm::APInt::getLowBitsSet(), llvm::PHINode::getNumIncomingValues(), llvm::User::getNumOperands(), llvm::Operator::getOpcode(), llvm::User::getOperand(), llvm::TargetData::getPrefTypeAlignment(), llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), llvm::APInt::getSignBit(), llvm::Value::getType(), llvm::GlobalValue::getType(), llvm::AllocationInst::getType(), llvm::TargetData::getTypeSizeInBits(), GV, Idx, II, Index, llvm::GlobalValue::isDeclaration(), llvm::Type::isInteger(), llvm::Type::isIntOrIntVector(), llvm::APInt::isPowerOf2(), llvm::Type::isSized(), llvm::APInt::isStrictlyPositive(), L, Log2_32(), llvm::APIntOps::lshr(), llvm::APInt::lshr(), LShr, Malloc, llvm::GlobalValue::mayBeOverridden(), Offset, llvm::APIntOps::Or(), PHI, PtrToInt, R, llvm::APInt::set(), llvm::Attribute::SExt, llvm::APInt::shl(), llvm::APInt::trunc(), UIToFP, llvm::APIntOps::Xor(), ZExt, and llvm::APInt::zextOrTrunc().
Referenced by ComputeNumSignBits(), llvm::ScalarEvolution::GetMinTrailingZeros(), llvm::ScalarEvolution::getUnsignedRange(), and MaskedValueIsZero().
| unsigned llvm::ComputeNumSignBits | ( | Value * | V, | |
| TargetData * | TD = 0, |
|||
| unsigned | Depth = 0 | |||
| ) |
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.
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 629 of file ValueTracking.cpp.
References llvm::APIntOps::And(), llvm::CallingConv::C, ComputeMaskedBits(), llvm::APInt::countLeadingZeros(), dyn_cast(), llvm::APInt::getAllOnesValue(), llvm::APInt::getBitWidth(), llvm::Operator::getOpcode(), llvm::User::getOperand(), llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), llvm::Value::getType(), llvm::TargetData::getTypeSizeInBits(), llvm::Type::isIntOrIntVector(), llvm::APInt::isNegative(), llvm::APIntOps::Or(), llvm::Attribute::SExt, Ty, and llvm::APIntOps::Xor().
Referenced by llvm::ScalarEvolution::getSignedRange().
| 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 | ( | LLVMContext & | Context, | |
| unsigned | Opcode, | |||
| const Constant * | C1, | |||
| const Constant * | C2 | |||
| ) |
Definition at line 584 of file ConstantFold.cpp.
References llvm::APFloat::add(), llvm::APIntOps::And(), llvm::APInt::ashr(), llvm::APFloat::divide(), dyn_cast(), llvm::UndefValue::get(), llvm::ConstantFP::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::getAdd(), llvm::GlobalValue::getAlignment(), llvm::Constant::getAllOnesValue(), llvm::ConstantExpr::getAnd(), llvm::ConstantExpr::getAShr(), llvm::APInt::getBitWidth(), llvm::ConstantExpr::getFAdd(), llvm::ConstantExpr::getFDiv(), llvm::ConstantExpr::getFMul(), llvm::ConstantExpr::getFRem(), llvm::ConstantExpr::getFSub(), llvm::APInt::getLowBitsSet(), llvm::ConstantExpr::getLShr(), llvm::ConstantExpr::getMul(), llvm::Constant::getNullValue(), llvm::Constant::getOperand(), llvm::ConstantExpr::getOr(), llvm::Type::getPPC_FP128Ty(), llvm::ConstantExpr::getSDiv(), llvm::ConstantExpr::getShl(), llvm::ConstantExpr::getSRem(), llvm::ConstantExpr::getSub(), llvm::Value::getType(), llvm::ConstantExpr::getUDiv(), llvm::ConstantExpr::getURem(), llvm::ConstantExpr::getXor(), GV, llvm::APInt::isMinSignedValue(), Log2_32(), llvm::APInt::lshr(), LShr, llvm::APFloat::mod(), llvm::APFloat::multiply(), llvm::APIntOps::Or(), PtrToInt, llvm::APFloat::rmNearestTiesToEven, llvm::APInt::sdiv(), llvm::APInt::shl(), llvm::APInt::srem(), llvm::APFloat::subtract(), llvm::APInt::udiv(), llvm::APInt::urem(), llvm::APIntOps::Xor(), and ZExt.
Referenced by llvm::ConstantExpr::getTy().
| Constant * llvm::ConstantFoldCall | ( | Function * | F, | |
| Constant *const * | Operands, | |||
| unsigned | NumOperands | |||
| ) |
ConstantFoldCall - Attempt to constant fold a call to the specified function with the specified arguments, returning null if unsuccessful.
Currently APFloat versions of these functions do not exist, so we use the host native double versions. Float versions are not called directly but for all these it is true (float)(f((double)arg)) == f(arg). Long double not supported yet.
Definition at line 754 of file ConstantFolding.cpp.
References llvm::lltok::APFloat, ConstantFoldBinaryFP(), ConstantFoldFP(), llvm::Intrinsic::cos, llvm::Intrinsic::exp, llvm::ConstantFP::get(), llvm::ConstantInt::get(), llvm::Function::getContext(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Value::getName(), llvm::Constant::getNullValue(), llvm::Function::getReturnType(), llvm::Value::hasName(), llvm::Intrinsic::log, llvm::Intrinsic::log10, Name, Op, llvm::Intrinsic::pow, llvm::Intrinsic::sin, llvm::Intrinsic::sqrt, llvm::StringRef::startswith(), Ty, and V.
Referenced by ConstantFoldInstOperands(), and EvaluateFunction().
| Constant * llvm::ConstantFoldCastInstruction | ( | LLVMContext & | Context, | |
| unsigned | opc, | |||
| const Constant * | V, | |||
| const Type * | DestTy | |||
| ) |
| opcode | The opcode of the cast |
| V | The source constant |
| DestTy | The destination type |
Definition at line 182 of file ConstantFold.cpp.
References llvm::lltok::APFloat, BitCast, llvm::APFloat::Bogus, llvm::APFloat::convert(), llvm::APFloat::convertFromAPInt(), llvm::APFloat::convertToInteger(), FoldBitCast(), foldConstantCastPair(), FPToUI, FPTrunc, llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), llvm::ConstantFP::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::getCast(), llvm::Type::getDoubleTy(), llvm::SequentialType::getElementType(), llvm::Type::getFloatTy(), llvm::Type::getFP128Ty(), llvm::Constant::getNullValue(), llvm::ConstantExpr::getPointerCast(), llvm::Type::getPPC_FP128Ty(), llvm::Type::getPrimitiveSizeInBits(), llvm::Value::getType(), llvm::Type::getX86_FP80Ty(), llvm::APFloat::IEEEdouble, llvm::APFloat::IEEEquad, llvm::APFloat::IEEEsingle, llvm::Constant::isNullValue(), llvm_unreachable, PtrToInt, llvm::APFloat::rmNearestTiesToEven, llvm::APFloat::rmTowardZero, llvm::Attribute::SExt, UIToFP, Val, llvm::APFloat::x87DoubleExtended, zero, and ZExt.
Referenced by getFoldedCast().
| Constant * llvm::ConstantFoldCompareInstOperands | ( | unsigned | Predicate, | |
| Constant *const * | Ops, | |||
| unsigned | NumOps, | |||
| LLVMContext & | Context, | |||
| const TargetData * | TD = 0 | |||
| ) |
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 535 of file ConstantFolding.cpp.
References llvm::CallingConv::C, llvm::ConstantExpr::getCompare(), llvm::ConstantExpr::getIntegerCast(), llvm::TargetData::getIntPtrType(), llvm::Constant::getNullValue(), llvm::Constant::getOperand(), llvm::Value::getType(), and PtrToInt.
Referenced by ConstantFoldConstantExpression(), ConstantFoldInstruction(), EvaluateExpression(), and llvm::ScalarEvolution::getSCEVAtScope().
| Constant * llvm::ConstantFoldCompareInstruction | ( | LLVMContext & | Context, | |
| unsigned short | pred, | |||
| const Constant * | C1, | |||
| const Constant * | C2 | |||
| ) |
Definition at line 1376 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::UndefValue::get(), llvm::VectorType::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::Constant::getAllOnesValue(), llvm::ConstantExpr::getCompare(), llvm::ConstantInt::getFalse(), llvm::Type::getInt1Ty(), llvm::Constant::getNullValue(), llvm::Type::getPPC_FP128Ty(), llvm::CmpInst::getSwappedPredicate(), llvm::ConstantInt::getTrue(), llvm::Value::getType(), llvm::Constant::getVectorElements(), GV, llvm::GlobalValue::hasExternalWeakLinkage(), 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::Type::isFloatingPoint(), llvm::Constant::isNullValue(), llvm::CmpInst::isSigned(), llvm_unreachable, llvm::SmallVectorImpl< T >::push_back(), R, llvm::APInt::sge(), llvm::APInt::sgt(), llvm::SmallVectorImpl< T >::size(), llvm::APInt::sle(), llvm::APInt::slt(), llvm::APInt::uge(), llvm::APInt::ugt(), llvm::APInt::ule(), llvm::APInt::ult(), V1, and VT.
Referenced by llvm::ConstantExpr::getFCmp(), and llvm::ConstantExpr::getICmp().
| Constant * llvm::ConstantFoldConstantExpression | ( | ConstantExpr * | CE, | |
| LLVMContext & | Context, | |||
| const TargetData * | TD = 0 | |||
| ) |
ConstantFoldConstantExpression - Attempt to fold the constant expression using the specified TargetData. If successful, the constant result is result is returned, if not, null is returned.
Definition at line 390 of file ConstantFolding.cpp.
References ConstantFoldCompareInstOperands(), ConstantFoldInstOperands(), llvm::SmallVectorImpl< T >::data(), llvm::ConstantExpr::getOpcode(), llvm::ConstantExpr::getPredicate(), llvm::Value::getType(), llvm::ConstantExpr::isCompare(), llvm::User::op_begin(), llvm::User::op_end(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
| Constant * llvm::ConstantFoldExtractElementInstruction | ( | LLVMContext & | Context, | |
| const Constant * | Val, | |||
| const Constant * | Idx | |||
| ) |
Definition at line 336 of file ConstantFold.cpp.
References llvm::UndefValue::get(), llvm::Constant::getNullValue(), llvm::Constant::getOperand(), llvm::Value::getType(), and llvm::Constant::isNullValue().
Referenced by llvm::ConstantExpr::getExtractElementTy().
| Constant * llvm::ConstantFoldExtractValueInstruction | ( | LLVMContext & | Context, | |
| const Constant * | Agg, | |||
| const unsigned * | Idxs, | |||
| unsigned | NumIdx | |||
| ) |
Definition at line 467 of file ConstantFold.cpp.
References llvm::UndefValue::get(), llvm::Constant::getNullValue(), llvm::Constant::getOperand(), and llvm::Value::getType().
Referenced by llvm::ConstantExpr::getExtractValueTy().
| Constant * llvm::ConstantFoldGetElementPtr | ( | LLVMContext & | Context, | |
| const Constant * | C, | |||
| Constant *const * | Idxs, | |||
| unsigned | NumIdx | |||
| ) |
Definition at line 1672 of file ConstantFold.cpp.
References Base, C2, E, llvm::SmallVectorImpl< T >::end(), gep_type_begin(), gep_type_end(), llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), llvm::PointerType::get(), llvm::ConstantExpr::get(), llvm::ConstantExpr::getAdd(), llvm::PointerType::getAddressSpace(), llvm::ConstantExpr::getGetElementPtr(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::ConstantExpr::getIntToPtr(), llvm::Type::getPrimitiveSizeInBits(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), llvm::Value::getType(), llvm::ConstantExpr::getZExt(), llvm::SmallVectorImpl< T >::insert(), llvm::Constant::isNullValue(), Offset, llvm::SmallVectorImpl< T >::push_back(), llvm::SmallVectorImpl< T >::reserve(), llvm::SmallVectorImpl< T >::size(), and Ty.
Referenced by llvm::ConstantExpr::getGetElementPtrTy().
| Constant * llvm::ConstantFoldInsertElementInstruction | ( | LLVMContext & | Context, | |
| const Constant * | Val, | |||
| const Constant * | Elt, | |||
| const Constant * | Idx | |||
| ) |
Definition at line 356 of file ConstantFold.cpp.
References dyn_cast(), llvm::UndefValue::get(), llvm::ConstantVector::get(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::ConstantInt::getValue(), llvm::Constant::isNullValue(), and Op.
Referenced by llvm::ConstantExpr::getInsertElementTy().
| Constant * llvm::ConstantFoldInsertValueInstruction | ( | LLVMContext & | Context, | |
| const Constant * | Agg, | |||
| const Constant * | Val, | |||
| const unsigned * | Idxs, | |||
| unsigned | NumIdx | |||
| ) |
Definition at line 491 of file ConstantFold.cpp.
References llvm::UndefValue::get(), llvm::ConstantStruct::get(), llvm::ConstantArray::get(), llvm::Constant::getNullValue(), llvm::User::getNumOperands(), llvm::Constant::getOperand(), llvm::Value::getType(), llvm::CompositeType::getTypeAtIndex(), llvm::Constant::isNullValue(), and Op.
Referenced by llvm::ConstantExpr::getInsertValueTy().
| Constant * llvm::ConstantFoldInstOperands | ( | unsigned | Opcode, | |
| const Type * | DestTy, | |||
| Constant *const * | Ops, | |||
| unsigned | NumOps, | |||
| LLVMContext & | Context, | |||
| const TargetData * | TD = 0 | |||
| ) |
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.
Definition at line 412 of file ConstantFolding.cpp.
References BitCast, llvm::CallingConv::C, Call, canConstantFoldCallTo(), ConstantFoldCall(), ExtractElement(), F, FCmp, FoldBitCast(), FPToUI, FPTrunc, llvm::ConstantInt::get(), llvm::ConstantExpr::get(), llvm::ConstantExpr::getAnd(), llvm::ConstantExpr::getBitCast(), llvm::APInt::getBitWidth(), llvm::ConstantExpr::getCast(), llvm::SequentialType::getElementType(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getIntegerCast(), llvm::APInt::getLowBitsSet(), llvm::Constant::getNullValue(), llvm::User::getOperand(), llvm::TargetData::getPointerSizeInBits(), llvm::Type::getScalarSizeInBits(), llvm::ConstantExpr::getSelect(), llvm::ConstantExpr::getShuffleVector(), llvm::Value::getType(), llvm::GlobalValue::getType(), llvm::TargetData::getTypeAllocSize(), GV, Index, InsertElement, llvm::Instruction::isBinaryOp(), L, llvm_unreachable, PtrToInt, R, llvm::Attribute::SExt, SymbolicallyEvaluateBinop(), SymbolicallyEvaluateGEP(), UIToFP, llvm::APInt::ult(), and ZExt.
Referenced by ConstantFoldConstantExpression(), ConstantFoldInstruction(), EvaluateExpression(), and llvm::ScalarEvolution::getSCEVAtScope().
| Constant * llvm::ConstantFoldInstruction | ( | Instruction * | I, | |
| LLVMContext & | Context, | |||
| const TargetData * | TD = 0 | |||
| ) |
ConstantFoldInstruction - Attempt to constant fold the specified instruction. If successful, the constant result is returned, if not, null is returned. Note that this function can only fail when attempting to fold instructions like loads and stores, which have no constant expression form.
Definition at line 351 of file ConstantFolding.cpp.
References ConstantFoldCompareInstOperands(), ConstantFoldInstOperands(), llvm::SmallVectorImpl< T >::data(), dyn_cast(), llvm::UndefValue::get(), llvm::Instruction::getOpcode(), llvm::Value::getType(), Op, llvm::User::op_begin(), llvm::User::op_end(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
Referenced by AddReachableCodeToWorklist(), CleanupConstantGlobalUsers(), ConstantPropUsersOf(), FoldCondBranchOnPHI(), and UnrollLoop().
| Constant * llvm::ConstantFoldLoadThroughGEPConstantExpr | ( | Constant * | C, | |
| ConstantExpr * | CE, | |||
| LLVMContext & | Context | |||
| ) |
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 609 of file ConstantFolding.cpp.
References CA, CP, E, gep_type_begin(), gep_type_end(), llvm::UndefValue::get(), llvm::Constant::getNullValue(), llvm::Constant::getOperand(), llvm::generic_gep_type_iterator< ItTy >::getOperand(), llvm::Value::getType(), and llvm::ConstantInt::getZExtValue().
Referenced by CleanupConstantGlobalUsers(), ComputeLoadResult(), and isSimpleEnoughPointerToCommit().
| Constant * llvm::ConstantFoldSelectInstruction | ( | LLVMContext & | , | |
| const Constant * | Cond, | |||
| const Constant * | V1, | |||
| const Constant * | V2 | |||
| ) |
| Constant * llvm::ConstantFoldShuffleVectorInstruction | ( | LLVMContext & | Context, | |
| const Constant * | V1, | |||
| const Constant * | V2, | |||
| const Constant * | Mask | |||
| ) |
Definition at line 429 of file ConstantFold.cpp.
References llvm::UndefValue::get(), llvm::ConstantVector::get(), llvm::Value::getType(), GetVectorElement(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
Referenced by llvm::ConstantExpr::getShuffleVectorTy().
| bool llvm::ConstantFoldTerminator | ( | BasicBlock * | BB | ) |
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.
Definition at line 84 of file Local.cpp.
References llvm::BranchInst::Create(), dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getParent(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::CmpInst::ICMP_EQ, llvm::BasicBlock::removePredecessor(), and T.
Referenced by MarkAliveBlocks(), and SimplifyCFG().
| void llvm::CopyPrecedingStopPoint | ( | Instruction * | I, | |
| BasicBlock::iterator | InsertPos | |||
| ) |
CopyPrecedingStopPoint - If I is immediately preceded by a StopPoint, make a copy of the stoppoint before InsertPos (presumably before copying or moving I).
Definition at line 618 of file BasicBlockUtils.cpp.
References BBI, llvm::BasicBlock::begin(), llvm::Value::getContext(), llvm::Instruction::getParent(), and llvm::Instruction::insertBefore().
Referenced by TryToSinkInstruction().
| 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 180 of file MathExtras.h.
References CountLeadingZeros_32().
| 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 232 of file MathExtras.h.
References CountLeadingZeros_64().
| unsigned llvm::CountLeadingZeros_32 | ( | uint32_t | Value | ) | [inline] |
CountLeadingZeros_32 - this function performs the platform optimal form of counting the number of zeros from the most significant bit to the first one bit. Ex. CountLeadingZeros_32(0x00F000FF) == 8. Returns 32 if the word is zero.
Definition at line 152 of file MathExtras.h.
Referenced by CountLeadingOnes_32(), CountLeadingZeros_64(), llvm::ARM_AM::getT2SOImmValRotateVal(), KnuthDiv(), Log2_32(), Log2_32_Ceil(), and rewriteT2FrameIndex().
| unsigned llvm::CountLeadingZeros_64 | ( | uint64_t | Value | ) | [inline] |
CountLeadingZeros_64 - This function performs the platform optimal form of counting the number of zeros from the most significant bit to the first one bit (64 bit edition.) Returns 64 if the word is zero.
Definition at line 188 of file MathExtras.h.
References CountLeadingZeros_32(), llvm::SPISD::Hi, Hi_32(), llvm::SPISD::Lo, and Lo_32().
Referenced by CountLeadingOnes_64(), llvm::APInt::countLeadingZeros(), Log2_64(), and Log2_64_Ceil().
| 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 291 of file MathExtras.h.
Referenced by llvm::SparseBitVectorElement< ElementSize >::count(), and llvm::BitVector::count().
| 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 303 of file MathExtras.h.
Referenced by llvm::SparseBitVectorElement< ElementSize >::count(), llvm::BitVector::count(), and llvm::APInt::countPopulation().
| 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 257 of file MathExtras.h.
References CountTrailingZeros_32().
| 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 284 of file MathExtras.h.
References CountTrailingZeros_64().
Referenced by llvm::APInt::countTrailingOnes().
| unsigned llvm::CountTrailingZeros_32 | ( | uint32_t | Value | ) | [inline] |
CountTrailingZeros_32 - this function performs the platform optimal form of counting the number of zeros from the least significant bit to the first one bit. Ex. CountTrailingZeros_32(0xFF00FF00) == 8. Returns 32 if the word is zero.
Definition at line 240 of file MathExtras.h.
Referenced by CollectBSwapParts(), ComputeMaskedBits(), CountTrailingOnes_32(), llvm::BitVector::find_first(), llvm::SparseBitVectorElement< ElementSize >::find_first(), llvm::BitVector::find_next(), llvm::SparseBitVectorElement< ElementSize >::find_next(), llvm::ARM_AM::getSOImmValRotate(), llvm::ARM_AM::getThumbImm16ValShift(), and llvm::ARM_AM::getThumbImmValShift().
| unsigned llvm::CountTrailingZeros_64 | ( | uint64_t | Value | ) | [inline] |
CountTrailingZeros_64 - This function performs the platform optimal form of counting the number of zeros from the least significant bit to the first one bit (64 bit edition.) Returns 64 if the word is zero.
Definition at line 265 of file MathExtras.h.
Referenced by ComputeMaskedBits(), CountTrailingOnes_64(), llvm::APInt::countTrailingZeros(), llvm::BitVector::find_first(), llvm::SparseBitVectorElement< ElementSize >::find_first(), llvm::BitVector::find_next(), and llvm::SparseBitVectorElement< ElementSize >::find_next().
| OStream llvm::cout | ( | std::cout | ) |
Referenced by CheckBitcodeOutputToConsole(), GetLibSupportInfoOutputFile(), llvm::SourceFunctionInfo::getSourceLocation(), lle_X_printf(), llvm::cl::basic_parser_impl::printOptionInfo(), llvm::cl::generic_parser_base::printOptionInfo(), llvm::SlowOperationInformer::progress(), WriteBitcodeToFile(), and llvm::SlowOperationInformer::~SlowOperationInformer().
| FunctionPass * llvm::createAAEvalPass | ( | ) |
Definition at line 82 of file AliasAnalysisEvaluator.cpp.
| FunctionPass * llvm::createAggressiveDCEPass | ( | ) |
Definition at line 96 of file ADCE.cpp.
Referenced by createStandardModulePasses(), and LLVMAddAggressiveDCEPass().
| ModulePass * llvm::createAliasAnalysisCounterPass | ( | ) |
Definition at line 124 of file AliasAnalysisCounter.cpp.
| Pass * llvm::createAliasDebugger | ( | ) |
Definition at line 122 of file AliasDebugger.cpp.
| FunctionPass * llvm::createAlphaBranchSelectionPass | ( | ) |
createAlphaBranchSelectionPass - returns an instance of the Branch Selection Pass
Definition at line 40 of file AlphaBranchSelector.cpp.
Referenced by llvm::AlphaTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createAlphaCodeEmitterPass | ( | AlphaTargetMachine & | TM, | |
| MachineCodeEmitter & | MCE | |||
| ) |
createAlphaCodeEmitterPass - Return a pass that emits the collected Alpha code to the specified MCE object.
Definition at line 86 of file AlphaCodeEmitter.cpp.
Referenced by llvm::AlphaTargetMachine::addCodeEmitter().
| FunctionPass * llvm::createAlphaISelDag | ( | AlphaTargetMachine & | TM | ) |
createAlphaISelDag - This pass converts a legalized DAG into a Alpha-specific DAG, ready for instruction scheduling.
Definition at line 455 of file AlphaISelDAGToDAG.cpp.
Referenced by llvm::AlphaTargetMachine::addInstSelector().
| FunctionPass * llvm::createAlphaJITCodeEmitterPass | ( | AlphaTargetMachine & | TM, | |
| JITCodeEmitter & | JCE | |||
| ) |
Definition at line 91 of file AlphaCodeEmitter.cpp.
Referenced by llvm::AlphaTargetMachine::addCodeEmitter().
| FunctionPass * llvm::createAlphaLLRPPass | ( | AlphaTargetMachine & | tm | ) |
Definition at line 156 of file AlphaLLRP.cpp.
Referenced by llvm::AlphaTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createAlphaObjectCodeEmitterPass | ( | AlphaTargetMachine & | TM, | |
| ObjectCodeEmitter & | OCE | |||
| ) |
Definition at line 95 of file AlphaCodeEmitter.cpp.
Referenced by llvm::AlphaTargetMachine::addCodeEmitter().
| FunctionPass* llvm::createAlphaPatternInstructionSelector | ( | TargetMachine & | TM | ) |
| Pass * llvm::createAlwaysInlinerPass | ( | ) |
createAlwaysInlinerPass - Return a new pass object that inlines only functions that are marked as "always_inline".
Definition at line 62 of file InlineAlways.cpp.
| ModulePass * llvm::createAndersensPass | ( | ) |
Definition at line 624 of file Andersens.cpp.
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 90 of file ArgumentPromotion.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddArgumentPromotionPass().
| FunctionPass * llvm::createARMCodeEmitterPass | ( | ARMBaseTargetMachine & | TM, | |
| MachineCodeEmitter & | MCE | |||
| ) |
createARMCodeEmitterPass - Return a pass that emits the collected ARM code to the specified MCE object.
Definition at line 181 of file ARMCodeEmitter.cpp.
Referenced by llvm::ARMBaseTargetMachine::addCodeEmitter(), and llvm::ARMBaseTargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createARMConstantIslandPass | ( | ) |
createARMConstantIslandPass - returns an instance of the constpool island pass.
Definition at line 226 of file ARMConstantIslandPass.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createARMISelDag | ( | ARMBaseTargetMachine & | TM | ) |
createARMISelDag - This pass converts a legalized DAG into a ARM-specific DAG, ready for instruction scheduling.
Definition at line 1492 of file ARMISelDAGToDAG.cpp.
Referenced by llvm::ARMBaseTargetMachine::addInstSelector().
| FunctionPass * llvm::createARMJITCodeEmitterPass | ( | ARMBaseTargetMachine & | TM, | |
| JITCodeEmitter & | JCE | |||
| ) |
Definition at line 185 of file ARMCodeEmitter.cpp.
Referenced by llvm::ARMBaseTargetMachine::addCodeEmitter(), and llvm::ARMBaseTargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createARMLoadStoreOptimizationPass | ( | bool | PreAlloc | ) |
createARMLoadStoreOptimizationPass - returns an instance of the load / store optimization pass.
Definition at line 1455 of file ARMLoadStoreOptimizer.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass(), and llvm::ARMBaseTargetMachine::addPreRegAlloc().
| FunctionPass * llvm::createARMObjectCodeEmitterPass | ( | ARMBaseTargetMachine & | TM, | |
| ObjectCodeEmitter & | OCE | |||
| ) |
Definition at line 189 of file ARMCodeEmitter.cpp.
Referenced by llvm::ARMBaseTargetMachine::addCodeEmitter(), and llvm::ARMBaseTargetMachine::addSimpleCodeEmitter().
| MCStreamer * llvm::createAsmStreamer | ( | MCContext & | Ctx, | |
| raw_ostream & | OS, | |||
| const TargetAsmInfo & | TAI, | |||
| AsmPrinter * | AP = 0 | |||
| ) |
createAsmStreamer - Create a machine code streamer which will print out assembly for the native target, suitable for compiling with a native assembler.
Definition at line 317 of file MCAsmStreamer.cpp.
| ImmutablePass * llvm::createBasicAliasAnalysisPass | ( | ) |
Definition at line 230 of file BasicAliasAnalysis.cpp.
| ModulePass * llvm::createBitcodeWriterPass | ( | raw_ostream & | Str | ) |
createBitcodeWriterPass - Create and return a pass that writes the module to the specified ostream.
createBitcodeWriterPass - Create and return a pass that writes the module to the specified ostream.
Definition at line 54 of file BitcodeWriterPass.cpp.
| ModulePass * llvm::CreateBitcodeWriterPass | ( | std::ostream & | Str | ) |
CreateBitcodeWriterPass - Create and return a pass that writes the module to the specified ostream.
CreateBitcodeWriterPass - Create and return a pass that writes the module to the specified ostream.
Definition at line 47 of file BitcodeWriterPass.cpp.
| FunctionPass * llvm::createBlackfinISelDag | ( | BlackfinTargetMachine & | TM, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
Definition at line 70 of file BlackfinISelDAGToDAG.cpp.
Referenced by llvm::BlackfinTargetMachine::addInstSelector().
| ModulePass * llvm::createBlockExtractorPass | ( | const std::vector< BasicBlock * > & | BTNE | ) |
createBlockExtractorPass - This pass extracts all blocks (except those specified in the argument list) from the functions in the module.
Definition at line 187 of file LoopExtractor.cpp.
| FunctionPass * llvm::createBlockPlacementPass | ( | ) |
Definition at line 81 of file BasicBlockPlacement.cpp.
| ModulePass * llvm::createBlockProfilerPass | ( | ) |
Definition at line 98 of file BlockProfiling.cpp.
| FunctionPass * llvm::createBranchFoldingPass | ( | bool | DefaultEnableTailMerge | ) |
BranchFolding Pass - 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 104 of file BranchFolding.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createBreakCriticalEdgesPass | ( | ) |
Definition at line 60 of file BreakCriticalEdges.cpp.
| llvm::ScheduleDAGSDNodes * llvm::createBURRListDAGScheduler | ( | SelectionDAGISel * | IS, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createBURRListDAGScheduler - This creates a bottom up register usage reduction list scheduler.
Definition at line 1509 of file ScheduleDAGRRList.cpp.
References llvm::TargetMachine::getInstrInfo(), llvm::TargetMachine::getRegisterInfo(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, TM, and TRI.
Referenced by createDefaultScheduler().
| FunctionPass * llvm::createCFGOnlyPrinterPass | ( | ) |
Definition at line 215 of file CFGPrinter.cpp.
| FunctionPass * llvm::createCFGPrinterPass | ( | ) |
Definition at line 211 of file CFGPrinter.cpp.
| FunctionPass * llvm::createCFGSimplificationPass | ( | ) |
Definition at line 55 of file SimplifyCFGPass.cpp.
Referenced by llvm::MSILTarget::addPassesToEmitWholeFile(), llvm::CTargetMachine::addPassesToEmitWholeFile(), createStandardFunctionPasses(), createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddCFGSimplificationPass().
| FunctionPass * llvm::createCodeGenPreparePass | ( | const TargetLowering * | TLI = 0 |
) |
Definition at line 80 of file CodeGenPrepare.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createCodePlacementOptPass | ( | ) |
Code Placement Pass - This pass optimize code placement and aligns loop headers to target specific alignment boundary.
Definition at line 73 of file CodePlacementOpt.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().
| FunctionPass * llvm::createCondPropagationPass | ( | ) |
Definition at line 61 of file CondPropagate.cpp.
Referenced by createStandardModulePasses(), and LLVMAddCondPropagationPass().
| ModulePass * llvm::createConstantMergePass | ( | ) |
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.
Definition at line 47 of file ConstantMerge.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddConstantMergePass().
| FunctionPass * llvm::createConstantPropagationPass | ( | ) |
| FunctionPass * llvm::createDbgInfoPrinterPass | ( | ) |
Definition at line 57 of file DbgInfoPrinter.cpp.
| ModulePass * llvm::createDeadArgEliminationPass | ( | ) |
createDeadArgEliminationPass - This pass removes arguments from functions which are not used by the body of the function.
Definition at line 170 of file DeadArgumentElimination.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddDeadArgEliminationPass().
| ModulePass * llvm::createDeadArgHackingPass | ( | ) |
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 171 of file DeadArgumentElimination.cpp.
| FunctionPass * llvm::createDeadCodeEliminationPass | ( | ) |
| FunctionPass * llvm::createDeadMachineInstructionElimPass | ( | ) |
DeadMachineInstructionElim pass - This pass removes dead machine instructions.
Definition at line 48 of file DeadMachineInstructionElim.cpp.
Referenced by llvm::X86TargetMachine::addInstSelector().
| FunctionPass * llvm::createDeadStoreEliminationPass | ( | ) |
Definition at line 80 of file DeadStoreElimination.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddDeadStoreEliminationPass().
| ModulePass * llvm::createDeadTypeEliminationPass | ( | ) |
createDeadTypeEliminationPass - Return a new pass that eliminates symbol table entries for types that are never used.
Definition at line 51 of file DeadTypeElimination.cpp.
Referenced by createStandardModulePasses(), and LLVMAddDeadTypeEliminationPass().
| FunctionPass * llvm::createDebugLabelFoldingPass | ( | ) |
DebugLabelFoldingPass - This pass prunes out redundant debug labels. This allows a debug emitter to determine if the range of two labels is empty, by seeing if the labels map to the same reduced label.
Definition at line 371 of file MachineModuleInfo.cpp.
References llvm::DebugLabelFolder::DebugLabelFolder().
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().
| ScheduleDAGSDNodes * llvm::createDefaultScheduler | ( | SelectionDAGISel * | IS, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createDefaultScheduler - This creates an instruction scheduler appropriate for the target.
createDefaultScheduler - This creates an instruction scheduler appropriate for the target.
Definition at line 136 of file SelectionDAGISel.cpp.
References createBURRListDAGScheduler(), createFastDAGScheduler(), createTDListDAGScheduler(), llvm::TargetLowering::getSchedulingPreference(), llvm::SelectionDAGISel::getTargetLowering(), llvm::CodeGenOpt::None, llvm::TargetLowering::SchedulingForLatency, llvm::TargetLowering::SchedulingForRegPressure, and TLI.
| FunctionPass * llvm::createDemoteRegisterToMemoryPass | ( | ) |
| ModulePass* llvm::createDSAAPass | ( | ) |
| ModulePass* llvm::createDSOptPass | ( | ) |
| FunctionPass * llvm::createDwarfEHPass | ( | const TargetLowering * | tli, | |
| bool | fast | |||
| ) |
createDwarfEHPass - This pass mulches exception handling code into a form adapted to code generation. Required if using dwarf exception handling.
Definition at line 104 of file DwarfEHPrepare.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| ModulePass * llvm::createEdgeProfilerPass | ( | ) |
Definition at line 46 of file EdgeProfiling.cpp.
| MCStreamer* llvm::createELFStreamer | ( | MCContext & | Ctx, | |
| raw_ostream & | OS | |||
| ) |
createELFStreamer - Create a machine code streamer which will generative ELF format object files.
| FunctionPass* llvm::createEmitX86CodeToMemory | ( | ) |
createX86EmitCodeToMemory - Returns a pass that converts a register allocated function into raw machine code in a dynamically allocated chunk of memory.
| static const char* llvm::createESName | ( | const std::string & | name | ) | [inline, static] |
Definition at line 310 of file PIC16.h.
Referenced by getIntrinsicName(), getStdLibCallName(), llvm::PIC16InstrInfo::loadRegFromStackSlot(), llvm::PIC16TargetLowering::LowerCall(), llvm::PIC16TargetLowering::LowerFormalArguments(), llvm::PIC16TargetLowering::LowerReturn(), and llvm::PIC16InstrInfo::storeRegToStackSlot().
| llvm::ScheduleDAGSDNodes * llvm::createFastDAGScheduler | ( | SelectionDAGISel * | IS, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createFastDAGScheduler - This creates a "fast" scheduler.
Definition at line 633 of file ScheduleDAGFast.cpp.
References llvm::SelectionDAGISel::MF.
Referenced by createDefaultScheduler().
| 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 75 of file FunctionAttrs.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddFunctionAttrsPass().
| Pass * llvm::createFunctionInliningPass | ( | int | Threshold | ) |
| Pass * llvm::createFunctionInliningPass | ( | ) |
createFunctionInliningPass - Return a new pass object that uses a heuristic to inline direct function calls to small functions.
Definition at line 57 of file InlineSimple.cpp.
Referenced by createStandardLTOPasses().
| ModulePass * llvm::createFunctionProfilerPass | ( | ) |
Definition at line 49 of file BlockProfiling.cpp.
| FunctionPass * llvm::createGCInfoDeleter | ( | ) |
Deleter Pass - Releases GC metadata.
Definition at line 186 of file GCMetadata.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFileFinish(), llvm::LLVMTargetMachine::addPassesToEmitMachineCode(), llvm::MSILTarget::addPassesToEmitWholeFile(), and llvm::CTargetMachine::addPassesToEmitWholeFile().
| FunctionPass * llvm::createGCInfoPrinter | ( | std::ostream & | OS | ) |
Creates a pass to print GC metadata.
Definition at line 125 of file GCMetadata.cpp.
References Printer.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createGCLoweringPass | ( | ) |
IntrinsicLowering Pass - Performs target-independent LLVM IR transformations for highly portable strategies.
Definition at line 124 of file GCStrategy.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses(), llvm::MSILTarget::addPassesToEmitWholeFile(), and llvm::CTargetMachine::addPassesToEmitWholeFile().
| FunctionPass * llvm::createGCMachineCodeAnalysisPass | ( | ) |
MachineCodeAnalysis Pass - 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 310 of file GCStrategy.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| ModulePass * llvm::createGlobalDCEPass | ( | ) |
createGlobalDCEPass - This transform is designed to eliminate unreachable internal globals (functions or global variables)
Definition at line 57 of file GlobalDCE.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddGlobalDCEPass().
| ModulePass * llvm::createGlobalOptimizerPass | ( | ) |
createGlobalOptimizerPass - This function returns a new pass that optimizes non-address taken internal globals.
Definition at line 80 of file GlobalOpt.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddGlobalOptimizerPass().
| Pass * llvm::createGlobalsModRefPass | ( | ) |
| ModulePass * llvm::createGVExtractionPass | ( | std::vector< GlobalValue * > & | GVs, | |
| bool | deleteFn = false, |
|||
| bool | relinkCallees = false | |||
| ) |
createGVExtractionPass - If deleteFn is true, this pass deletes as the specified global values. Otherwise, it deletes as much of the module as possible, except for the global values specified.
Definition at line 173 of file ExtractGV.cpp.
| FunctionPass * llvm::createGVNPass | ( | ) |
Definition at line 746 of file GVN.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddGVNPass().
| FunctionPass * llvm::createGVNPREPass | ( | ) |
Definition at line 749 of file GVNPRE.cpp.
| FunctionPass * llvm::createIfConverterPass | ( | ) |
IfConverter Pass - This pass performs machine code if conversion.
Definition at line 224 of file IfConversion.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass().
| ModulePass * llvm::createIndMemRemPass | ( | ) |
createIndMemRemPass - This pass removes potential indirect calls of malloc and free
Definition at line 88 of file IndMemRemoval.cpp.
| Pass * llvm::createIndVarSimplifyPass | ( | ) |
Definition at line 122 of file IndVarSimplify.cpp.
Referenced by createStandardModulePasses(), and LLVMAddIndVarSimplifyPass().
| FunctionPass * llvm::createInstCountPass | ( | ) |
Definition at line 71 of file InstCount.cpp.
| FunctionPass * llvm::createInstructionCombiningPass | ( | ) |
Definition at line 13181 of file InstructionCombining.cpp.
Referenced by createStandardFunctionPasses(), createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddInstructionCombiningPass().
| FunctionPass * llvm::createInstructionNamerPass | ( | ) |
Definition at line 61 of file InstructionNamer.cpp.
| ModulePass * llvm::createInternalizePass | ( | const std::vector< const char * > & | exportList | ) |
createInternalizePass - This pass loops over all of the functions in the input module, internalizing all globals (functions and variables) not in the given exportList.
Note that commandline options that are used with the above function are not used now! Also, when exportList is empty, nothing is internalized.
Definition at line 185 of file Internalize.cpp.
| ModulePass * llvm::createInternalizePass | ( | bool | AllButMain | ) |
createInternalizePass - This pass loops over all of the functions in the input module, internalizing all globals (functions and variables) not part of the api. If a list of symbols is specified with the -internalize-public-api-* command line options, those symbols are not internalized and all others are. Otherwise if AllButMain is set and the main function is found, all other globals are marked as internal. If no api is supplied and AllButMain is not set, or no main function is found, nothing is internalized.
Definition at line 181 of file Internalize.cpp.
Referenced by createStandardLTOPasses().
| ModulePass * llvm::createIPConstantPropagationPass | ( | ) |
createIPConstantPropagationPass - This pass propagates constants from call sites into the bodies of functions.
Definition at line 53 of file IPConstantPropagation.cpp.
Referenced by createStandardModulePasses(), and LLVMAddIPConstantPropagationPass().
| 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 1641 of file SCCP.cpp.
Referenced by createStandardLTOPasses().
| Pass * llvm::createIVUsersPass | ( | ) |
Definition at line 35 of file IVUsers.cpp.
| FunctionPass * llvm::createJumpThreadingPass | ( | ) |
Definition at line 97 of file JumpThreading.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddJumpThreadingPass().
| 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.
Definition at line 29 of file LibCallAliasAnalysis.cpp.
| Pass * llvm::createLICMPass | ( | ) |
Definition at line 235 of file LICM.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddLICMPass().
| FunctionPass * llvm::createLinearScanRegisterAllocator | ( | ) |
LinearScanRegisterAllocation Pass - This pass implements the linear scan register allocation algorithm, a global register allocator.
Definition at line 1437 of file RegAllocLinearScan.cpp.
| FunctionPass * llvm::createLiveValuesPass | ( | ) |
createLiveValuesPass - This creates an instance of the LiveValues pass.
Definition at line 20 of file LiveValues.cpp.
References LiveValues.
| FunctionPass * llvm::createLocalRegisterAllocator | ( | ) |
LocalRegisterAllocation Pass - This pass register allocates the input code a basic block at a time, yielding code better than the simple register allocator, but not as good as a global allocator.
Definition at line 1073 of file RegAllocLocal.cpp.
| Pass * llvm::createLoopDeletionPass | ( | ) |
Definition at line 64 of file LoopDeletion.cpp.
Referenced by createStandardModulePasses(), and LLVMAddLoopDeletionPass().
| LoopPass * llvm::createLoopDependenceAnalysisPass | ( | ) |
Definition at line 45 of file LoopDependenceAnalysis.cpp.
| FunctionPass * llvm::createLoopExtractorPass | ( | ) |
createLoopExtractorPass - This pass extracts all natural loops from the program into a function if it can.
Definition at line 76 of file LoopExtractor.cpp.
| Pass * llvm::createLoopIndexSplitPass | ( | ) |
| Pass * llvm::createLoopRotatePass | ( | ) |
Definition at line 108 of file LoopRotation.cpp.
Referenced by createStandardModulePasses(), and LLVMAddLoopRotatePass().
| FunctionPass * llvm::createLoopSimplifyPass | ( | ) |
Definition at line 109 of file LoopSimplify.cpp.
| Pass * llvm::createLoopStrengthReducePass | ( | const TargetLowering * | TLI = 0 |
) |
Definition at line 204 of file LoopStrengthReduce.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| Pass * llvm::createLoopUnrollPass | ( | ) |
Definition at line 77 of file LoopUnroll.cpp.
Referenced by createStandardModulePasses(), and LLVMAddLoopUnrollPass().
Definition at line 160 of file LoopUnswitch.cpp.
Referenced by createStandardModulePasses(), and LLVMAddLoopUnswitchPass().
Definition at line 79 of file LowerAllocations.cpp.
Referenced by llvm::MSILTarget::addPassesToEmitWholeFile(), and llvm::CTargetMachine::addPassesToEmitWholeFile().
| FunctionPass * llvm::createLowerInvokePass | ( | const TargetLowering * | TLI = 0 |
) |
Definition at line 111 of file LowerInvoke.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses(), and llvm::CTargetMachine::addPassesToEmitWholeFile().
| ModulePass * llvm::createLowerSetJmpPass | ( | ) |
createLowerSetJmpPass - This function lowers the setjmp/longjmp intrinsics to invoke/unwind instructions. This should really be part of the C/C++ front-end, but it's so much easier to write transformations in LLVM proper.
Definition at line 551 of file LowerSetJmp.cpp.
Referenced by LLVMAddLowerSetJmpPass().
| FunctionPass * llvm::createLowerSubregsPass | ( | ) |
LowerSubregs Pass - This pass lowers subregs to register-register copies which yields suboptimal, but correct code if the register allocator cannot coalesce all subreg operations during allocation.
Definition at line 66 of file LowerSubregs.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createLowerSwitchPass | ( | ) |
Definition at line 91 of file LowerSwitch.cpp.
Referenced by llvm::MSILTarget::addPassesToEmitWholeFile().
| FunctionPass * llvm::createMachineFunctionPrinterPass | ( | std::ostream * | OS, | |
| const std::string & | Banner = "" | |||
| ) |
MachineFunctionPrinter pass - This pass prints out the machine function to the given stream, as a debugging tool.
Returns a newly-created MachineFunction Printer pass. The default banner is empty.
Definition at line 69 of file MachineFunction.cpp.
References Printer.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), llvm::LLVMTargetMachine::addPassesToEmitMachineCode(), and printAndVerify().
| FunctionPass * llvm::createMachineLICMPass | ( | ) |
createMachineLICMPass - This pass performs LICM on machine instructions.
Definition at line 113 of file MachineLICM.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createMachineSinkingPass | ( | ) |
createMachineSinkingPass - This pass performs sinking on machine instructions.
Definition at line 64 of file MachineSink.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createMachineVerifierPass | ( | bool | allowDoubleDefs | ) |
createMachineVerifierPass - This pass verifies cenerated machine code instructions for correctness.
| allowPhysDoubleDefs | ignore double definitions of registers. Useful before LiveVariables has run. |
Definition at line 177 of file MachineVerifier.cpp.
Referenced by printAndVerify().
| MCStreamer * llvm::createMachOStreamer | ( | MCContext & | Ctx, | |
| raw_ostream & | OS | |||
| ) |
createMachOStream - Create a machine code streamer which will generative Mach-O format object files.
Definition at line 176 of file MCMachOStreamer.cpp.
| JITEventListener * llvm::createMacOSJITEventListener | ( | ) |
Definition at line 167 of file MacOSJITEventListener.cpp.
| FunctionPass * llvm::createMemCpyOptPass | ( | ) |
Definition at line 328 of file MemCpyOptimizer.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddMemCpyOptPass().
| ModulePass * llvm::createMergeFunctionsPass | ( | ) |
createMergeFunctionsPass - This pass discovers identical functions and collapses them.
Definition at line 77 of file MergeFunctions.cpp.
| FunctionPass * llvm::createMipsDelaySlotFillerPass | ( | MipsTargetMachine & | tm | ) |
createMipsDelaySlotFillerPass - Returns a pass that fills in delay slots in Mips MachineFunctions
Definition at line 74 of file MipsDelaySlotFiller.cpp.
Referenced by llvm::MipsTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createMipsISelDag | ( | MipsTargetMachine & | TM | ) |
createMipsISelDag - This pass converts a legalized DAG into a MIPS-specific DAG, ready for instruction scheduling.
Definition at line 391 of file MipsISelDAGToDAG.cpp.
Referenced by llvm::MipsTargetMachine::addInstSelector().
| 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 71 of file MSP430ISelDAGToDAG.cpp.
Referenced by llvm::MSP430TargetMachine::addInstSelector().
| FunctionPass * llvm::createNEONPreAllocPass | ( | ) |
createNEONPreAllocPass - returns an instance of the NEON register pre-allocation pass.
Definition at line 183 of file NEONPreAllocPass.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreRegAlloc().
| ImmutablePass * llvm::createNoAAPass | ( | ) |
Definition at line 183 of file BasicAliasAnalysis.cpp.
| ImmutablePass * llvm::createNoProfileInfoPass | ( | ) |
Definition at line 100 of file ProfileInfo.cpp.
| ModulePass * llvm::createNullProfilerRSPass | ( | ) |
Definition at line 657 of file RSProfiling.cpp.
| 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 72 of file MCNullStreamer.cpp.
| JITEventListener * llvm::createOProfileJITEventListener | ( | ) |
Definition at line 174 of file OProfileJITEventListener.cpp.
| ModulePass * llvm::createPartialInliningPass | ( | ) |
createPartialInliningPass - This pass inlines parts of functions.
Definition at line 46 of file PartialInlining.cpp.
| ModulePass * llvm::createPartialSpecializationPass | ( | ) |
createPartialSpecializationPass - This pass specializes functions for constant arguments.
Definition at line 191 of file PartialSpecialization.cpp.
| FunctionPass * llvm::createPBQPRegisterAllocator | ( | ) |
PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean Quadratic Prograaming (PBQP) based register allocator.
Definition at line 903 of file RegAllocPBQP.cpp.
| FunctionPass * llvm::createPIC16ISelDag | ( | PIC16TargetMachine & | TM | ) |
createPIC16ISelDag - This pass converts a legalized DAG into a PIC16-specific DAG, ready for instruction scheduling.
Definition at line 25 of file PIC16ISelDAGToDAG.cpp.
Referenced by llvm::PIC16TargetMachine::addInstSelector().
| FunctionPass * llvm::createPIC16MemSelOptimizerPass | ( | ) |
Definition at line 67 of file PIC16MemSelOpt.cpp.
Referenced by llvm::PIC16TargetMachine::addPreEmitPass().
| FunctionPass * llvm::createPostDomFrontier | ( | ) |
Definition at line 92 of file PostDominators.cpp.
| FunctionPass * llvm::createPostDomTree | ( | ) |
Definition at line 45 of file PostDominators.cpp.
| FunctionPass * llvm::createPostRAScheduler | ( | ) |
createPostRAScheduler - under development.
Definition at line 930 of file PostRASchedulerList.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createPPCBranchSelectionPass | ( | ) |
createPPCBranchSelectionPass - returns an instance of the Branch Selection Pass
Definition at line 52 of file PPCBranchSelector.cpp.
Referenced by llvm::PPCTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createPPCCodeEmitterPass | ( | PPCTargetMachine & | TM, | |
| MachineCodeEmitter & | MCE | |||
| ) |
createPPCCodeEmitterPass - Return a pass that emits the collected PPC code to the specified MCE object.
Definition at line 98 of file PPCCodeEmitter.cpp.
Referenced by llvm::PPCTargetMachine::addCodeEmitter(), and llvm::PPCTargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createPPCISelDag | ( | PPCTargetMachine & | TM | ) |
createPPCISelDag - This pass converts a legalized DAG into a PowerPC-specific DAG, ready for instruction scheduling.
Definition at line 1148 of file PPCISelDAGToDAG.cpp.
Referenced by llvm::PPCTargetMachine::addInstSelector().
| FunctionPass * llvm::createPPCJITCodeEmitterPass | ( | PPCTargetMachine & | TM, | |
| JITCodeEmitter & | MCE | |||
| ) |
Definition at line 103 of file PPCCodeEmitter.cpp.
Referenced by llvm::PPCTargetMachine::addCodeEmitter(), and llvm::PPCTargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createPPCObjectCodeEmitterPass | ( | PPCTargetMachine & | TM, | |
| ObjectCodeEmitter & | OCE | |||
| ) |
Definition at line 108 of file PPCCodeEmitter.cpp.
Referenced by llvm::PPCTargetMachine::addCodeEmitter(), and llvm::PPCTargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createPredicateSimplifierPass | ( | ) |
Definition at line 2701 of file PredicateSimplifier.cpp.
| FunctionPass * llvm::createPrintFunctionPass | ( | const std::string & | Banner, | |
| llvm::raw_ostream * | OS, | |||
| bool | DeleteStream = false | |||
| ) |
createPrintFunctionPass - Create and return a pass that prints functions to the specified raw_ostream as they are processed.
createPrintFunctionPass - Create and return a pass that prints functions to the specified raw_ostream as they are processed.
Definition at line 94 of file PrintModulePass.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| ModulePass * llvm::createPrintModulePass | ( | llvm::raw_ostream * | OS, | |
| bool | DeleteStream = false | |||
| ) |
createPrintModulePass - Create and return a pass that writes the module to the specified raw_ostream.
createPrintModulePass - Create and return a pass that writes the module to the specified raw_ostream.
Definition at line 87 of file PrintModulePass.cpp.
Definition at line 76 of file ProfileEstimatorPass.cpp.
| FunctionPass * llvm::createProfileEstimatorPass | ( | ) |
Definition at line 70 of file ProfileEstimatorPass.cpp.
| Pass * llvm::createProfileLoaderPass | ( | const std::string & | Filename | ) |
createProfileLoaderPass - This function returns a Pass that loads the profiling information for the module from the specified filename, making it available to the optimizers.
createProfileLoaderPass - This function returns a Pass that loads the profiling information for the module from the specified filename, making it available to the optimizers.
Definition at line 66 of file ProfileInfoLoaderPass.cpp.
| ModulePass * llvm::createProfileLoaderPass | ( | ) |
Definition at line 61 of file ProfileInfoLoaderPass.cpp.
| FunctionPass * llvm::createPrologEpilogCodeInserter | ( | ) |
PrologEpilogCodeInserter Pass - This pass inserts prolog and epilog code, and eliminates abstract frame references.
createPrologEpilogCodeInserter - This function returns a pass that inserts prolog and epilog code, and eliminates abstract frame references.
Definition at line 48 of file PrologEpilogInserter.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createPromoteMemoryToRegisterPass | ( | ) |
Definition at line 90 of file Mem2Reg.cpp.
Referenced by createStandardFunctionPasses(), createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddPromoteMemoryToRegisterPass().
| Pass * llvm::createPruneEHPass | ( | ) |
createPruneEHPass - Return a new pass object which transforms invoke instructions into calls, if the callee can _not_ unwind the stack.
Definition at line 55 of file PruneEH.cpp.
Referenced by createStandardLTOPasses(), createStandardModulePasses(), and LLVMAddPruneEHPass().
| ModulePass * llvm::createRaiseAllocationsPass | ( | ) |
createRaiseAllocationsPass - Return a new pass that transforms malloc and free function calls into malloc and free instructions.
Definition at line 59 of file RaiseAllocations.cpp.
Referenced by createStandardModulePasses(), and LLVMAddRaiseAllocationsPass().
| FunctionPass * llvm::createReassociatePass | ( | ) |
Definition at line 107 of file Reassociate.cpp.
Referenced by createStandardModulePasses(), and LLVMAddReassociatePass().
| FunctionPass * llvm::createRegisterAllocator | ( | ) |
Creates a register allocator as the user specified on the command line.
createRegisterAllocator - choose the appropriate register allocator.
Definition at line 45 of file Passes.cpp.
References llvm::RegisterRegAlloc::getDefault(), RegAlloc, and llvm::RegisterRegAlloc::setDefault().
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createRSProfilingPass | ( | ) |
Definition at line 661 of file RSProfiling.cpp.
| FunctionPass* llvm::createScalarReplAggregatesPass | ( | signed int | Threshold | ) |
Definition at line 146 of file ScalarReplAggregates.cpp.
Referenced by LLVMAddScalarReplAggregatesPass().
| FunctionPass* llvm::createScalarReplAggregatesPass | ( | signed | Threshold = -1 |
) |
Referenced by createStandardFunctionPasses(), createStandardLTOPasses(), and createStandardModulePasses().
| FunctionPass * llvm::createSCCPPass | ( | ) |
Definition at line 1534 of file SCCP.cpp.
Referenced by createStandardModulePasses(), and LLVMAddSCCPPass().
| FunctionPass * llvm::createSimpleRegisterAllocator | ( | ) |
SimpleRegisterAllocation Pass - This pass converts the input machine code from SSA form to use explicit registers by spilling every register. Wow, great policy huh?
Definition at line 256 of file RegAllocSimple.cpp.
| RegisterCoalescer * llvm::createSimpleRegisterCoalescer | ( | ) |
SimpleRegisterCoalescing Pass - Coalesce all copies possible. Can run independently of the register allocator.
Definition at line 2780 of file SimpleRegisterCoalescing.cpp.
| FunctionPass * llvm::createSimplifyHalfPowrLibCallsPass | ( | ) |
createSimplifyHalfPowrLibCallsPass - This is an experimental pass that optimizes specific half_pow functions.
Definition at line 55 of file SimplifyHalfPowrLibCalls.cpp.
| FunctionPass * llvm::createSimplifyLibCallsPass | ( | ) |
createSimplifyLibCallsPass - This pass optimizes specific calls to specific well-known (library) functions.
Definition at line 1599 of file SimplifyLibCalls.cpp.
Referenced by createStandardModulePasses(), and LLVMAddSimplifyLibCallsPass().
| FunctionPass * llvm::createSingleLoopExtractorPass | ( | ) |
createSingleLoopExtractorPass - This pass extracts one natural loop from the program into a function if it can. This is used by bugpoint.
Definition at line 146 of file LoopExtractor.cpp.
| FunctionPass * llvm::createSjLjEHPass | ( | const TargetLowering * | tli | ) |
createSjLjEHPass - This pass adapts exception handling code to use the GCC-style builtin setjmp/longjmp (sjlj) to handling EH control flow.
Definition at line 82 of file SjLjEHPrepare.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createSparcDelaySlotFillerPass | ( | TargetMachine & | tm | ) |
createSparcDelaySlotFillerPass - Returns a pass that fills in delay slots in Sparc MachineFunctions
Definition at line 57 of file DelaySlotFiller.cpp.
Referenced by llvm::SparcTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createSparcFPMoverPass | ( | TargetMachine & | tm | ) |
createSparcFPMoverPass - Returns a pass that turns FpMOVD instructions into FMOVS instructions
Definition at line 53 of file FPMover.cpp.
Referenced by llvm::SparcTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createSparcISelDag | ( | SparcTargetMachine & | TM | ) |
createSparcISelDag - This pass converts a legalized DAG into a SPARC-specific DAG, ready for instruction scheduling.
Definition at line 215 of file SparcISelDAGToDAG.cpp.
Referenced by llvm::SparcTargetMachine::addInstSelector().
| Spiller * llvm::createSpiller | ( | MachineFunction * | mf, | |
| LiveIntervals * | lis, | |||
| LiveStacks * | ls, | |||
| VirtRegMap * | vrm | |||
| ) |
Create and return a spiller object, as specified on the command line.
Definition at line 363 of file Spiller.cpp.
| FunctionPass * llvm::createSPUISelDag | ( | SPUTargetMachine & | TM | ) |
createSPUISelDag - This pass converts a legalized DAG into a SPU-specific DAG, ready for instruction scheduling.
Definition at line 1248 of file SPUISelDAGToDAG.cpp.
Referenced by llvm::SPUTargetMachine::addInstSelector().
| FunctionPass * llvm::createSSIEverythingPass | ( | ) |
| FunctionPass * llvm::createSSIPass | ( | ) |
| FunctionPass * llvm::createStackProtectorPass | ( | const TargetLowering * | tli | ) |
createStackProtectorPass - This pass adds stack protectors to functions.
Definition at line 77 of file StackProtector.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createStackSlotColoringPass | ( | bool | RegColor | ) |
createStackSlotColoringPass - This pass performs stack slot coloring.
Definition at line 146 of file StackSlotColoring.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| static void llvm::createStandardFunctionPasses | ( | FunctionPassManager * | PM, | |
| unsigned | OptimizationLevel | |||
| ) | [inline, static] |
createStandardFunctionPasses - Add the standard list of function passes to the provided pass manager.
Definition at line 71 of file StandardPasses.h.
References llvm::FunctionPassManager::add(), createCFGSimplificationPass(), createInstructionCombiningPass(), createPromoteMemoryToRegisterPass(), and createScalarReplAggregatesPass().
| static void llvm::createStandardLTOPasses | ( | PassManager * | PM, | |
| bool | Internalize, | |||
| bool | RunInliner, | |||
| bool | VerifyEach | |||
| ) | [inline, static] |
createStandardLTOPasses - Add the standard list of module passes suitable for link time optimization.
Internalize - Run the internalize pass. RunInliner - Use a function inlining pass. VerifyEach - Run the verifier after each pass.
Definition at line 167 of file StandardPasses.h.
References addOnePass(), createArgumentPromotionPass(), createCFGSimplificationPass(), createConstantMergePass(), createDeadArgEliminationPass(), createDeadStoreEliminationPass(), createFunctionAttrsPass(), createFunctionInliningPass(), createGlobalDCEPass(), createGlobalOptimizerPass(), createGlobalsModRefPass(), createGVNPass(), createInstructionCombiningPass(), createInternalizePass(), createIPSCCPPass(), createJumpThreadingPass(), createLICMPass(), createMemCpyOptPass(), createPromoteMemoryToRegisterPass(), createPruneEHPass(), and createScalarReplAggregatesPass().
| static void llvm::createStandardModulePasses | ( | PassManager * | PM, | |
| unsigned | OptimizationLevel, | |||
| bool | OptimizeSize, | |||
| bool | UnitAtATime, | |||
| bool | UnrollLoops, | |||
| bool | SimplifyLibCalls, | |||
| bool | HaveExceptions, | |||
| Pass * | InliningPass | |||
| ) | [inline, static] |
createStandardModulePasses - Add the standard list of module passes to the provided pass manager.
Definition at line 83 of file StandardPasses.h.
References llvm::PassManager::add(), createAggressiveDCEPass(), createArgumentPromotionPass(), createCFGSimplificationPass(), createCondPropagationPass(), createConstantMergePass(), createDeadArgEliminationPass(), createDeadStoreEliminationPass(), createDeadTypeEliminationPass(), createFunctionAttrsPass(), createGlobalDCEPass(), createGlobalOptimizerPass(), createGVNPass(), createIndVarSimplifyPass(), createInstructionCombiningPass(), createIPConstantPropagationPass(), createJumpThreadingPass(), createLICMPass(), createLoopDeletionPass(), createLoopRotatePass(), createLoopUnrollPass(), createLoopUnswitchPass(), createMemCpyOptPass(), createPromoteMemoryToRegisterPass(), createPruneEHPass(), createRaiseAllocationsPass(), createReassociatePass(), createScalarReplAggregatesPass(), createSCCPPass(), createSimplifyLibCallsPass(), createStripDeadPrototypesPass(), and createTailCallEliminationPass().
| ModulePass* llvm::createSteensgaardPass | ( | ) |
| ModulePass * llvm::createStripDeadPrototypesPass | ( | ) |
createStripDeadPrototypesPass - This pass removes any function declarations (prototypes) that are not used.
Definition at line 70 of file StripDeadPrototypes.cpp.
Referenced by createStandardModulePasses(), and LLVMAddStripDeadPrototypesPass().
| ModulePass * llvm::createStripDebugDeclarePass | ( | ) |
Definition at line 100 of file StripSymbols.cpp.
| ModulePass * llvm::createStripNonDebugSymbolsPass | ( | ) |
Definition at line 92 of file StripSymbols.cpp.
| ModulePass * llvm::createStripSymbolsPass | ( | bool | OnlyDebugInfo = false |
) |
| Pass * llvm::createStructRetPromotionPass | ( | ) |
Definition at line 69 of file StructRetPromotion.cpp.
| FunctionPass * llvm::createSystemZISelDag | ( | SystemZTargetMachine & | TM, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createSystemZISelDag - This pass converts a legalized DAG into a SystemZ-specific DAG, ready for instruction scheduling.
Definition at line 163 of file SystemZISelDAGToDAG.cpp.
Referenced by llvm::SystemZTargetMachine::addInstSelector().
| FunctionPass * llvm::createTailCallEliminationPass | ( | ) |
Definition at line 90 of file TailRecursionElimination.cpp.
Referenced by createStandardModulePasses(), and LLVMAddTailCallEliminationPass().
| FunctionPass * llvm::createTailDuplicationPass | ( | ) |
Definition at line 66 of file TailDuplication.cpp.
| ScheduleDAGSDNodes * llvm::createTDListDAGScheduler | ( | SelectionDAGISel * | IS, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createTDListDAGScheduler - This creates a top-down list scheduler with a hazard recognizer.
createTDListDAGScheduler - This creates a top-down list scheduler with a new hazard recognizer. This scheduler takes ownership of the hazard recognizer and deletes it when done.
Definition at line 265 of file ScheduleDAGList.cpp.
References llvm::SelectionDAGISel::CreateTargetHazardRecognizer(), and llvm::SelectionDAGISel::MF.
Referenced by createDefaultScheduler().
| llvm::ScheduleDAGSDNodes * llvm::createTDRRListDAGScheduler | ( | SelectionDAGISel * | IS, | |
| CodeGenOpt::Level | OptLevel | |||
| ) |
createTDRRListDAGScheduler - This creates a top down register usage reduction list scheduler.
Definition at line 1523 of file ScheduleDAGRRList.cpp.
References llvm::TargetMachine::getInstrInfo(), llvm::TargetMachine::getRegisterInfo(), llvm::SelectionDAGISel::MF, TII, llvm::SelectionDAGISel::TM, TM, and TRI.
| FunctionPass * llvm::createThumb2ITBlockPass | ( | ) |
createThumb2ITBlockPass - Returns an instance of the Thumb2 IT blocks insertion pass.
Definition at line 110 of file Thumb2ITBlockPass.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass().
| FunctionPass * llvm::createThumb2SizeReductionPass | ( | ) |
createThumb2SizeReductionPass - Returns an instance of the Thumb2 size reduction pass.
Definition at line 683 of file Thumb2SizeReduction.cpp.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass().
| Pass * llvm::createUnifyFunctionExitNodesPass | ( | ) |
Definition at line 30 of file UnifyFunctionExitNodes.cpp.
| FunctionPass * llvm::createUnreachableBlockEliminationPass | ( | ) |
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 it can run this pass as it's last LLVM modifying pass to clean up blocks that are not reachable from the entry block.
Definition at line 53 of file UnreachableBlockElim.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses().
| FunctionPass * llvm::createVerifierPass | ( | VerifierFailureAction | action = AbortProcessAction |
) |
Create a verifier pass.
Check a module or function for validity. When the pass is used, the action indicated by the action argument will be used if errors are found.
| action | Action to take |
Definition at line 1737 of file Verifier.cpp.
Referenced by addOnePass().
| VirtRegRewriter * llvm::createVirtRegRewriter | ( | ) |
createVirtRegRewriter - Create an return a rewriter object, as specified on the command line.
Definition at line 2354 of file VirtRegRewriter.cpp.
References llvm_unreachable, local, RewriterOpt, and trivial.
| FunctionPass * llvm::createX86CodeEmitterPass | ( | X86TargetMachine & | TM, | |
| MachineCodeEmitter & | MCE | |||
| ) |
createX86CodeEmitterPass - Return a pass that emits the collected X86 code to the specified MCE object.
createX86CodeEmitterPass - Return a pass that emits the collected X86 code to the specified templated MachineCodeEmitter object.
Definition at line 111 of file X86CodeEmitter.cpp.
Referenced by llvm::X86TargetMachine::addCodeEmitter(), and llvm::X86TargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createX86FloatingPointStackifierPass | ( | ) |
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 172 of file X86FloatingPoint.cpp.
Referenced by llvm::X86TargetMachine::addPostRegAlloc().
| 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 2141 of file X86ISelDAGToDAG.cpp.
Referenced by llvm::X86TargetMachine::addInstSelector().
| FunctionPass * llvm::createX86JITCodeEmitterPass | ( | X86TargetMachine & | TM, | |
| JITCodeEmitter & | JCE | |||
| ) |
Definition at line 115 of file X86CodeEmitter.cpp.
Referenced by llvm::X86TargetMachine::addCodeEmitter(), and llvm::X86TargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createX86MaxStackAlignmentCalculatorPass | ( | ) |
createX86MaxStackAlignmentCalculatorPass - This function returns a pass which calculates maximal stack alignment required for function
Definition at line 1512 of file X86RegisterInfo.cpp.
Referenced by llvm::X86TargetMachine::addPreRegAlloc().
| FunctionPass * llvm::createX86ObjectCodeEmitterPass | ( | X86TargetMachine & | TM, | |
| ObjectCodeEmitter & | OCE | |||
| ) |
Definition at line 119 of file X86CodeEmitter.cpp.
Referenced by llvm::X86TargetMachine::addCodeEmitter(), and llvm::X86TargetMachine::addSimpleCodeEmitter().
| FunctionPass * llvm::createX87FPRegKillInserterPass | ( | ) |
createX87FPRegKillInserterPass - This function returns a pass which inserts FP_REG_KILL instructions where needed.
Definition at line 51 of file X86FloatingPointRegKill.cpp.
Referenced by llvm::X86TargetMachine::addInstSelector().
| FunctionPass * llvm::createXCoreISelDag | ( | XCoreTargetMachine & | TM | ) |
createXCoreISelDag - This pass converts a legalized DAG into a XCore-specific DAG, ready for instruction scheduling.
Definition at line 82 of file XCoreISelDAGToDAG.cpp.
Referenced by llvm::XCoreTargetMachine::addInstSelector().
| static const char* llvm::CStrInCStrNoCase | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline, static] |
CStrInCStrNoCase - Portable version of strcasestr. Locates the first occurance of c-string 's2' in string 's1', ignoring case. Returns NULL if 's2' cannot be found.
Definition at line 181 of file StringExtras.h.
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | unsigned long | long | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | long | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | int | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | short | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | unsigned | char | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | signed | char | ) |
| llvm::DEFINE_INTEGRAL_TYPEBUILDER | ( | char | ) |
| void llvm::DeleteDeadBlock | ( | BasicBlock * | BB | ) |
DeleteDeadBlock - Delete the specified block, which must have no predecessors.
Definition at line 34 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(), pred_begin(), pred_end(), llvm::BasicBlock::removePredecessor(), llvm::Value::replaceAllUsesWith(), and llvm::Value::use_empty().
Referenced by SimplifyCFG().
| void llvm::DeleteDeadPHIs | ( | BasicBlock * | BB | ) |
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 84 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), dyn_cast(), llvm::SmallVectorImpl< T >::push_back(), RecursivelyDeleteDeadPHINode(), and llvm::SmallVectorImpl< T >::size().
| static void llvm::deleter | ( | T * | Ptr | ) | [inline, static] |
Definition at line 51 of file STLExtras.h.
| AllocaInst * llvm::DemotePHIToStack | ( | PHINode * | P, | |
| Instruction * | AllocaPoint = 0 | |||
| ) |
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 and it returns the pointer to the alloca inserted.
Definition at line 111 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(), II, llvm::Value::replaceAllUsesWith(), llvm::Value::use_empty(), and V.
| AllocaInst * llvm::DemoteRegToStack | ( | Instruction & | I, | |
| bool | VolatileLoads = false, |
|||
| Instruction * | AllocaPoint = 0 | |||
| ) |
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 32 of file DemoteRegToStack.cpp.
References llvm::BasicBlock::begin(), llvm::Instruction::eraseFromParent(), F, llvm::Function::getEntryBlock(), llvm::Value::getName(), llvm::InvokeInst::getNormalDest(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getSinglePredecessor(), llvm::Value::getType(), II, llvm::User::replaceUsesOfWith(), llvm::Instruction::use_back(), llvm::Value::use_empty(), and V.
| df_iterator<T> llvm::df_begin | ( | const T & | G | ) | [inline] |
Definition at line 191 of file DepthFirstIterator.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::Calculate(), llvm::LazyLiveness::runOnMachineFunction(), and llvm::LazyLiveness::vregLiveIntoMBB().
| df_iterator<T> llvm::df_end | ( | const T & | G | ) | [inline] |
Definition at line 196 of file DepthFirstIterator.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::Calculate(), llvm::LazyLiveness::runOnMachineFunction(), and llvm::LazyLiveness::vregLiveIntoMBB().
| df_ext_iterator<T, SetTy> llvm::df_ext_begin | ( | const T & | G, | |
| SetTy & | S | |||
| ) | [inline] |
Definition at line 208 of file DepthFirstIterator.h.
Referenced by llvm::LiveIntervals::processImplicitDefs(), and llvm::LiveVariables::runOnMachineFunction().
| df_ext_iterator<T, SetTy> llvm::df_ext_end | ( | const T & | G, | |
| SetTy & | S | |||
| ) | [inline] |
Definition at line 213 of file DepthFirstIterator.h.
Referenced by llvm::LiveIntervals::processImplicitDefs(), and llvm::LiveVariables::runOnMachineFunction().
| unsigned llvm::DFSPass | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, | |
| typename GraphT::NodeType * | V, | |||
| unsigned | N | |||
| ) | [inline] |
Definition at line 38 of file DominatorInternals.h.
References llvm::MachineBasicBlock::back(), BB, E, llvm::DominatorTreeBase< NodeT >::Info, llvm::DominatorBase< NodeT >::Roots, succ_begin(), succ_end(), llvm::DominatorTreeBase< NodeT >::Vertex, and Worklist.
| int llvm::DiffFilesWithTolerance | ( | const sys::PathWithStatus & | FileA, | |
| const sys::PathWithStatus & | FileB, | |||
| double | AbsTol, | |||
| double | RelTol, | |||
| std::string * | Error = 0 | |||
| ) |
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 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, 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 165 of file FileUtilities.cpp.
References BackupNumber(), llvm::sys::Path::c_str(), CompareNumbers(), llvm::MemoryBuffer::getFile(), llvm::sys::PathWithStatus::getFileStatus(), llvm::sys::FileStatus::getSize(), and isNumberChar().
| void llvm::DisplayGraph | ( | const sys::Path & | Filename, | |
| bool | wait = true, |
|||
| GraphProgram::Name | program = GraphProgram::DOT | |||
| ) |
Definition at line 21 of file GraphWriter.cpp.
References llvm::sys::Path::appendSuffix(), llvm::sys::Path::c_str(), cerr(), llvm::GraphProgram::CIRCO, llvm::GraphProgram::DOT, llvm::sys::Path::eraseFromDisk(), llvm::sys::Program::ExecuteAndWait(), llvm::sys::Program::ExecuteNoWait(), llvm::GraphProgram::FDP, LLVM_PATH_CIRCO, LLVM_PATH_DOT, LLVM_PATH_DOTTY, LLVM_PATH_FDP, LLVM_PATH_NEATO, LLVM_PATH_TWOPI, llvm::GraphProgram::NEATO, and llvm::GraphProgram::TWOPI.
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 377 of file MathExtras.h.
Referenced by LowerConstantFP().
| void llvm::dump | ( | const SparseBitVector< ElementSize > & | LHS, | |
| raw_ostream & | out | |||
| ) | [inline] |
Definition at line 892 of file SparseBitVector.h.
References llvm::SparseBitVector< ElementSize >::begin(), and llvm::SparseBitVector< ElementSize >::end().
Referenced by llvm::DerivedType::dump(), and llvm::DISubprogram::dump().
| cast_retty<X, Y>::ret_type llvm::dyn_cast | ( | const Y & | Val | ) | [inline] |
Definition at line 224 of file Casting.h.
Referenced by AddPredecessorToBlock(), AddReachableCodeToWorklist(), llvm::MachineModuleInfo::AnalyzeModule(), llvm::SelectInst::areInvalidOperands(), AssociativeOpt(), BuildSubAggregate(), CannotBeNegativeZero(), CanPropagatePredecessorsForPHIs(), llvm::Constant::canTrap(), CheapToScalarize(), CloneAndPruneFunctionInto(), CollectAddOperandsWithScales(), combineShlAddConstant(), ComputeMaskedBits(), ComputeNumSignBits(), ConstantFoldBinaryInstruction(), ConstantFoldInsertElementInstruction(), ConstantFoldInstruction(), ConstantFoldTerminator(), llvm::X86ATTAsmPrinter::DecorateCygMingName(), llvm::X86IntelAsmPrinter::decorateName(), DeleteDeadPHIs(), DominatesMergePoint(), llvm::Value::DoPHITranslation(), EnforceKnownAlignment(), EraseTerminatorInstAndDCECond(), evaluateFCmpRelation(), EvaluateFunction(), EvaluateGEPOffsetExpression(), evaluateICmpRelation(), llvm::PIC16TargetLowering::ExpandExternalSymbol(), llvm::PIC16TargetLowering::ExpandFrameIndex(), llvm::PIC16TargetLowering::ExpandGlobalAddress(), llvm::PIC16TargetLowering::ExpandLoad(), ExtractTypeInfo(), FindAllMemoryUses(), llvm::SelectionDAGLowering::FindMergedConditions(), FindStaticTors(), findUsedValues(), FoldBitCast(), FoldBranchToCommonDest(), FoldCondBranchOnPHI(), getAggregateConstantElement(), llvm::GlobalAlias::getAliasedGlobal(), llvm::CallSite::getCalledFunction(), llvm::CallInst::getCalledFunction(), llvm::InvokeInst::getCalledFunction(), getConstantEvolvingPHI(), GetConstantStringInfo(), llvm::SelectionDAG::getGlobalAddress(), llvm::DIDescriptor::getGlobalVariableField(), llvm::GetElementPtrInst::getIndexedType(), getIndexedTypeInternal(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::MemSDNode::getMemOperand(), llvm::SelectionDAG::getMemset(), llvm::SelectionDAG::getNode(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), GetOffsetFromIndex(), getSCEVStartAndStride(), llvm::ScalarEvolution::getSignedRange(), llvm::Loop::getSmallConstantTripMultiple(), GetStringLengthH(), llvm::BasicBlock::getTerminator(), llvm::ScalarEvolution::getUnsignedRange(), llvm::ARM::getVMOVImm(), getVShiftImm(), getVZextMovL(), HoistThenElseCodeToIf(), InstCombineStoreToCast(), llvm::ConstantVector::isAllOnesValue(), isBLACompatibleAddress(), isCalleeLoad(), llvm::TargetLowering::isConsecutiveLoad(), IsConstantOffsetFromGlobal(), llvm::TargetLowering::isGAPlusOffset(), isGEP(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isI16IntS10Immediate(), isInTailCallPosition(), llvm::ScalarEvolution::isLoopBackedgeGuardedByCond(), llvm::ScalarEvolution::isLoopGuardedByCond(), isLSAAddress(), IsMemRefInstr(), isMemSrcFromString(), isNonConstantNegative(), llvm::ISD::isNormalLoad(), llvm::ISD::isNormalStore(), IsNullTerminatedString(), IsPointerOffset(), isRMWLoad(), isSafeSROAElementUse(), isSafeToHoistInvoke(), llvm::Instruction::isSafeToSpeculativelyExecute(), isSelect01(), llvm::Value::isUsedInBasicBlock(), llvm::Instruction::isUsedOutsideOfBlock(), IsUserOfGlobalSafeForSRA(), llvm::ShuffleVectorInst::isValidOperands(), llvm::FunctionType::isValidReturnType(), llvm::SelectionDAG::isVerifiedDebugInfoDesc(), IsWordAlignedBasePlusConstantOffset(), isXor1OfSetCC(), IVUseShouldUsePostIncValue(), LinkFunctionBodies(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), LowerBUILD_VECTOR(), LowerByteImmed(), llvm::PIC16TargetLowering::LowerCall(), LowerLOAD(), LowerSETCC(), LowerSTORE(), LowerToBSwap(), llvm::SPUTargetLowering::PerformDAGCombine(), PerformMulCombine(), llvm::MSILWriter::printLocalVariables(), PushLoopPHIs(), RecursivelyDeleteTriviallyDeadInstructions(), removeDeadUsersOfConstant(), llvm::BasicBlock::removePredecessor(), llvm::ExecutionEngine::runStaticConstructorsDestructors(), llvm::PIC16TargetObjectFile::SelectSectionForGlobal(), llvm::FunctionLoweringInfo::set(), ShrinkDemandedConstant(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant(), SimplifyCondBranchToCondBranch(), SolveQuadraticEquation(), SpeculativelyExecuteBB(), llvm::BasicBlock::splitBasicBlock(), SplitBlockPredecessors(), SplitEdgeNicely(), llvm::DbgInfoIntrinsic::StripCast(), StripDebugInfo(), UnrollLoop(), llvm::DIDescriptor::ValidDebugInfo(), and llvm::InlineAsm::Verify().
| cast_retty<X, Y>::ret_type llvm::dyn_cast_or_null | ( | const Y & | Val | ) | [inline] |
| void llvm::emitARMRegPlusImmediate | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator & | MBBI, | |||
| DebugLoc | dl, | |||
| unsigned | DestReg, | |||
| unsigned | BaseReg, | |||
| int | NumBytes, | |||
| ARMCC::CondCodes | Pred, | |||
| unsigned | PredReg, | |||
| const ARMBaseInstrInfo & | TII | |||
| ) |
emitARMRegPlusImmediate / emitT2RegPlusImmediate - Emits a series of instructions to materializea destreg = basereg + immediate in ARM / Thumb2 code.
Definition at line 870 of file ARMBaseInstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), BuildMI(), llvm::TargetInstrInfo::get(), llvm::ARM_AM::getSOImmVal(), llvm::ARM_AM::getSOImmValRotate(), llvm::RegState::Kill, and llvm::ARM_AM::rotr32().
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::emitEpilogue(), and emitSPUpdate().
| 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 442 of file raw_ostream.cpp.
References S.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses(), llvm::ExecutionEngine::addGlobalMapping(), llvm::PMDataManager::addLowerLevelRequiredPass(), CanPropagatePredecessorsForPHIs(), CrashHandler(), llvm::MCSymbol::dump(), llvm::SCEV::dump(), llvm::Module::dump(), llvm::SDNode::dump(), llvm::IVUsers::dump(), llvm::SUnit::dump(), llvm::Twine::dump(), llvm::Value::dump(), llvm::Type::dump(), llvm::APInt::dump(), llvm::LiveRange::dump(), llvm::LiveInterval::dump(), llvm::PseudoSourceValue::dump(), llvm::ExtAddrMode::dump(), llvm::MCValue::dump(), llvm::MachineConstantPool::dump(), llvm::ConstantRange::dump(), llvm::SUnit::dumpAll(), llvm::PMTopLevelManager::dumpArguments(), llvm::PMDataManager::dumpLastUses(), llvm::ScheduleDAGSDNodes::dumpNode(), llvm::PMDataManager::dumpPassArguments(), llvm::PMDataManager::dumpPassInfo(), llvm::MPPassManager::dumpPassStructure(), llvm::FPPassManager::dumpPassStructure(), llvm::SDNode::dumpr(), llvm::Twine::dumpRepr(), llvm::ScheduleDAG::dumpSchedule(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::ARMJITInfo::emitFunctionStub(), EvaluateStaticConstructor(), llvm::ExactHazardRecognizer::ExactHazardRecognizer(), llvmc::Action::Execute(), ferrs(), FoldTwoEntryPHINode(), getBackEdges(), llvm::MSILWriter::getBitWidth(), llvm::ExactHazardRecognizer::getHazardType(), getSCEVStartAndStride(), llvm::Inliner::InlineCallIfPossible(), KnuthDiv(), llvm_report_error(), llvm_unreachable_internal(), llvmc::Main(), print_string(), llvm::MSILWriter::printConstantExpr(), llvm::MSILWriter::printFunctionCall(), llvm::MSILWriter::printICmpInstruction(), llvm::MSILWriter::printInstruction(), llvm::MSILWriter::printIntrinsicCall(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::SourceMgr::PrintMessage(), PrintModRefResults(), PrintPercent(), PrintRecyclerStats(), PrintResults(), llvm::MSILWriter::printStaticConstant(), llvm::MSILWriter::printStaticInitializer(), llvm::MSILWriter::printStaticInitializerList(), llvm::BumpPtrAllocator::PrintStats(), llvm::PMDataManager::removeDeadPasses(), llvm::PMDataManager::removeNotPreservedAnalysis(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::Inliner::runOnSCC(), llvm::JIT::selectTarget(), llvm::SparseSolver::Solve(), llvm::ELFCodeEmitter::startFunction(), UnrollLoop(), llvm::PMDataManager::verifyDomInfo(), llvm::ScheduleDAG::VerifySchedule(), llvmc::CompilationGraph::writeGraph(), X86CompilationCallback2(), llvm::X86Subtarget::X86Subtarget(), llvm::Value::~Value(), and llvm::ValueSymbolTable::~ValueSymbolTable().
| void llvm::EscapeString | ( | std::string & | Str | ) |
EscapeString - Modify the argument string, turning '\' and anything that doesn't satisfy std::isprint into an escape sequence.
Definition at line 92 of file StringExtras.cpp.
| GraphT::NodeType* llvm::Eval | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, | |
| typename GraphT::NodeType * | V | |||
| ) | [inline] |
Definition at line 155 of file DominatorInternals.h.
References llvm::DominatorTreeBase< NodeT >::Info.
| llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DominatorTreeBase< MachineBasicBlock > | ) |
| llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DominatorTreeBase< BasicBlock > | ) |
| llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DomTreeNodeBase< MachineBasicBlock > | ) |
| llvm::EXTERN_TEMPLATE_INSTANTIATION | ( | class DomTreeNodeBase< BasicBlock > | ) |
| Function * llvm::ExtractBasicBlock | ( | BasicBlock * | BB, | |
| bool | AggregateArgs = false | |||
| ) |
ExtractBasicBlock - rip out a basic block into a new function
ExtractBasicBlock - slurp a basic block into a brand new function
Definition at line 755 of file CodeExtractor.cpp.
| Function * llvm::ExtractCodeRegion | ( | DominatorTree & | DT, | |
| const std::vector< BasicBlock * > & | code, | |||
| bool | AggregateArgs = false | |||
| ) |
ExtractCodeRegion - rip out a sequence of basic blocks into a new function
ExtractCodeRegion - slurp a sequence of basic blocks into a brand new function
Definition at line 741 of file CodeExtractor.cpp.
| DebugLoc llvm::ExtractDebugLocation | ( | DbgFuncStartInst & | FSI, | |
| DebugLocTracker & | DebugLocInfo | |||
| ) |
ExtractDebugLocation - Extract debug location information from llvm.dbg.func_start intrinsic.
Definition at line 1271 of file DebugInfo.cpp.
References llvm::DebugLocTracker::DebugIdMap, llvm::DebugLocTracker::DebugLocations, llvm::DebugLoc::get(), llvm::DIGlobal::getCompileUnit(), llvm::DIDescriptor::getGV(), llvm::DIGlobal::getLineNumber(), llvm::DbgFuncStartInst::getSubprogram(), and II.
| DebugLoc llvm::ExtractDebugLocation | ( | DbgStopPointInst & | SPI, | |
| DebugLocTracker & | DebugLocInfo | |||
| ) |
ExtractDebugLocation - Extract debug location information from llvm.dbg.stoppoint intrinsic.
Definition at line 1248 of file DebugInfo.cpp.
References llvm::DebugLocTracker::DebugIdMap, llvm::DebugLocTracker::DebugLocations, llvm::DebugLoc::get(), llvm::DbgStopPointInst::getColumn(), llvm::DbgStopPointInst::getContext(), llvm::DbgStopPointInst::getLine(), and II.
Referenced by llvm::FunctionLoweringInfo::set().
| Function * llvm::ExtractLoop | ( | DominatorTree & | DT, | |
| Loop * | L, | |||
| bool | AggregateArgs = false | |||
| ) |
ExtractLoop - rip out a natural loop into a new function
ExtractBasicBlock - slurp a natural loop into a brand new function
Definition at line 749 of file CodeExtractor.cpp.
References llvm::LoopBase< BlockT, LoopT >::getBlocks().
| formatted_raw_ostream & llvm::ferrs | ( | ) |
ferrs() - This returns a reference to a formatted_raw_ostream for standard error. Use it like: ferrs() << "foo" << "bar";
Definition at line 99 of file FormattedStream.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFileFinish(), and llvm::LLVMTargetMachine::addPassesToEmitMachineCode().
| Value * llvm::FindAvailableLoadedValue | ( | Value * | Ptr, | |
| BasicBlock * | ScanBB, | |||
| BasicBlock::iterator & | ScanFrom, | |||
| unsigned | MaxInstsToScan = 6, |
|||
| AliasAnalysis * | AA = 0 | |||
| ) |
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.
Definition at line 535 of file BasicBlockUtils.cpp.
References AreEquivalentAddressValues(), llvm::BasicBlock::begin(), llvm::AliasAnalysis::getModRefInfo(), llvm::Value::getType(), llvm::AliasAnalysis::getTypeStoreSize(), Inst, LI, llvm::Instruction::mayWriteToMemory(), and llvm::AliasAnalysis::Mod.
| const DbgStopPointInst * llvm::findBBStopPoint | ( | const BasicBlock * | BB | ) |
Finds the stoppoint corresponding to first real (non-debug intrinsic) instruction in this Basic Block, and returns the stoppoint for it.
findBBStopPoint - Find the stoppoint corresponding to first real (non-debug intrinsic) instruction in this Basic Block, and return the stoppoint for it.
Definition at line 1110 of file DebugInfo.cpp.
References llvm::BasicBlock::begin(), E, llvm::BasicBlock::end(), findStopPoint(), llvm::BasicBlock::getTerminator(), and llvm::BasicBlock::getUniquePredecessor().
| const DbgDeclareInst * llvm::findDbgDeclare | ( | const Value * | V, | |
| bool | stripCasts = true | |||
| ) |
Finds the dbg.declare intrinsic corresponding to this value if any. It looks through pointer casts too.
Finds the llvm.dbg.declare intrinsic corresponding to this value if any. It looks through pointer casts too.
Definition at line 1156 of file DebugInfo.cpp.
References E, llvm::Value::stripPointerCasts(), llvm::Value::use_begin(), and llvm::Value::use_end().
Referenced by getLocationInfo().
| Value * llvm::findDbgGlobalDeclare | ( | GlobalVariable * | V | ) |
Find the debug info descriptor corresponding to this global variable.
Definition at line 1124 of file DebugInfo.cpp.
References BitCast, E, llvm::PointerType::get(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::Module::getTypeByName(), llvm::Value::hasOneUse(), M, llvm::Value::stripPointerCasts(), Ty, llvm::Value::use_begin(), llvm::Value::use_end(), and Val.
Referenced by getLocationInfo().
| sys::Path llvm::FindExecutable | ( | const std::string & | ExeName, | |
| const char * | Argv0, | |||
| void * | MainAddr | |||
| ) |
Find a named executable.
FindExecutable - Find a named executable, giving the argv[0] of program being executed. This allows us to find another LLVM tool if it is built in the same directory. If the executable cannot be found, return an empty string.
Definition at line 58 of file SystemUtils.cpp.
References llvm::sys::Path::appendComponent(), llvm::sys::Path::canExecute(), llvm::sys::Path::eraseComponent(), llvm::sys::Path::GetMainExecutable(), and llvm::sys::Path::isEmpty().
| void llvm::FindFunctionBackedges | ( | const Function & | F, | |
| SmallVectorImpl< std::pair< const BasicBlock *, const BasicBlock * > > & | Result | |||
| ) |
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 450 of file BasicBlockUtils.cpp.
References llvm::SmallVectorImpl< T >::back(), BB, llvm::SmallPtrSet< PtrType, SmallSize >::count(), llvm::SmallVectorImpl< T >::empty(), llvm::SmallPtrSet< PtrType, SmallSize >::erase(), llvm::Function::getEntryBlock(), llvm::SmallPtrSet< PtrType, SmallSize >::insert(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorImpl< T >::push_back(), succ_begin(), succ_end(), Top, and Visited.
| Value* llvm::FindInsertedValue | ( | Value * | V, | |
| const unsigned | Idx, | |||
| LLVMContext & | Context, | |||
| Instruction * | InsertBefore = 0 | |||
| ) | [inline] |
This is a convenience wrapper for finding values indexed by a single index only.
Definition at line 73 of file ValueTracking.h.
References FindInsertedValue().
| Value * llvm::FindInsertedValue | ( | Value * | V, | |
| const unsigned * | idx_begin, | |||
| const unsigned * | idx_end, | |||
| LLVMContext & | Context, | |||
| Instruction * | InsertBefore = 0 | |||
| ) |
FindScalarValue - 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.
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 911 of file ValueTracking.cpp.
References llvm::SmallVectorImpl< T >::begin(), BuildSubAggregate(), llvm::CallingConv::C, llvm::SmallVectorImpl< T >::end(), llvm::UndefValue::get(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::SmallVectorImpl< T >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and llvm::SmallVectorImpl< T >::size().
Referenced by BuildSubAggregate(), and FindInsertedValue().
| const DbgStopPointInst * llvm::findStopPoint | ( | const Instruction * | Inst | ) |
Finds the stoppoint coressponding to this instruction, that is the stoppoint that dominates this instruction
findStopPoint - Find the stoppoint coressponding to this instruction, that is the stoppoint that dominates this instruction.
Definition at line 1080 of file DebugInfo.cpp.
References BB, llvm::BasicBlock::begin(), llvm::Instruction::getParent(), and llvm::BasicBlock::getTerminator().
Referenced by findBBStopPoint().
| bool llvm::FiniteOnlyFPMath | ( | ) |
FiniteOnlyFPMath - This returns true when the -enable-finite-only-fp-math option is specified on the command line. If this returns false (default), the code generator is not allowed to assume that FP arithmetic arguments and results are never NaNs or +-Infs.
Definition at line 238 of file TargetMachine.cpp.
References FiniteOnlyFPMathOption, and UnsafeFPMath.
Referenced by getFCmpCondCode().
| 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 390 of file MathExtras.h.
Referenced by llvm::PPC::get_VSPLTI_elt(), and isFPS16Immediate().
| void llvm::FlushStream | ( | std::ostream & | S | ) |
FlushStream - Function called by BaseStream to flush an ostream.
Definition at line 26 of file Streams.cpp.
| bool llvm::FoldBranchToCommonDest | ( | BranchInst * | BI | ) |
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.
Definition at line 1469 of file SimplifyCFG.cpp.
References AddPredecessorToBlock(), llvm::APIntOps::And(), BB, llvm::Instruction::clone(), llvm::BinaryOperator::Create(), llvm::BinaryOperator::CreateNot(), DOUT, dyn_cast(), E, llvm::BasicBlock::front(), llvm::BranchInst::getCondition(), llvm::BasicBlock::getInstList(), llvm::Value::getName(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::hasOneUse(), llvm::BranchInst::isUnconditional(), llvm::APIntOps::Or(), PI, pred_begin(), pred_end(), SafeToMergeTerminators(), llvm::BranchInst::setCondition(), llvm::Value::setName(), llvm::BranchInst::setSuccessor(), and llvm::Value::takeName().
Referenced by SimplifyCFG().
| void llvm::FoldSingleEntryPHINodes | ( | BasicBlock * | BB | ) |
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 66 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), and llvm::UndefValue::get().
Referenced by FoldBlockIntoPredecessor(), and FoldCondBranchOnPHI().
| format_object3<T1, T2, T3> llvm::format | ( | const char * | Fmt, | |
| const T1 & | Val1, | |||
| const T2 & | Val2, | |||
| const T3 & | Val3 | |||
| ) | [inline] |
| format_object2<T1, T2> llvm::format | ( | const char * | Fmt, | |
| const T1 & | Val1, | |||
| const T2 & | Val2 | |||
| ) | [inline] |
| format_object1<T> llvm::format | ( | const char * | Fmt, | |
| const T & | Val | |||
| ) | [inline] |
| formatted_raw_ostream & llvm::fouts | ( | ) |
fouts() - This returns a reference to a formatted_raw_ostream for standard output. Use it like: fouts() << "foo" << "bar";
Definition at line 92 of file FormattedStream.cpp.
| static std::string llvm::ftostr | ( | const APFloat & | V | ) | [inline, static] |
Definition at line 114 of file StringExtras.h.
References llvm::APFloat::convertToDouble(), llvm::APFloat::convertToFloat(), ftostr(), llvm::APFloat::getSemantics(), llvm::APFloat::IEEEdouble, and llvm::APFloat::IEEEsingle.
Referenced by CompareNumbers(), isFPCSafeToPrint(), and WriteConstantInt().
| static std::string llvm::ftostr | ( | double | V | ) | [inline, static] |
Definition at line 106 of file StringExtras.h.
Referenced by ftostr(), and llvm::raw_ostream::operator<<().
| generic_gep_type_iterator<ItTy> llvm::gep_type_begin | ( | const Type * | Op0, | |
| ItTy | I, | |||
| ItTy | E | |||
| ) | [inline] |
Definition at line 101 of file GetElementPtrTypeIterator.h.
Referenced by EmitGEPOffset(), EvaluateGEPOffsetExpression(), GetOffsetFromIndex(), and IsConstantOffsetFromGlobal().
| gep_type_iterator llvm::gep_type_begin | ( | const User & | GEP | ) | [inline] |
Definition at line 91 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::begin(), llvm::User::getOperand(), llvm::Value::getType(), and llvm::User::op_begin().
| gep_type_iterator llvm::gep_type_begin | ( | const User * | GEP | ) | [inline] |
Definition at line 84 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::begin(), llvm::User::getOperand(), llvm::Value::getType(), and llvm::User::op_begin().
Referenced by ComputeMaskedBits(), ConstantFoldGetElementPtr(), ConstantFoldLoadThroughGEPConstantExpr(), evaluateICmpRelation(), llvm::TargetData::getIndexedOffset(), IsUserOfGlobalSafeForSRA(), llvm::MSILWriter::printConstantExpr(), llvm::MSILWriter::printInstruction(), and llvm::Interpreter::visitGetElementPtrInst().
| generic_gep_type_iterator<ItTy> llvm::gep_type_end | ( | const Type * | Op0, | |
| ItTy | I, | |||
| ItTy | E | |||
| ) | [inline] |
Definition at line 107 of file GetElementPtrTypeIterator.h.
| gep_type_iterator llvm::gep_type_end | ( | const User & | GEP | ) | [inline] |
Definition at line 95 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::end(), and llvm::User::op_end().
| gep_type_iterator llvm::gep_type_end | ( | const User * | GEP | ) | [inline] |
Definition at line 88 of file GetElementPtrTypeIterator.h.
References llvm::generic_gep_type_iterator< ItTy >::end(), and llvm::User::op_end().
Referenced by ConstantFoldGetElementPtr(), ConstantFoldLoadThroughGEPConstantExpr(), IsUserOfGlobalSafeForSRA(), llvm::MSILWriter::printConstantExpr(), llvm::MSILWriter::printInstruction(), and llvm::Interpreter::visitGetElementPtrInst().
| static int(*)(const void*, const void*) llvm::get_array_pad_sort_comparator | ( | const T & | X | ) | [inline, static] |
get_array_pad_sort_comparator - This is an internal helper function used to get type deduction of T right.
Definition at line 245 of file STLExtras.h.
Referenced by array_pod_sort().
| void* llvm::GetAddressOfSymbol | ( | const std::string & | symbolName | ) |
| void* llvm::GetAddressOfSymbol | ( | const char * | symbolName | ) |
GetAddressOfSymbol - Returns the address of the named symbol in the currently running process, as reported by the dynamic linker, or NULL if the symbol does not exist or some other error has occurred.
| ModuleProvider * llvm::getBitcodeModuleProvider | ( | MemoryBuffer * | Buffer, | |
| LLVMContext & | Context, | |||
| std::string * | ErrMsg = 0 | |||
| ) |
getBitcodeModuleProvider - Read the header of the specified bitcode buffer and prepare for lazy deserialization of function bodies. If successful, this takes ownership of 'buffer' and returns a non-null pointer. On error, this returns null, *does not* take ownership of Buffer, and fills in *ErrMsg with an error description if ErrMsg is non-null.
getBitcodeModuleProvider - lazy function-at-a-time loading from a file.
Definition at line 2218 of file BitcodeReader.cpp.
References llvm::BitcodeReader::getErrorString(), llvm::BitcodeReader::ParseBitcode(), R, and llvm::BitcodeReader::releaseMemoryBuffer().
Referenced by llvm::Archive::findModuleDefiningSymbol(), GetBitcodeSymbols(), LLVMGetBitcodeModuleProvider(), LLVMGetBitcodeModuleProviderInContext(), and ParseBitcodeFile().
| ModuleProvider * llvm::GetBitcodeSymbols | ( | const unsigned char * | BufPtr, | |
| unsigned | Length, | |||
| const std::string & | ModuleID, | |||
| LLVMContext & | Context, | |||
| std::vector< std::string > & | symbols, | |||
| std::string * | ErrMsg | |||
| ) |
Definition at line 244 of file Archive.cpp.
References getBitcodeModuleProvider(), llvm::MemoryBuffer::getBufferStart(), llvm::MemoryBuffer::getNewMemBuffer(), getSymbols(), M, and llvm::Intrinsic::memcpy.
| bool llvm::GetBitcodeSymbols | ( | const sys::Path & | fName, | |
| LLVMContext & | Context, | |||
| std::vector< std::string > & | symbols, | |||
| std::string * | ErrMsg | |||
| ) |
Definition at line 213 of file Archive.cpp.
References llvm::sys::Path::c_str(), getBitcodeModuleProvider(), llvm::MemoryBuffer::getFileOrSTDIN(), getSymbols(), M, llvm::ModuleProvider::materializeModule(), and llvm::sys::Path::toString().
Referenced by llvm::Archive::findModulesDefiningSymbols(), and llvm::Archive::writeMember().
| const TargetRegisterClass * llvm::getCommonSubClass | ( | const TargetRegisterClass * | A, | |
| const TargetRegisterClass * | B | |||
| ) |
getCommonSubClass - find the largest common subclass of A and B. Return NULL if there is no common subclass.
Definition at line 104 of file TargetRegisterInfo.cpp.
References llvm::TargetRegisterClass::begin(), llvm::TargetRegisterClass::end(), llvm::TargetRegisterClass::getSize(), llvm::TargetRegisterClass::hasSubClass(), llvm::TargetRegisterClass::hasSuperClass(), llvm::TargetRegisterClass::subclasses_begin(), and X.
Referenced by llvm::LiveStacks::getOrCreateInterval().
| bool llvm::GetConstantStringInfo | ( | Value * | V, | |
| std::string & | Str, | |||
| uint64_t | Offset = 0, |
|||
| bool | StopAtNul = 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. If StopAtNul is set to true (the default), the returned string is truncated by a nul character in the global. If StopAtNul is false, the nul character is included in the result string.
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 1008 of file ValueTracking.cpp.
References BitCast, dyn_cast(), llvm::Value::getContext(), llvm::SequentialType::getElementType(), llvm::GlobalVariable::getInitializer(), llvm::Type::getInt8Ty(), llvm::ArrayType::getNumElements(), llvm::Constant::getOperand(), llvm::ConstantArray::getType(), llvm::ConstantInt::getZExtValue(), GV, llvm::GlobalVariable::hasDefinitiveInitializer(), llvm::GlobalVariable::isConstant(), and llvm::ConstantInt::isZero().
Referenced by llvm::DIDescriptor::getStringField(), InstCombineLoadCast(), isMemSrcFromString(), llvm::SourceFileInfo::SourceFileInfo(), and llvm::SourceFunctionInfo::SourceFunctionInfo().
Definition at line 213 of file MachineInstrBuilder.h.
References llvm::RegState::Dead.
Referenced by AddDefaultT1CC(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), InsertLDR_STR(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Definition at line 204 of file MachineInstrBuilder.h.
References llvm::RegState::Define.
Referenced by AddDefaultT1CC(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), InsertLDR_STR(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| OStream & llvm::getErrorOutputStream | ( | const char * | DebugType | ) |
getErrorOutputStream - Returns the error output stream (std::cerr). This places the std::c* I/O streams into one .cpp file and relieves the whole program from having to have hundreds of static c'tor/d'tors for them.
Definition at line 79 of file Debug.cpp.
References cerr(), DebugFlag, and isCurrentDebugType().
| LLVMContext & llvm::getGlobalContext | ( | ) |
FOR BACKWARDS COMPATIBILITY - Returns a global context.
Definition at line 26 of file LLVMContext.cpp.
Referenced by LLVMGetBitcodeModuleProvider(), LLVMGetGlobalContext(), LLVMIntPtrType(), LLVMModuleCreateWithName(), and LLVMParseBitcode().
| ARMCC::CondCodes llvm::getInstrPredicate | ( | 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 845 of file ARMBaseInstrInfo.cpp.
References llvm::ARMCC::AL, llvm::MachineInstr::findFirstPredOperandIdx(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Referenced by isMatchingDecrement(), and isMatchingIncrement().
Definition at line 210 of file MachineInstrBuilder.h.
References llvm::RegState::Kill.
Referenced by addLeaRegOffset(), addRegOffset(), addRegReg(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), emitThumbRegPlusImmediate(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), InsertLDR_STR(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::X86InstrInfo::storeRegToAddr(), llvm::MipsInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::BlackfinInstrInfo::storeRegToStackSlot(), llvm::AlphaInstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::PIC16InstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::SPUInstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::SystemZInstrInfo::storeRegToStackSlot(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| std::ostream * llvm::GetLibSupportInfoOutputFile | ( | ) |
Definition at line 348 of file Timer.cpp.
References cerr(), cout(), and getLibSupportInfoOutputFilename().
| bool llvm::getLocationInfo | ( | const Value * | V, | |
| std::string & | DisplayName, | |||
| std::string & | Type, | |||
| unsigned & | LineNo, | |||
| std::string & | File, | |||
| std::string & | Dir | |||
| ) |
Definition at line 1178 of file DebugInfo.cpp.
References findDbgDeclare(), findDbgGlobalDeclare(), llvm::DIVariable::getCompileUnit(), llvm::DIGlobal::getCompileUnit(), llvm::DICompileUnit::getDirectory(), llvm::DIGlobal::getDisplayName(), llvm::DICompileUnit::getFilename(), llvm::DIGlobal::getLineNumber(), llvm::DIVariable::getLineNumber(), llvm::DIVariable::getName(), llvm::DIType::getName(), llvm::DIGlobal::getType(), llvm::DIVariable::getType(), llvm::DbgDeclareInst::getVariable(), and GV.
| int llvm::getMatchingCondBranchOpcode | ( | int | Opc | ) |
Definition at line 857 of file ARMBaseInstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::ARMBaseInstrInfo::PredicateInstruction().
| BasicBlock* llvm::getNodeHeader | ( | Interval * | I | ) | [inline] |
| BasicBlock* llvm::getNodeHeader | ( | BasicBlock * | BB | ) | [inline] |
Definition at line 49 of file IntervalIterator.h.
| OStream & llvm::getNullOutputStream | ( | ) |
| static int llvm::getPointerUnionTypeNum | ( | ... | ) | [inline, static] |
Definition at line 29 of file PointerUnion.h.
| static int llvm::getPointerUnionTypeNum | ( | PT2 * | P | ) | [inline, static] |
Definition at line 27 of file PointerUnion.h.
| static int llvm::getPointerUnionTypeNum | ( | PT1 * | P | ) | [inline, static] |
getPointerUnionTypeNum - If the argument has type PT1* or PT2* return false or true respectively.
Definition at line 25 of file PointerUnion.h.
| FunctionPass* llvm::getRegisterAllocator | ( | TargetMachine & | T | ) |
getRegisterAllocator - This creates an instance of the register allocator for the Sparc.
| Interval* llvm::getSourceGraphNode | ( | IntervalPartition * | IP, | |
| BasicBlock * | BB | |||
| ) | [inline] |
Definition at line 59 of file IntervalIterator.h.
References llvm::IntervalPartition::getBlockInterval().
| 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++().
getSubElementHash - Generate a hash value for all of the SubType's of this type. The hash value is guaranteed to be zero if any of the subtypes are an opaque type. Otherwise we try to mix them in as well as possible, but do not look at the subtype's subtype's.
Definition at line 31 of file TypesContext.h.
References llvm::Type::ArrayTyID, E, llvm::Type::FunctionTyID, llvm::Type::getTypeID(), llvm::Type::IntegerTyID, llvm::Type::OpaqueTyID, llvm::Type::PointerTyID, llvm::Type::StructTyID, llvm::Type::subtype_begin(), llvm::Type::subtype_end(), and llvm::Type::VectorTyID.
Referenced by llvm::PointerValType::hashTypeStructure().
| TLSModel::Model llvm::getTLSModel | ( | const GlobalValue * | GV, | |
| Reloc::Model | reloc | |||
| ) |
Definition at line 32 of file TargetLowering.cpp.
References llvm::TLSModel::GeneralDynamic, llvm::GlobalValue::hasHiddenVisibility(), llvm::GlobalValue::hasLocalLinkage(), llvm::TLSModel::InitialExec, llvm::GlobalValue::isDeclaration(), llvm::TLSModel::LocalDynamic, llvm::TLSModel::LocalExec, and llvm::Reloc::PIC_.
| std::string llvm::getToken | ( | std::string & | Source, | |
| const char * | 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 Source source string is updated in place to remove the returned string and any delimiter prefix from it.
Definition at line 24 of file StringExtras.cpp.
Referenced by llvm::Module::getEndianness(), llvm::Module::getPointerSize(), llvm::TargetData::init(), llvm::Debugger::loadProgram(), and SplitString().
Definition at line 216 of file MachineInstrBuilder.h.
References llvm::RegState::Undef.
Referenced by llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Definition at line 1303 of file X86RegisterInfo.cpp.
References llvm::ARMCC::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::EVT::getSimpleVT(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, and llvm::MVT::SimpleTy.
Referenced by lower_lea64_32mem(), llvm::X86ATTAsmPrinter::printAsmMRegister(), llvm::X86IntelAsmPrinter::printAsmMRegister(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printOperand().
| 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 342 of file MathExtras.h.
References T.
Referenced by UnrollLoop().
| void* llvm::GVTOP | ( | const GenericValue & | GV | ) | [inline] |
Definition at line 41 of file GenericValue.h.
References llvm::GenericValue::PointerVal.
Referenced by ffiValueFor(), lle_X_atexit(), lle_X_fprintf(), lle_X_scanf(), lle_X_sprintf(), lle_X_sscanf(), llvm::JIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::Interpreter::visitCallSite(), llvm::Interpreter::visitFreeInst(), llvm::Interpreter::visitLoadInst(), and llvm::Interpreter::visitStoreInst().
| BinaryOperator llvm::HANDLE_BINARY_INST | ( | 21 | , | |
| AShr | , | |||
| BinaryOperator | ||||
| ) |
| llvm::HANDLE_BINARY_INST | ( | 19 | , | |
| Shl | , | |||
| BinaryOperator | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst llvm::HANDLE_CAST_INST | ( | 41 | , | |
| IntToPtr | , | |||
| IntToPtrInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst llvm::HANDLE_CAST_INST | ( | 39 | , | |
| FPExt | , | |||
| FPExtInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst llvm::HANDLE_CAST_INST | ( | 37 | , | |
| SIToFP | , | |||
| SIToFPInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst llvm::HANDLE_CAST_INST | ( | 35 | , | |
| FPToSI | , | |||
| FPToSIInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst llvm::HANDLE_CAST_INST | ( | 33 | , | |
| SExt | , | |||
| SExtInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst llvm::HANDLE_CAST_INST | ( | 31 | , | |
| Trunc | , | |||
| TruncInst | ||||
| ) |
| BinaryOperator MallocInst llvm::HANDLE_MEMORY_INST | ( | 27 | , | |
| Alloca | , | |||
| AllocaInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst ExtractValueInst llvm::HANDLE_OTHER_INST | ( | 55 | , | |
| InsertValue | , | |||
| InsertValueInst | ||||
| ) |
Base class for instruction visitors.
Instruction visitors are used when you want to perform different actions for different kinds of instructions without having to use lots of casts and a big switch statement (in your code, that is).
To define your own visitor, inherit from this class, specifying your new type for the 'SubClass' template parameter, and "override" visitXXX functions in your class. I say "override" because this class is defined in terms of statically resolved overloading, not virtual functions.
For example, here is a visitor that counts the number of malloc instructions processed:
/ Declare the class. Note that we derive from InstVisitor instantiated / with _our new subclasses_ type. / struct CountMallocVisitor : public InstVisitor<CountMallocVisitor> { unsigned Count; CountMallocVisitor() : Count(0) {}
void visitMallocInst(MallocInst &MI) { ++Count; } };
And this class would be used like this: CountMallocVistor CMV; CMV.visit(function); NumMallocs = CMV.Count;
The defined has 'visit' methods for Instruction, and also for BasicBlock, Function, and Module, which recursively process all contained instructions.
Note that if you don't implement visitXXX for some instruction type, the visitXXX method for instruction superclass will be invoked. So if instructions are added in the future, they will be automatically supported, if you handle one of their superclasses.
The optional second template argument specifies the type that instruction visitation functions should return. If you specify this, you *MUST* provide an implementation of visitInstruction though!.
Note that this class is specifically designed as a template to avoid virtual function call overhead. Defining and using an InstVisitor is just as efficient as having your own switch statement over the instruction opcode.
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst Instruction VAArgInst InsertElementInst llvm::HANDLE_OTHER_INST | ( | 53 | , | |
| ShuffleVector | , | |||
| ShuffleVectorInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst Instruction VAArgInst llvm::HANDLE_OTHER_INST | ( | 51 | , | |
| ExtractElement | , | |||
| ExtractElementInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst Instruction llvm::HANDLE_OTHER_INST | ( | 49 | , | |
| UserOp2 | , | |||
| Instruction | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst llvm::HANDLE_OTHER_INST | ( | 47 | , | |
| Select | , | |||
| SelectInst | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst llvm::HANDLE_OTHER_INST | ( | 45 | , | |
| PHI | , | |||
| PHINode | ||||
| ) |
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst llvm::HANDLE_OTHER_INST | ( | 43 | , | |
| ICmp | , | |||
| ICmpInst | ||||
| ) |
| static char llvm::hexdigit | ( | unsigned | X | ) | [inline, static] |
hexdigit - Return the (uppercase) hexadecimal character for the given number
Definition at line 28 of file StringExtras.h.
Referenced by PrintEscapedString(), and utohex_buffer().
| 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 26 of file MathExtras.h.
Referenced by CountLeadingZeros_64().
| bool llvm::HonorSignDependentRoundingFPMath | ( | ) |
HonorSignDependentRoundingFPMath - Return true if the codegen must assume that the rounding mode of the FPU can change from its default.
Definition at line 242 of file TargetMachine.cpp.
References HonorSignDependentRoundingFPMathOption, and UnsafeFPMath.
Referenced by GetNegatedExpression(), and isNegatibleForFree().
| idf_iterator<T> llvm::idf_begin | ( | const T & | G | ) | [inline] |
Definition at line 228 of file DepthFirstIterator.h.
| idf_iterator<T> llvm::idf_end | ( | const T & | G | ) | [inline] |
Definition at line 233 of file DepthFirstIterator.h.
| idf_ext_iterator<T, SetTy> llvm::idf_ext_begin | ( | const T & | G, | |
| SetTy & | S | |||
| ) | [inline] |
Definition at line 247 of file DepthFirstIterator.h.
| idf_ext_iterator<T, SetTy> llvm::idf_ext_end | ( | const T & | G, | |
| SetTy & | S | |||
| ) | [inline] |
Definition at line 252 of file DepthFirstIterator.h.
| void llvm::IncrementCounterInBlock | ( | BasicBlock * | BB, | |
| unsigned | CounterNum, | |||
| GlobalValue * | CounterArray | |||
| ) |
Definition at line 108 of file ProfilingUtils.cpp.
References Context, llvm::BinaryOperator::Create(), llvm::ConstantInt::get(), llvm::BasicBlock::getContext(), llvm::BasicBlock::getFirstNonPHI(), llvm::ConstantExpr::getGetElementPtr(), llvm::Type::getInt32Ty(), llvm::Constant::getNullValue(), and InsertPos.
| 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 159 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 121 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 44 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 81 of file TargetSelect.h.
References DoInit, and LLVM_NATIVE_ARCH.
| 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 197 of file TargetSelect.h.
| bool llvm::InlineFunction | ( | CallSite | CS, | |
| CallGraph * | CG = 0, |
|||
| const TargetData * | TD = 0 | |||
| ) |
Definition at line 240 of file InlineFunction.cpp.
References llvm::CallGraphNode::addCalledFunction(), llvm::PHINode::addIncoming(), AI, Align, llvm::CallSite::arg_begin(), llvm::CallSite::arg_size(), llvm::Function::back(), BB, llvm::MachineBasicBlock::begin(), llvm::Function::begin(), llvm::BasicBlock::begin(), llvm::Attribute::ByVal, Caller, llvm::CallInst::clone(), CloneAndPruneFunctionInto(), llvm::ClonedCodeInfo::ContainsCalls, llvm::ClonedCodeInfo::ContainsDynamicAllocas, llvm::ClonedCodeInfo::ContainsUnwinds, Context, llvm::PHINode::Create(), llvm::BranchInst::Create(), llvm::CallInst::Create(), llvm::CallSite::doesNotThrow(), E, llvm::BasicBlock::end(), llvm::Function::end(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::erase(), llvm::BasicBlock::eraseFromParent(), llvm::Instruction::eraseFromParent(), findFnRegionEndMarker(), llvm::UndefValue::get(), llvm::ConstantInt::get(), llvm::AllocationInst::getArraySize(), llvm::Function::getBasicBlockList(), llvm::CallSite::getCalledFunction(), llvm::Value::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Function::getEntryBlock(), llvm::Function::getGC(), llvm::BasicBlock::getInstList(), llvm::CallSite::getInstruction(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::Value::getName(), llvm::Instruction::getOpcode(), llvm::CallGraph::getOrInsertFunction(), llvm::BasicBlock::getParent(), llvm::Instruction::getParent(), llvm::GlobalValue::getParent(), llvm::TargetData::getPrefTypeAlignment(), llvm::ReturnInst::getReturnValue(), llvm::ConstantExpr::getSizeOf(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), llvm::TargetData::getTypeStoreSize(), llvm::PointerType::getUnqual(), HandleInlinedInvoke(), llvm::Function::hasGC(), II, M, llvm::Intrinsic::memcpy, PHI, R, llvm::Value::replaceAllUsesWith(), Returns, llvm::Function::setGC(), llvm::User::setOperand(), llvm::BasicBlock::splitBasicBlock(), llvm::Intrinsic::stackrestore, llvm::Intrinsic::stacksave, UpdateCallGraphAfterInlining(), and llvm::Value::use_empty().
| bool llvm::InlineFunction | ( | InvokeInst * | II, | |
| CallGraph * | CG = 0, |
|||
| const TargetData * | TD = 0 | |||
| ) |
| bool llvm::InlineFunction | ( | CallInst * | C, | |
| CallGraph * | CG = 0, |
|||
| const TargetData * | TD = 0 | |||
| ) |
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. Similiarly this will inline a recursive function by one level.
If a non-null callgraph pointer is provided, these functions update the CallGraph to represent the program after inlining.
Definition at line 32 of file InlineFunction.cpp.
References CallSite.
Referenced by llvm::Inliner::InlineCallIfPossible(), InlineFunction(), and llvm::BasicInlinerImpl::inlineFunctions().
| void llvm::InsertProfilingInitCall | ( | Function * | MainFn, | |
| const char * | FnName, | |||
| GlobalValue * | Array | |||
| ) |
Definition at line 24 of file ProfilingUtils.cpp.
References AI, llvm::Function::arg_begin(), llvm::Function::arg_size(), llvm::Function::begin(), llvm::BasicBlock::begin(), Context, llvm::CastInst::Create(), llvm::CallInst::Create(), Entry, llvm::ConstantPointerNull::get(), llvm::ConstantInt::get(), llvm::CastInst::getCastOpcode(), llvm::Function::getContext(), llvm::SequentialType::getElementType(), llvm::ConstantExpr::getGetElementPtr(), llvm::Type::getInt32Ty(), llvm::Type::getInt8Ty(), llvm::Constant::getNullValue(), llvm::Module::getOrInsertFunction(), llvm::GlobalValue::getParent(), llvm::Value::getType(), llvm::GlobalValue::getType(), llvm::PointerType::getUnqual(), InsertPos, M, opcode, and llvm::User::setOperand().
| const_inst_iterator llvm::inst_begin | ( | const Function & | F | ) | [inline] |
Definition at line 138 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 130 of file InstIterator.h.
| inst_iterator llvm::inst_begin | ( | Function * | F | ) | [inline] |
Definition at line 128 of file InstIterator.h.
Referenced by llvm::ScalarEvolution::print(), llvm::PointerTracking::print(), llvm::MSILWriter::printLocalVariables(), and llvm::FindUsedTypes::runOnModule().
| const_inst_iterator llvm::inst_end | ( | const Function & | F | ) | [inline] |
Definition at line 141 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 133 of file InstIterator.h.
| inst_iterator llvm::inst_end | ( | Function * | F | ) | [inline] |
Definition at line 129 of file InstIterator.h.
Referenced by llvm::constant_iterator::constant_iterator(), llvm::ScalarEvolution::print(), llvm::PointerTracking::print(), llvm::MSILWriter::printLocalVariables(), and llvm::FindUsedTypes::runOnModule().
| interval_part_interval_iterator llvm::intervals_begin | ( | IntervalPartition & | IP, | |
| bool | DeleteIntervals = true | |||
| ) | [inline] |
Definition at line 248 of file IntervalIterator.h.
| function_interval_iterator llvm::intervals_begin | ( | Function * | F, | |
| bool | DeleteInts = true | |||
| ) | [inline] |
Definition at line 239 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 252 of file IntervalIterator.h.
| function_interval_iterator llvm::intervals_end | ( | Function * | ) | [inline] |
Definition at line 243 of file IntervalIterator.h.
Referenced by llvm::IntervalPartition::IntervalPartition(), and llvm::IntervalPartition::runOnFunction().
| ipo_iterator<T> llvm::ipo_begin | ( | T | G, | |
| bool | Reverse = false | |||
| ) | [inline] |
Definition at line 159 of file PostOrderIterator.h.
| ipo_iterator<T> llvm::ipo_end | ( | T | G | ) | [inline] |
Definition at line 164 of file PostOrderIterator.h.
| ipo_ext_iterator<T, SetType> llvm::ipo_ext_begin | ( | T | G, | |
| SetType & | S | |||
| ) | [inline] |
Definition at line 179 of file PostOrderIterator.h.
| ipo_ext_iterator<T, SetType> llvm::ipo_ext_end | ( | T | G, | |
| SetType & | S | |||
| ) | [inline] |
Definition at line 184 of file PostOrderIterator.h.
| bool llvm::isa_impl | ( | const From & | Val | ) | [inline] |
| bool llvm::isa_impl< BasicBlock, Value > | ( | const Value & | Val | ) | [inline] |
| bool llvm::isa_impl< GlobalAlias, Value > | ( | const Value & | Val | ) | [inline] |
| bool llvm::isa_impl< GlobalValue, Value > | ( | const Value & | Val | ) | [inline] |
| bool llvm::isa_impl< GlobalVariable, Value > | ( | const Value & | Val | ) | [inline] |
| bool llvm::isa_impl< Instruction, Value > | ( | const Value & | Val | ) | [inline] |
| bool llvm::isa_impl< PointerType, Type > | ( | const Type & | Ty | ) | [inline] |
| bool llvm::isAllocaPromotable | ( | const AllocaInst * | AI | ) |
isAllocaPromotable - Return true if this alloca is legal for promotion. This is true if there are only loads and stores to the alloca...
isAllocaPromotable - Return true if this alloca is legal for promotion. This is true if there are only loads and stores to the alloca.
Definition at line 68 of file PromoteMemoryToRegister.cpp.
References llvm::Value::hasOneUse(), LI, llvm::Value::use_begin(), and llvm::Value::use_end().
isARMLowRegister - Returns true if the register is low register r0-r7.
Definition at line 36 of file ARMBaseRegisterInfo.h.
Referenced by llvm::Thumb1InstrInfo::canFoldMemoryOperand(), emitThumbRegPlusImmediate(), emitThumbRegPlusImmInReg(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::Thumb1RegisterInfo::getPhysicalRegisterRegClass(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), and VerifyLowRegs().
| static bool llvm::isBitcodeWrapper | ( | unsigned char * | BufPtr, | |
| unsigned char * | BufEnd | |||
| ) | [inline, static] |
isBitcodeWrapper - Return true fi this is a wrapper for LLVM IR bitcode files.
Definition at line 67 of file ReaderWriter.h.
Referenced by llvm::BitcodeReader::ParseBitcode().
| static bool llvm::isCondBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 286 of file ARMBaseInstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch(), and llvm::ARMBaseInstrInfo::RemoveBranch().
| bool llvm::isCriticalEdge | ( | const TerminatorInst * | TI, | |
| unsigned | SuccNum, | |||
| bool | AllowIdenticalEdges = false | |||
| ) |
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 90 of file BreakCriticalEdges.cpp.
References Dest, E, llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), pred_begin(), and pred_end().
Referenced by SplitCriticalEdge().
| bool llvm::isCurrentDebugType | ( | const char * | Type | ) |
Definition at line 59 of file Debug.cpp.
Referenced by getErrorOutputStream(), LowerSTORE(), and llvm::SPUTargetLowering::PerformDAGCombine().
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 206 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, and llvm::X86II::MO_PIC_BASE_OFFSET.
Referenced by llvm::X86TargetLowering::isLegalAddressingMode().
isGlobalStubReference - Return true if the specified TargetFlag operand is a reference to a stub for a global, not the global itself.
Definition at line 188 of file X86InstrInfo.h.
References llvm::X86II::MO_DARWIN_HIDDEN_NONLAZY, 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.
Referenced by CanRematLoadWithDispOperand(), gvNeedsNonLazyPtr(), llvm::X86InstrInfo::isInvariantLoad(), llvm::X86TargetLowering::isLegalAddressingMode(), and llvm::X86TargetLowering::LowerAsmOperandForConstraint().
isIdentifiedObject - Return true if this pointer refers to a distinct and identifiable object. This returns true for: Global Variables and Functions Allocas and Mallocs ByVal and NoAlias Arguments NoAlias returns
Definition at line 241 of file AliasAnalysis.cpp.
References A, and isNoAliasCall().
Referenced by getUnderlyingObjectForInstr().
| int llvm::IsInf | ( | float | f | ) |
| bool llvm::isInlinedFnEnd | ( | DbgRegionEndInst & | REI, | |
| const Function * | CurrentFn | |||
| ) |
isInlinedFnEnd - Return true if REI is ending an inlined function.
Definition at line 1305 of file DebugInfo.cpp.
References llvm::DISubprogram::describes(), llvm::DbgRegionEndInst::getContext(), and llvm::DIDescriptor::isNull().
| bool llvm::isInlinedFnStart | ( | DbgFuncStartInst & | FSI, | |
| const Function * | CurrentFn | |||
| ) |
isInlinedFnStart - Return true if FSI is starting an inlined function.
Definition at line 1296 of file DebugInfo.cpp.
References llvm::DISubprogram::describes(), and llvm::DbgFuncStartInst::getSubprogram().
| bool llvm::isInstructionTriviallyDead | ( | Instruction * | I | ) |
isInstructionTriviallyDead - Return true if the result produced by the instruction is not used, and the instruction has no side effects.
Definition at line 208 of file Local.cpp.
References II, llvm::Instruction::mayHaveSideEffects(), llvm::Intrinsic::stacksave, and llvm::Value::use_empty().
Referenced by AddReachableCodeToWorklist(), RecursivelyDeleteTriviallyDeadInstructions(), and UnrollLoop().
| bool llvm::isInt | ( | int64_t | x | ) | [inline] |
| bool llvm::isInt16 | ( | int64_t | Value | ) | [inline] |
Definition at line 42 of file MathExtras.h.
Referenced by llvm::PPCRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitPrologue(), and llvm::PPCRegisterInfo::lowerDynamicAlloc().
| bool llvm::isInt32 | ( | int64_t | Value | ) | [inline] |
Definition at line 48 of file MathExtras.h.
Referenced by llvm::X86::isOffsetSuitableForCodeModel().
| bool llvm::isInt8 | ( | int64_t | Value | ) | [inline] |
is?Type - these functions produce optimal testing for integer data types.
Definition at line 36 of file MathExtras.h.
| static bool llvm::isJumpTableBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 291 of file ARMBaseInstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch().
Definition at line 408 of file X86InstrInfo.h.
References 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::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 68 of file MathExtras.h.
Referenced by 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 75 of file MathExtras.h.
Referenced by isShiftedMask_64().
Definition at line 419 of file X86InstrInfo.h.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isFI(), isLeaMem(), and llvm::MachineOperand::isReg().
Referenced by llvm::X86ATTAsmPrinter::printMemReference(), and llvm::X86IntelAsmPrinter::printMemReference().
| int llvm::IsNAN | ( | float | f | ) |
isNoAliasCall - Return true if this pointer is returned by a noalias function.
Definition at line 227 of file AliasAnalysis.cpp.
References CallSite, and llvm::Attribute::NoAlias.
Referenced by isIdentifiedObject(), and isNonEscapingLocalObject().
| 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 94 of file MathExtras.h.
Referenced by CollectBSwapParts(), llvm::Attribute::constructAlignmentFromInt(), llvm::SPURegisterInfo::determineFrameLayout(), llvm::PPCRegisterInfo::emitPrologue(), llvm::TargetLowering::getVectorTypeBreakdown(), getVectorTypeBreakdownMVT(), isBytewiseValue(), llvm::ARMTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isLegalT2ScaledAddressingMode(), llvm::IntegerType::isPowerOf2ByteWidth(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::MemSDNode::MemSDNode(), MergeInType(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(), and llvm::X86TargetLowering::X86TargetLowering().
| 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 100 of file MathExtras.h.
References L.
Referenced by PerformMulCombine(), and llvm::TargetLowering::SimplifySetCC().
Predicate test for a signed 10-bit value.
| Value | The input value to be tested |
Referenced by llvm::SPURegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitPrologue(), llvm::SPU::get_vec_i10imm(), isI16IntS10Immediate(), isI32IntS10Immediate(), and isI64IntS10Immediate().
| bool llvm::isS10Constant< int > | ( | int | Value | ) | [inline] |
| bool llvm::isS10Constant< int64_t > | ( | int64_t | Value | ) | [inline] |
| bool llvm::isS10Constant< short > | ( | short | Value | ) | [inline] |
| bool llvm::isS10Constant< uint32_t > | ( | uint32_t | Value | ) | [inline] |
| bool llvm::isS10Constant< uint64_t > | ( | uint64_t | Value | ) | [inline] |
| bool llvm::isSafeToLoadUnconditionally | ( | Value * | V, | |
| Instruction * | ScanFrom | |||
| ) |
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 40 of file Local.cpp.
References BBI, llvm::BasicBlock::begin(), E, llvm::Instruction::getParent(), GV, llvm::GlobalValue::hasExternalWeakLinkage(), and LI.
| static bool llvm::isScale | ( | const MachineOperand & | MO | ) | [inline, static] |
Definition at line 402 of file X86InstrInfo.h.
References llvm::MachineOperand::getImm(), and llvm::MachineOperand::isImm().
Referenced by isLeaMem().
| 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 82 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 88 of file MathExtras.h.
References isMask_64().
| static bool llvm::isSignedComparison | ( | PIC16CC::CondCodes | CC | ) | [inline, static] |
Definition at line 334 of file PIC16.h.
References llvm::PIC16CC::EQ, llvm::PIC16CC::GE, llvm::PIC16CC::GT, llvm::PIC16CC::LE, llvm_unreachable, llvm::PIC16CC::LT, llvm::PIC16CC::NE, llvm::PIC16CC::UGE, llvm::PIC16CC::UGT, llvm::PIC16CC::ULE, and llvm::PIC16CC::ULT.
Referenced by llvm::PIC16TargetLowering::getPIC16Cmp().
| bool llvm::isU10Constant | ( | uint64_t | Value | ) | [inline] |
Definition at line 89 of file SPU.h.
Referenced by isI16IntU10Immediate(), and isI32IntU10Immediate().
| bool llvm::isU10Constant | ( | short | Value | ) | [inline] |
| bool llvm::isUint | ( | uint64_t | x | ) | [inline] |
Definition at line 61 of file MathExtras.h.
| bool llvm::isUInt16 | ( | int64_t | Value | ) | [inline] |
Definition at line 45 of file MathExtras.h.
| bool llvm::isUInt32 | ( | int64_t | Value | ) | [inline] |
| bool llvm::isUInt8 | ( | int64_t | Value | ) | [inline] |
Definition at line 39 of file MathExtras.h.
| static bool llvm::isUncondBranchOpcode | ( | int | Opc | ) | [inline, static] |
Definition at line 281 of file ARMBaseInstrInfo.h.
Referenced by llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::PredicateInstruction(), and llvm::ARMBaseInstrInfo::RemoveBranch().
| bool llvm::isValidDebugInfoIntrinsic | ( | DbgDeclareInst & | DI, | |
| CodeGenOpt::Level | OptLev | |||
| ) |
isValidDebugInfoIntrinsic - Return true if DI is a valid debug info intrinsic.
Definition at line 1241 of file DebugInfo.cpp.
References llvm::DbgDeclareInst::getVariable(), and llvm::DIDescriptor::ValidDebugInfo().
| bool llvm::isValidDebugInfoIntrinsic | ( | DbgRegionEndInst & | REI, | |
| CodeGenOpt::Level | OptLev | |||
| ) |
isValidDebugInfoIntrinsic - Return true if REI is a valid debug info intrinsic.
Definition at line 1233 of file DebugInfo.cpp.
References llvm::DbgRegionEndInst::getContext(), and llvm::DIDescriptor::ValidDebugInfo().
| bool llvm::isValidDebugInfoIntrinsic | ( | DbgRegionStartInst & | RSI, | |
| CodeGenOpt::Level | OptLev | |||
| ) |
isValidDebugInfoIntrinsic - Return true if RSI is a valid debug info intrinsic.
Definition at line 1226 of file DebugInfo.cpp.
References llvm::DbgRegionStartInst::getContext(), and llvm::DIDescriptor::ValidDebugInfo().
| bool llvm::isValidDebugInfoIntrinsic | ( | DbgFuncStartInst & | FSI, | |
| CodeGenOpt::Level | OptLev | |||
| ) |
isValidDebugInfoIntrinsic - Return true if FSI is a valid debug info intrinsic.
Definition at line 1219 of file DebugInfo.cpp.
References llvm::DbgFuncStartInst::getSubprogram(), and llvm::DIDescriptor::ValidDebugInfo().
| bool llvm::isValidDebugInfoIntrinsic | ( | DbgStopPointInst & | SPI, | |
| CodeGenOpt::Level | OptLev | |||
| ) |
isValidDebugInfoIntrinsic - Return true if SPI is a valid debug info intrinsic.
Definition at line 1212 of file DebugInfo.cpp.
References llvm::DbgStopPointInst::getContext(), and llvm::DIDescriptor::ValidDebugInfo().
Referenced by llvm::FunctionLoweringInfo::set().
| static std::string llvm::itostr | ( | int64_t | X | ) | [inline, static] |
Definition at line 99 of file StringExtras.h.
References utostr().
Referenced by llvm::Debugger::contProgram(), llvm::Debugger::finishProgram(), llvm::TargetData::getStringRepresentation(), llvm::Debugger::nextProgram(), and llvm::Debugger::stepProgram().
| bool llvm::LessPreciseFPMAD | ( | ) |
LessPreciseFPMAD - This flag return true when -enable-fp-mad option is specified on the command line. When this flag is off(default), the code generator is not allowed to generate mad (multiply add) if the result is "less precise" than doing those operations individually.
Definition at line 232 of file TargetMachine.cpp.
References LessPreciseFPMADOption, and UnsafeFPMath.
| void llvm::Link | ( | DominatorTreeBase< typename GraphT::NodeType > & | DT, | |
| unsigned | DFSNumV, | |||
| typename GraphT::NodeType * | W, | |||
| typename DominatorTreeBase< typename GraphT::NodeType >::InfoRec & | WInfo | |||
| ) | [inline] |
Definition at line 181 of file DominatorInternals.h.
References llvm::DominatorTreeBase< NodeT >::InfoRec::Child, llvm::DominatorTreeBase< NodeT >::Info, S, llvm::DominatorTreeBase< NodeT >::InfoRec::Size, std::swap(), and V.
| bool llvm::LinkDynamicObject | ( | const char * | filename, | |
| std::string * | ErrorMessage | |||
| ) |
LinkDynamicObject - Load the named file as a dynamic library and link it with the currently running process. Returns false on success, true if there is an error (and sets ErrorMessage if it is not NULL). Analogous to dlopen().
| 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 33 of file OcamlGC.cpp.
| void llvm::linkOcamlGCPrinter | ( | ) |
| void llvm::linkShadowStackGC | ( | ) |
Creates a shadow stack garbage collector. This collector requires no code generator support.
Definition at line 183 of file ShadowStackGC.cpp.
| void llvm::llvm_acquire_global_lock | ( | ) |
acquire_global_lock - Acquire the global lock. This is a no-op if called before llvm_start_multithreaded().
Definition at line 58 of file Threading.cpp.
References llvm::sys::SmartMutex< mt_only >::acquire().
Referenced by llvm::DerivedType::dropAllTypeUses(), getDefaultTimerGroup(), getPassRegistrar(), and llvm::ManagedStaticBase::RegisterManagedStatic().
| void llvm::llvm_install_error_handler | ( | llvm_error_handler_t | handler, | |
| void * | user_data = 0 | |||
| ) |
llvm_instal_error_handler - Installs a new error handler to be used whenever a serious (non-recoverable) error is encountered by LLVM.
If you are using llvm_start_multithreaded, you should register the handler before doing that.
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 29 of file ErrorHandling.cpp.
References ErrorHandler, ErrorHandlerUserData, and llvm_is_multithreaded().
| bool llvm::llvm_is_multithreaded | ( | ) |
llvm_is_multithreaded - Check whether LLVM is executing in thread-safe mode or not.
Definition at line 54 of file Threading.cpp.
Referenced by llvm::sys::SmartMutex< true >::acquire(), llvm::DerivedType::dropAllTypeUses(), getPassRegistrar(), llvm_install_error_handler(), llvm_shutdown(), llvm::ManagedStatic< C >::operator*(), llvm::ManagedStatic< C >::operator->(), llvm::sys::SmartRWMutex< true >::reader_acquire(), llvm::sys::SmartRWMutex< true >::reader_release(), llvm::ManagedStaticBase::RegisterManagedStatic(), llvm::sys::SmartMutex< true >::release(), llvm::sys::SmartMutex< true >::tryacquire(), llvm::sys::SmartRWMutex< true >::writer_acquire(), and llvm::sys::SmartRWMutex< true >::writer_release().
| void llvm::llvm_release_global_lock | ( | ) |
release_global_lock - Release the global lock. This is a no-op if called before llvm_start_multithreaded().
Definition at line 62 of file Threading.cpp.
References llvm::sys::SmartMutex< mt_only >::release().
Referenced by llvm::DerivedType::dropAllTypeUses(), getDefaultTimerGroup(), getPassRegistrar(), and llvm::ManagedStaticBase::RegisterManagedStatic().
| void llvm::llvm_remove_error_handler | ( | ) |
Restores default error handling behaviour. This must not be called between llvm_start_multithreaded() and llvm_stop_multithreaded().
Definition at line 38 of file ErrorHandling.cpp.
References ErrorHandler.
| void llvm::llvm_report_error | ( | const Twine & | reason | ) |
Definition at line 50 of file ErrorHandling.cpp.
References ErrorHandler, ErrorHandlerUserData, errs(), and llvm::Twine::str().
Referenced by ffiInvoke(), ffiTypeFor(), ffiValueFor(), and getValueTypeMapEntry().
| void llvm::llvm_report_error | ( | const std::string & | reason | ) |
| void llvm::llvm_report_error | ( | const char * | reason | ) |
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 42 of file ErrorHandling.cpp.
Referenced by llvm::JIT::addModuleProvider(), llvm::Interpreter::callExternalFunction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::JIT::deleteModuleProvider(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::emitEpilogue(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitEpilogue(), llvm::ExecutionEngine::emitGlobals(), llvm::XCoreRegisterInfo::emitPrologue(), llvm::SPURegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), llvm::ExecutionEngine::getConstantValue(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), GetInstSizeWithDesc(), llvm::JIT::getMemoryForGV(), llvm::JIT::getOrEmitGlobalVariable(), llvm::JIT::getPointerToFunction(), llvm::JIT::getPointerToNamedFunction(), llvm::SPURegisterInfo::getRegisterNumbering(), llvm::MachOWriter::InitMem(), llvm_report_error(), llvm::ExecutionEngine::LoadValueFromMemory(), LowerBUILD_VECTOR(), LowerEXTRACT_VECTOR_ELT(), llvm::SPUTargetLowering::LowerFormalArguments(), LowerGlobalAddress(), llvm::IntrinsicLowering::LowerIntrinsicCall(), LowerLOAD(), LowerSETCC(), LowerSTORE(), llvm::AsmPrinter::printInlineAsm(), llvm::AsmPrinter::PrintSpecial(), llvm::JIT::removeModuleProvider(), llvm::ARMJITInfo::replaceMachineCodeForFunction(), llvm::FunctionPassManager::run(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands(), llvm::LiveIntervals::spillPhysRegAroundRegDefsUses(), llvm::TargetData::TargetData(), llvm::Interpreter::visitUnreachableInst(), llvm::Interpreter::visitUnwindInst(), WriteFileData(), and llvm::raw_ostream::~raw_ostream().
| void llvm::llvm_shutdown | ( | ) |
llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
Definition at line 69 of file ManagedStatic.cpp.
References llvm::ManagedStaticBase::destroy(), llvm_is_multithreaded(), and llvm_stop_multithreaded().
Referenced by llvm::llvm_shutdown_obj::~llvm_shutdown_obj().
| bool llvm::llvm_start_multithreaded | ( | ) |
llvm_start_multithreaded - Allocate and initialize structures needed to make LLVM safe for multithreading. The return value indicates whether multithreaded initialization succeeded. LLVM will still be operational on "failed" return, and will still be safe for hosting threading applications in the JIT, but will not be safe for concurrent calls to the LLVM APIs. THIS MUST EXECUTE IN ISOLATION FROM ALL OTHER LLVM API CALLS.
Definition at line 26 of file Threading.cpp.
References llvm::sys::MemoryFence().
Referenced by llvm::llvm_shutdown_obj::llvm_shutdown_obj().
| void llvm::llvm_stop_multithreaded | ( | ) |
llvm_stop_multithreaded - Deallocate structures necessary to make LLVM safe for multithreading. THIS MUST EXECUTE IN ISOLATION FROM ALL OTHER LLVM API CALLS.
Definition at line 41 of file Threading.cpp.
References llvm::sys::MemoryFence().
Referenced by llvm_shutdown().
| void llvm::llvm_unreachable_internal | ( | const char * | msg = 0, |
|
| const char * | file = 0, |
|||
| 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 59 of file ErrorHandling.cpp.
References errs().
| 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 31 of file MathExtras.h.
Referenced by CountLeadingZeros_64().
| 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 317 of file MathExtras.h.
References CountLeadingZeros_32().
Referenced by ComputeMaskedBits(), llvm::SelectionDAG::ComputeMaskedBits(), ConstantFoldBinaryInstruction(), llvm::Attribute::constructAlignmentFromInt(), llvm::AsmPrinter::EmitAlignment(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::PPCRegisterInfo::emitPrologue(), llvm::AsmPrinter::EmitSpecialLLVMGlobal(), encodeMemSDNodeFlags(), FindAssocWidenVecType(), getCopyFromParts(), getCopyToParts(), llvm::TargetData::getPreferredAlignmentLog(), llvm::TargetData::getPreferredTypeAlignmentShift(), PerformBTCombine(), llvm::AsmPrinter::printBasicBlockLabel(), llvm::AllocationInst::setAlignment(), llvm::LoadInst::setAlignment(), llvm::StoreInst::setAlignment(), llvm::ISD::ArgFlagsTy::setByValAlign(), llvm::ISD::ArgFlagsTy::setOrigAlign(), llvm::TargetLowering::SimplifySetCC(), llvm::MachOCodeEmitter::startFunction(), WriteInstruction(), and WriteModuleInfo().
| 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 330 of file MathExtras.h.
References CountLeadingZeros_32().
Referenced by llvm::MVT::getPow2VectorType(), llvm::EVT::getPow2VectorType(), llvm::EVT::getRoundIntegerType(), WriteBlockInfo(), WriteConstants(), WriteModuleInfo(), WriteTypeSymbolTable(), 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 323 of file MathExtras.h.
References CountLeadingZeros_64().
Referenced by PerformMulCombine(), and llvm::TargetLowering::SimplifySetCC().
| 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 336 of file MathExtras.h.
References CountLeadingZeros_64().
| static std::string llvm::LowercaseString | ( | const std::string & | S | ) | [inline, static] |
Definition at line 122 of file StringExtras.h.
Referenced by llvm::SubtargetFeatures::AddFeature(), llvm::SubtargetFeatures::setCPU(), and llvm::SubtargetFeatures::setString().
| mapped_iterator<ItTy, FuncTy> llvm::map_iterator | ( | const ItTy & | I, | |
| FuncTy | F | |||
| ) | [inline] |
Definition at line 129 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, | |
| ValueMapTy & | VM, | |||
| LLVMContext & | Context | |||
| ) |
Definition at line 27 of file ValueMapper.cpp.
References llvm::CallingConv::C, CA, CP, llvm::ConstantStruct::get(), llvm::ConstantArray::get(), llvm::ConstantVector::get(), llvm::User::getNumOperands(), llvm_unreachable, llvm::User::op_begin(), llvm::User::op_end(), and Values.
Referenced by CloneAndPruneFunctionInto(), CloneModule(), and RemapInstruction().
| bool llvm::MaskedValueIsZero | ( | Value * | V, | |
| const APInt & | Mask, | |||
| TargetData * | TD = 0, |
|||
| unsigned | Depth = 0 | |||
| ) |
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.
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.
Definition at line 611 of file ValueTracking.cpp.
References ComputeMaskedBits(), and llvm::APInt::getBitWidth().
| void llvm::MergeBasicBlockIntoOnlyPred | ( | BasicBlock * | DestBB | ) |
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 297 of file Local.cpp.
References llvm::BasicBlock::begin(), llvm::BasicBlock::eraseFromParent(), llvm::Instruction::eraseFromParent(), llvm::UndefValue::get(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getTerminator(), and llvm::Value::replaceAllUsesWith().
| bool llvm::MergeBlockIntoPredecessor | ( | BasicBlock * | BB, | |
| Pass * | P = 0 | |||
| ) |
MergeBlockIntoPredecessor - Attempts to merge a block into its predecessor, if possible. The return value indicates success or failure.
Definition at line 99 of file BasicBlockUtils.cpp.
References llvm::DomTreeNodeBase< NodeT >::begin(), llvm::BasicBlock::begin(), llvm::DominatorTree::changeImmediateDominator(), Children, DE, DT, llvm::BasicBlock::end(), llvm::DomTreeNodeBase< NodeT >::end(), llvm::BasicBlock::eraseFromParent(), llvm::DominatorTree::eraseNode(), llvm::BasicBlock::front(), llvm::Pass::getAnalysisIfAvailable(), llvm::BasicBlock::getInstList(), llvm::DominatorTree::getNode(), llvm::BasicBlock::getTerminator(), llvm::Value::hasName(), PI, pred_begin(), pred_end(), llvm::Value::replaceAllUsesWith(), SE, succ_begin(), succ_end(), and llvm::Value::takeName().
Referenced by SimplifyCFG().
| static uint64_t llvm::MinAlign | ( | uint64_t | A, | |
| uint64_t | B | |||
| ) | [inline, static] |
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 409 of file MathExtras.h.
Referenced by ExpandUnalignedLoad(), ExpandUnalignedStore(), InferAlignment(), PerformSTORECombine(), llvm::TargetLowering::SimplifySetCC(), and SRAGlobal().
| ItTy llvm::next | ( | ItTy | it | ) | [inline] |
| ItTy llvm::next | ( | ItTy | it, | |
| Dist | n | |||
| ) | [inline] |
Definition at line 143 of file STLExtras.h.
Referenced by llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::AnalyzeBranch(), BBHasFallthrough(), llvm::MachineBasicBlock::CorrectExtraCFGEdges(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), llvm::iplist< llvm::Instruction >::erase(), llvm::iplist< llvm::Instruction >::erase_if(), llvm::FastISel::FastEmitBranch(), llvm::RegScavenger::forward(), llvm::MachineInstr::hasOneMemOperand(), llvm::SDNode::hasOneUse(), llvm::MachineBasicBlock::isLayoutSuccessor(), llvm::iplist< llvm::Instruction >::merge(), mergeSPUpdates(), mergeSPUpdatesDown(), llvm::LiveInterval::removeRange(), and llvm::BasicBlock::splitBasicBlock().
| static uint64_t llvm::NextPowerOf2 | ( | uint64_t | A | ) | [inline, static] |
NextPowerOf2 - Returns the next power of two (in 64-bits) that is strictly greater than A. Returns zero on overflow.
Definition at line 416 of file MathExtras.h.
Referenced by llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp().
| 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 448 of file raw_ostream.cpp.
References S.
| void* llvm::object_creator | ( | ) | [inline] |
object_creator - Helper method for ManagedStatic.
Definition at line 24 of file ManagedStatic.h.
References llvm::CallingConv::C.
| bool llvm::OnlyUsedByDbgInfoIntrinsics | ( | Instruction * | I, | |
| SmallVectorImpl< DbgInfoIntrinsic * > * | DbgInUses = 0 | |||
| ) |
OnlyUsedByDbgIntrinsics - Return true if the instruction I is only used by DbgIntrinsics. If DbgInUses is specified then the vector is filled with DbgInfoIntrinsic that use the instruction I.
OnlyUsedByDbgIntrinsics - Return true if the instruction I is only used by DbgIntrinsics. If DbgInUses is specified then the vector is filled with the DbgInfoIntrinsic that use the instruction I.
Definition at line 324 of file Local.cpp.
References llvm::SmallVectorImpl< T >::clear(), llvm::SmallVectorImpl< T >::push_back(), llvm::Value::use_begin(), and llvm::Value::use_end().
| SparseBitVector<ElementSize> llvm::operator & | ( | const SparseBitVector< ElementSize > & | LHS, | |
| const SparseBitVector< ElementSize > & | RHS | |||
| ) | [inline] |
Definition at line 871 of file SparseBitVector.h.
| BitVector llvm::operator & | ( | const BitVector & | LHS, | |
| const BitVector & | RHS | |||
| ) | [inline] |
Definition at line 390 of file BitVector.h.
| bool llvm::operator &= | ( | 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 847 of file SparseBitVector.h.
| bool llvm::operator!= | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
Definition at line 258 of file StringRef.h.
| bool llvm::operator!= | ( | T * | A, | |
| const IntrusiveRefCntPtr< U > & | B | |||
| ) | [inline] |
Definition at line 204 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
| bool llvm::operator!= | ( | const IntrusiveRefCntPtr< T > & | A, | |
| U * | B | |||
| ) | [inline] |
Definition at line 190 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
| bool llvm::operator!= | ( | const IntrusiveRefCntPtr< T > & | A, | |
| const IntrusiveRefCntPtr< U > & | B | |||
| ) | [inline] |
Definition at line 176 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
Definition at line 259 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
| bool llvm::operator!= | ( | const T * | LHS, | |
| const ilist_iterator< const T > & | RHS | |||
| ) | [inline] |
Definition at line 251 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
| bool llvm::operator!= | ( | uint64_t | V1, | |
| const APInt & | V2 | |||
| ) | [inline] |
| Twine llvm::operator+ | ( | const StringRef & | LHS, | |
| const char * | RHS | |||
| ) | [inline] |
| Twine llvm::operator+ | ( | const char * | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| Twine llvm::operator+ | ( | const Twine & | LHS, | |
| const Twine & | RHS | |||
| ) | [inline] |
| mapped_iterator<_Iterator, Func> llvm::operator+ | ( | typename mapped_iterator< _Iterator, Func >::difference_type | N, | |
| const mapped_iterator< _Iterator, Func > & | X | |||
| ) | [inline] |
Definition at line 119 of file STLExtras.h.
References llvm::mapped_iterator< RootIt, UnaryFunc >::getCurrent(), and llvm::mapped_iterator< RootIt, UnaryFunc >::getFunc().
| void llvm::operator+ | ( | ilist_iterator< T > | , | |
| int | ||||
| ) | [inline] |
| void llvm::operator+ | ( | int | , | |
| ilist_iterator< T > | ||||
| ) | [inline] |
| SparseBitVector<ElementSize> llvm::operator- | ( | const SparseBitVector< ElementSize > & | LHS, | |
| const SparseBitVector< ElementSize > & | RHS | |||
| ) | [inline] |
Definition at line 880 of file SparseBitVector.h.
References llvm::SparseBitVector< ElementSize >::intersectWithComplement().
| void llvm::operator- | ( | ilist_iterator< T > | , | |
| int | ||||
| ) | [inline] |
| void llvm::operator- | ( | int | , | |
| ilist_iterator< T > | ||||
| ) | [inline] |
Definition at line 49 of file LiveIntervalAnalysis.h.
Definition at line 45 of file LiveIntervalAnalysis.h.
| bool llvm::operator< | ( | const VNInfo::KillInfo & | k1, | |
| const VNInfo::KillInfo & | k2 | |||
| ) | [inline] |
| bool llvm::operator< | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const Type * | T | |||
| ) |
| static std::ostream& llvm::operator<< | ( | std::ostream & | o, | |
| const std::set< BasicBlock * > & | BBs | |||
| ) | [static] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | O, | |
| const ARMConstantPoolValue & | V | |||
| ) | [inline] |
Definition at line 82 of file ARMConstantPoolValue.h.
References llvm::ARMConstantPoolValue::print().
| std::ostream& llvm::operator<< | ( | std::ostream & | O, | |
| const ARMConstantPoolValue & | V | |||
| ) | [inline] |
Definition at line 76 of file ARMConstantPoolValue.h.
References llvm::ARMConstantPoolValue::print().
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const VirtRegMap & | VRM | |||
| ) | [inline] |
| raw_ostream* llvm::operator<< | ( | raw_ostream * | OS, | |
| const VirtRegMap & | VRM | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const VirtRegMap & | VRM | |||
| ) | [inline] |
| std::ostream* llvm::operator<< | ( | std::ostream * | OS, | |
| const VirtRegMap & | VRM | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const Value & | V | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const Value & | V | |||
| ) | [inline] |
| raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, | |
| const Type & | T | |||
| ) |
| std::ostream & llvm::operator<< | ( | std::ostream & | OS, | |
| const Type & | T | |||
| ) |
| static raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const ExtAddrMode & | AM | |||
| ) | [inline, static] |
| std::ostream& llvm::operator<< | ( | std::ostream & | strm, | |
| const sys::PathWithStatus & | aPath | |||
| ) | [inline] |
| std::ostream & llvm::operator<< | ( | std::ostream & | strm, | |
| const sys::Path & | aPath | |||
| ) |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | strm, | |
| const sys::PathWithStatus & | aPath | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | strm, | |
| const sys::Path & | aPath | |||
| ) | [inline] |
| std::ostream & llvm::operator<< | ( | std::ostream & | OS, | |
| const ConstantRange & | CR | |||
| ) |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const ConstantRange & | CR | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const Pass & | P | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | O, | |
| const Module & | M | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | O, | |
| const Module & | M | |||
| ) | [inline] |
An iostream inserter for modules.
Definition at line 486 of file Module.h.
References llvm::Module::print().
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const MachineOperand & | MO | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const MachineOperand & | MO | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const MachineInstr & | MI | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const MachineInstr & | MI | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const MachineConstantPoolValue & | V | |||
| ) | [inline] |
Definition at line 62 of file MachineConstantPool.h.
References llvm::MachineConstantPoolValue::print().
| raw_ostream & llvm::operator<< | ( | raw_ostream & | OS, | |
| const MachineBasicBlock & | MBB | |||
| ) |
| std::ostream & llvm::operator<< | ( | std::ostream & | OS, | |
| const MachineBasicBlock & | MBB | |||
| ) |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const LiveInterval & | LI | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const LiveInterval & | LI | |||
| ) | [inline] |
| raw_ostream & llvm::operator<< | ( | raw_ostream & | os, | |
| const LiveRange & | LR | |||
| ) |
Definition at line 822 of file LiveInterval.cpp.
References llvm::LiveRange::end, llvm::VNInfo::id, llvm::LiveRange::start, and llvm::LiveRange::valno.
| std::ostream & llvm::operator<< | ( | std::ostream & | os, | |
| const LiveRange & | LR | |||
| ) |
Definition at line 819 of file LiveInterval.cpp.
References llvm::LiveRange::end, llvm::VNInfo::id, llvm::LiveRange::start, and llvm::LiveRange::valno.
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const SCEV & | S | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const SCEV & | S | |||
| ) | [inline] |
| static std::ostream& llvm::operator<< | ( | std::ostream & | o, | |
| const DomTreeNodeBase< NodeT > * | Node | |||
| ) | [inline, static] |
Definition at line 164 of file Dominators.h.
References llvm::DomTreeNodeBase< NodeT >::getBlock(), llvm::DomTreeNodeBase< NodeT >::getDFSNumIn(), llvm::DomTreeNodeBase< NodeT >::getDFSNumOut(), and WriteAsOperand().
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const AliasSetTracker & | AST | |||
| ) | [inline] |
| std::ostream& llvm::operator<< | ( | std::ostream & | OS, | |
| const AliasSet & | AS | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const Twine & | RHS | |||
| ) | [inline] |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const APSInt & | I | |||
| ) | [inline] |
Definition at line 256 of file APSInt.h.
References llvm::APSInt::isSigned(), and llvm::APInt::print().
| std::ostream & llvm::operator<< | ( | std::ostream & | o, | |
| const APInt & | I | |||
| ) |
| raw_ostream& llvm::operator<< | ( | raw_ostream & | OS, | |
| const APInt & | I | |||
| ) | [inline] |
| bool llvm::operator<= | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| bool llvm::operator== | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| bool llvm::operator== | ( | T * | A, | |
| const IntrusiveRefCntPtr< U > & | B | |||
| ) | [inline] |
Definition at line 197 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
| bool llvm::operator== | ( | const IntrusiveRefCntPtr< T > & | A, | |
| U * | B | |||
| ) | [inline] |
Definition at line 183 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
| bool llvm::operator== | ( | const IntrusiveRefCntPtr< T > & | A, | |
| const IntrusiveRefCntPtr< U > & | B | |||
| ) | [inline] |
Definition at line 169 of file IntrusiveRefCntPtr.h.
References llvm::IntrusiveRefCntPtr< T >::getPtr().
Definition at line 263 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
| bool llvm::operator== | ( | const T * | LHS, | |
| const ilist_iterator< const T > & | RHS | |||
| ) | [inline] |
Definition at line 255 of file ilist.h.
References llvm::ilist_iterator< NodeTy >::getNodePtrUnchecked().
| bool llvm::operator== | ( | uint64_t | V1, | |
| const APInt & | V2 | |||
| ) | [inline] |
| bool llvm::operator> | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| bool llvm::operator>= | ( | const StringRef & | LHS, | |
| const StringRef & | RHS | |||
| ) | [inline] |
| BitVector llvm::operator^ | ( | const BitVector & | LHS, | |
| const BitVector & | RHS | |||
| ) | [inline] |
Definition at line 402 of file BitVector.h.
| SparseBitVector<ElementSize> llvm::operator| | ( | const SparseBitVector< ElementSize > & | LHS, | |
| const SparseBitVector< ElementSize > & | RHS | |||
| ) | [inline] |
Definition at line 862 of file SparseBitVector.h.
| BitVector llvm::operator| | ( | const BitVector & | LHS, | |
| const BitVector & | RHS | |||
| ) | [inline] |
Definition at line 396 of file BitVector.h.
| bool llvm::operator|= | ( | SparseBitVector< ElementSize > * | LHS, | |
| const SparseBitVector< ElementSize > & | RHS | |||
| ) | [inline] |
Definition at line 841 of file SparseBitVector.h.
| bool llvm::operator|= | ( | SparseBitVector< ElementSize > & | LHS, | |
| const SparseBitVector< ElementSize > * | RHS | |||
| ) | [inline] |
Definition at line 835 of file SparseBitVector.h.
| 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 435 of file raw_ostream.cpp.
References S.
Referenced by CheckBitcodeOutputToConsole(), fouts(), and WriteBitcodeToFile().
| Module * llvm::ParseAssemblyFile | ( | const std::string & | 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 24 of file Parser.cpp.
References llvm::SourceMgr::AddNewSourceBuffer(), F, llvm::OwningPtr< T >::get(), llvm::MemoryBuffer::getFileOrSTDIN(), M, and llvm::OwningPtr< T >::take().
| Module * llvm::ParseAssemblyString | ( | const char * | AsmString, | |
| Module * | M, | |||
| 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 |
| M | A module to add the assembly too. |
| Error | Error result info. |
Definition at line 43 of file Parser.cpp.
References llvm::SourceMgr::AddNewSourceBuffer(), F, llvm::OwningPtr< T >::get(), llvm::MemoryBuffer::getMemBuffer(), and llvm::OwningPtr< T >::take().
| Module * llvm::ParseBitcodeFile | ( | MemoryBuffer * | Buffer, | |
| LLVMContext & | Context, | |||
| std::string * | ErrMsg = 0 | |||
| ) |
ParseBitcodeFile - Read the specified bitcode file, returning the module. If an error occurs, this returns null and fills in *ErrMsg if it is non-null. This method *never* takes ownership of Buffer.
ParseBitcodeFile - Read the specified bitcode file, returning the module. If an error occurs, return null and fill in *ErrMsg if non-null.
Definition at line 2236 of file BitcodeReader.cpp.
References getBitcodeModuleProvider(), M, llvm::BitcodeReader::materializeModule(), R, llvm::BitcodeReader::releaseMemoryBuffer(), and llvm::BitcodeReader::releaseModule().
Referenced by llvm::Archive::getAllModules(), getMaterializedModuleProvider(), llvm::Archive::isBitcodeArchive(), llvm::Linker::LinkInFile(), LLVMParseBitcode(), and LLVMParseBitcodeInContext().
| static const char* llvm::PIC16CondCodeToString | ( | PIC16CC::CondCodes | CC | ) | [inline, static] |
Definition at line 318 of file PIC16.h.
References llvm::PIC16CC::EQ, llvm::PIC16CC::GE, llvm::PIC16CC::GT, llvm::PIC16CC::LE, llvm_unreachable, llvm::PIC16CC::LT, llvm::PIC16CC::NE, llvm::PIC16CC::UGE, llvm::PIC16CC::UGT, llvm::PIC16CC::ULE, and llvm::PIC16CC::ULT.
| po_iterator<T> llvm::po_begin | ( | T | G | ) | [inline] |
Definition at line 128 of file PostOrderIterator.h.
Referenced by llvm::LazyLiveness::runOnMachineFunction().
| po_iterator<T> llvm::po_end | ( | T | G | ) | [inline] |
Definition at line 130 of file PostOrderIterator.h.
Referenced by llvm::LazyLiveness::runOnMachineFunction().
| po_ext_iterator<T, SetType> llvm::po_ext_begin | ( | T | G, | |
| SetType & | S | |||
| ) | [inline] |
Definition at line 140 of file PostOrderIterator.h.
| po_ext_iterator<T, SetType> llvm::po_ext_end | ( | T | G, | |
| SetType & | S | |||
| ) | [inline] |
Definition at line 145 of file PostOrderIterator.h.
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.
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.
Definition at line 32 of file CaptureTracking.cpp.
References A, llvm::CallSite::arg_begin(), llvm::CallSite::arg_end(), BitCast, Call, llvm::CallSite::doesNotThrow(), E, llvm::SmallVectorImpl< T >::empty(), llvm::Use::get(), llvm::CallSite::get(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::Use::getUser(), llvm::Type::getVoidTy(), llvm::SmallSet< T, N >::insert(), Load, llvm::Attribute::NoCapture, llvm::CallSite::onlyReadsMemory(), llvm::CallSite::paramHasAttr(), PHI, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorImpl< T >::push_back(), llvm::MipsISD::Ret, llvm::SPII::Store, llvm::Value::use_begin(), llvm::Value::use_end(), Visited, and Worklist.
Referenced by isNonEscapingLocalObject().
| pred_const_iterator llvm::pred_begin | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 73 of file CFG.h.
Referenced by CanPropagatePredecessorsForPHIs(), FoldTwoEntryPHINode(), FoldValueComparisonIntoPredecessors(), GetIfCondition(), isValueEqualityComparison(), and TryToSimplifyUncondBranchFromEmptyBlock().
| pred_iterator llvm::pred_begin | ( | 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 118 of file Interval.h.
References llvm::Interval::Predecessors.
Referenced by AddBlockAndPredsToSet(), llvm::GraphTraits< Inverse< BasicBlock * > >::child_begin(), llvm::GraphTraits< Inverse< Interval * > >::child_begin(), llvm::GraphTraits< Inverse< const BasicBlock * > >::child_begin(), CloneAndPruneFunctionInto(), DeleteDeadBlock(), FindObviousSharedDomOf(), FoldBranchToCommonDest(), llvm::ProfileInfo::getExecutionCount(), llvm::PredIteratorCache::GetPreds(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getUniquePredecessor(), isCriticalEdge(), llvm::Interval::isLoop(), llvm::Loop::isLoopSimplifyForm(), IsValueFullyAvailableInBlock(), MarkBlocksLiveIn(), MergeBlockIntoPredecessor(), llvm::BasicBlock::removePredecessor(), SimplifyCFG(), SimplifyCondBranchToCondBranch(), llvm::DominanceFrontier::splitBlock(), SplitCriticalEdge(), and SplitEdgeNicely().
| pred_const_iterator llvm::pred_end | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 77 of file CFG.h.
Referenced by CanPropagatePredecessorsForPHIs(), FoldValueComparisonIntoPredecessors(), GetIfCondition(), isValueEqualityComparison(), and TryToSimplifyUncondBranchFromEmptyBlock().
| pred_iterator llvm::pred_end | ( | BasicBlock * | BB | ) | [inline] |
| Interval::pred_iterator llvm::pred_end | ( | Interval * | I | ) | [inline] |
Definition at line 121 of file Interval.h.
References llvm::Interval::Predecessors.
Referenced by AddBlockAndPredsToSet(), llvm::GraphTraits< Inverse< BasicBlock * > >::child_end(), llvm::GraphTraits< Inverse< Interval * > >::child_end(), llvm::GraphTraits< Inverse< const BasicBlock * > >::child_end(), CloneAndPruneFunctionInto(), DeleteDeadBlock(), FindObviousSharedDomOf(), FoldBranchToCommonDest(), llvm::ProfileInfo::getExecutionCount(), llvm::PredIteratorCache::GetPreds(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getUniquePredecessor(), isCriticalEdge(), llvm::Interval::isLoop(), llvm::Loop::isLoopSimplifyForm(), IsValueFullyAvailableInBlock(), MarkBlocksLiveIn(), MergeBlockIntoPredecessor(), llvm::BasicBlock::removePredecessor(), SimplifyCFG(), SimplifyCondBranchToCondBranch(), llvm::DominanceFrontier::splitBlock(), SplitCriticalEdge(), and SplitEdgeNicely().
| static void llvm::PrintDomTree | ( | const DomTreeNodeBase< NodeT > * | N, | |
| std::ostream & | o, | |||
| unsigned | Lev | |||
| ) | [inline, static] |
| void llvm::PrintRecyclerStats | ( | size_t | Size, | |
| size_t | Align, | |||
| size_t | FreeListSize | |||
| ) |
PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for printing statistics.
Definition at line 163 of file Allocator.cpp.
References errs().
Referenced by llvm::Recycler< llvm::MachineInstr >::PrintStats().
| ItTy llvm::prior | ( | ItTy | it | ) | [inline] |
| ItTy llvm::prior | ( | ItTy | it, | |
| Dist | n | |||
| ) | [inline] |
Definition at line 156 of file STLExtras.h.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), ComputeReloadLoc(), llvm::AlphaRegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitEpilogue(), llvm::MipsRegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::SparcRegisterInfo::emitEpilogue(), llvm::BlackfinRegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), EmitLiveInCopy(), llvm::SPURegisterInfo::emitPrologue(), llvm::MemoryDependenceAnalysis::getNonLocalCallDependency(), isInTailCallPosition(), mergeSPUpdates(), mergeSPUpdatesUp(), ReMaterialize(), llvm::X86InstrInfo::reMaterialize(), llvm::MachineFunction::RenumberBlocks(), and llvm::RegScavenger::scavengeRegister().
| void llvm::PromoteMemToReg | ( | const std::vector< AllocaInst * > & | Allocas, | |
| DominatorTree & | DT, | |||
| DominanceFrontier & | DF, | |||
| LLVMContext & | Context, | |||
| AliasSetTracker * | AST = 0 | |||
| ) |
PromoteMemToReg - 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 1002 of file PromoteMemoryToRegister.cpp.
| GenericValue llvm::PTOGV | ( | void * | P | ) | [inline] |
Definition at line 40 of file GenericValue.h.
Referenced by CreateArgv(), llvm::ExecutionEngine::getConstantValue(), lle_X_fprintf(), lle_X_printf(), llvm::JIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), and llvm::Interpreter::visitAllocationInst().
| void llvm::RecursivelyDeleteDeadPHINode | ( | PHINode * | PN | ) |
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.
Definition at line 265 of file Local.cpp.
References llvm::UndefValue::get(), llvm::Value::hasOneUse(), llvm::SmallPtrSet< PtrType, SmallSize >::insert(), RecursivelyDeleteTriviallyDeadInstructions(), and llvm::Value::use_begin().
Referenced by DeleteDeadPHIs().
| void llvm::RecursivelyDeleteTriviallyDeadInstructions | ( | Value * | V | ) |
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.
Definition at line 228 of file Local.cpp.
References DeadInsts, dyn_cast(), llvm::SmallVectorImpl< T >::empty(), llvm::Instruction::eraseFromParent(), llvm::User::getNumOperands(), llvm::User::getOperand(), isInstructionTriviallyDead(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorImpl< T >::push_back(), llvm::User::setOperand(), and llvm::Value::use_empty().
Referenced by EraseTerminatorInstAndDCECond(), RecursivelyDeleteDeadPHINode(), and StripDebugInfo().
| void llvm::RemapInstruction | ( | Instruction * | I, | |
| ValueMapTy & | ValueMap | |||
| ) |
RemapInstruction - Convert the instruction operands from referencing the current values into those specified by ValueMap.
Definition at line 119 of file ValueMapper.cpp.
References E, llvm::BasicBlock::getContext(), llvm::Instruction::getParent(), MapValue(), llvm::User::op_begin(), llvm::User::op_end(), and V.
Referenced by CloneAndPruneFunctionInto(), CloneFunctionInto(), CloneTraceInto(), and UnrollLoop().
| static void llvm::RemoveFromVector | ( | std::vector< T * > & | V, | |
| T * | N | |||
| ) | [inline, static] |
Definition at line 46 of file LoopInfo.h.
Referenced by llvm::LoopBase< llvm::MachineBasicBlock, llvm::MachineLoop >::removeBlockFromLoop().
| void llvm::RemoveSuccessor | ( | TerminatorInst * | TI, | |
| unsigned | SuccNum | |||
| ) |
RemoveSuccessor - Change the specified terminator instruction such that its successor SuccNum no longer exists. Because this reduces the outgoing degree of the current basic block, the actual terminator instruction itself may have to be changed. In the case where the last successor of the block is deleted, a return instruction is inserted in its place which can cause a surprising change in program behavior if it is not expected.
Definition at line 234 of file BasicBlockUtils.cpp.
References BB, llvm::ReturnInst::Create(), llvm::Value::getContext(), llvm::Constant::getNullValue(), llvm::TerminatorInst::getNumSuccessors(), llvm::Instruction::getOpcode(), llvm::BasicBlock::getParent(), llvm::Instruction::getParent(), llvm::Function::getReturnType(), llvm::TerminatorInst::getSuccessor(), llvm::Type::getVoidTy(), llvm_unreachable, llvm::BasicBlock::removePredecessor(), ReplaceInstWithInst(), and llvm::MipsISD::Ret.
| void llvm::ReplaceInstWithInst | ( | Instruction * | From, | |
| Instruction * | To | |||
| ) |
ReplaceInstWithInst - Replace the instruction specified by From with the instruction specified by To.
Definition at line 222 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::getInstList(), llvm::Instruction::getParent(), and ReplaceInstWithInst().
| 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.
Referenced by RemoveSuccessor(), 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.
| int 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 the offset that could not be handled directly in MI.
Definition at line 897 of file ARMBaseInstrInfo.cpp.
References llvm::ARMII::AddrMode2, llvm::ARMII::AddrMode3, llvm::ARMII::AddrMode4, llvm::ARMII::AddrMode5, llvm::ARMII::AddrModeMask, llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), llvm::TargetInstrInfo::get(), 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(), Scale, llvm::MachineInstr::setDesc(), llvm::ARM_AM::sub, and llvm::TargetInstrDesc::TSFlags.
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex().
| int llvm::rewriteT2FrameIndex | ( | MachineInstr & | MI, | |
| unsigned | FrameRegIdx, | |||
| unsigned | FrameReg, | |||
| int | Offset, | |||
| const ARMBaseInstrInfo & | TII | |||
| ) |
Definition at line 322 of file Thumb2InstrInfo.cpp.
References llvm::ARMII::AddrMode5, llvm::ARMII::AddrModeMask, llvm::ARMII::AddrModeT2_i12, llvm::ARMII::AddrModeT2_i8, llvm::ARMII::AddrModeT2_so, llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), CountLeadingZeros_32(), llvm::TargetInstrInfo::get(), llvm::ARM_AM::getAM5Offset(), llvm::ARM_AM::getAM5Op(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::ARM_AM::getT2SOImmVal(), immediateOffsetOpcode(), llvm::ISD::INLINEASM, negativeOffsetOpcode(), positiveOffsetOpcode(), llvm::MachineInstr::RemoveOperand(), llvm::ARM_AM::rotr32(), Scale, llvm::MachineInstr::setDesc(), llvm::ARM_AM::sub, and llvm::TargetInstrDesc::TSFlags.
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex().
| uint64_t llvm::RoundUpToAlignment | ( | uint64_t | Value, | |
| uint64_t | Align | |||
| ) | [inline] |
RoundUpToAlignment - Returns the next integer (mod 2**64) that is greater than or equal to
Definition at line 434 of file MathExtras.h.
Referenced by llvm::JITCodeEmitter::emitAlignment(), and llvm::JITCodeEmitter::emitAlignmentWithFill().
| scc_iterator<T> llvm::scc_begin | ( | T | G | ) | [inline] |
Definition at line 188 of file SCCIterator.h.
Referenced by llvm::Type::PromoteAbstractToConcrete().
| scc_iterator<T> llvm::scc_end | ( | T | G | ) | [inline] |
Definition at line 193 of file SCCIterator.h.
Referenced by llvm::Type::PromoteAbstractToConcrete().
| S1Ty llvm::set_difference | ( | const S1Ty & | S1, | |
| const S2Ty & | S2 | |||
| ) | [inline] |
| void llvm::set_intersect | ( | S1Ty & | S1, | |
| const S2Ty & | S2 | |||
| ) | [inline] |
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 E.
| void llvm::set_subtract | ( | S1Ty & | S1, | |
| const S2Ty & | S2 | |||
| ) | [inline] |
set_subtract(A, B) - Compute A := A - B
Definition at line 63 of file SetOperations.h.
References SE.
Referenced by llvm::Linker::LinkInArchive().
| bool llvm::set_union | ( | S1Ty & | S1, | |
| const S2Ty & | S2 | |||
| ) | [inline] |
set_union(A, B) - Compute A := A u B, return whether A changed.
Definition at line 23 of file SetOperations.h.
| bool llvm::SimplifyCFG | ( | BasicBlock * | BB | ) |
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.
WARNING: The entry node of a method may not be simplified.
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.
WARNING: The entry node of a function may not be simplified.
Definition at line 1759 of file SimplifyCFG.cpp.
References llvm::SwitchInst::addCase(), llvm::PHINode::addIncoming(), llvm::SmallVectorImpl< T >::back(), BBI, llvm::BasicBlock::begin(), Changed, llvm::TerminatorInst::clone(), ConstantFoldTerminator(), llvm::SwitchInst::Create(), llvm::BranchInst::Create(), llvm::CallInst::Create(), DeleteDeadBlock(), DOUT, E, llvm::SmallVectorImpl< T >::empty(), llvm::Instruction::eraseFromParent(), EraseTerminatorInstAndDCECond(), FoldBranchToCommonDest(), FoldCondBranchOnPHI(), FoldTwoEntryPHINode(), FoldValueComparisonIntoPredecessors(), llvm::BasicBlock::front(), GatherValueComparisons(), llvm::Function::getBasicBlockList(), llvm::BasicBlock::getContext(), llvm::Value::getContext(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getFirstNonPHI(), llvm::PHINode::getIncomingValueForBlock(), llvm::BasicBlock::getInstList(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getSinglePredecessor(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), HoistThenElseCodeToIf(), II, isTerminatorFirstRelevantInsn(), isValueEqualityComparison(), LI, M, MergeBlockIntoPredecessor(), llvm::User::op_begin(), llvm::User::op_end(), PI, llvm::SmallVectorImpl< T >::pop_back(), llvm::SmallVectorImpl< T >::pop_back_val(), Pred, pred_begin(), pred_end(), llvm::SmallVectorImpl< T >::push_back(), llvm::BasicBlock::removePredecessor(), SE, SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), SimplifyEqualityComparisonWithOnlyPredecessor(), llvm::BasicBlock::size(), llvm::SmallVectorImpl< T >::size(), SpeculativelyExecuteBB(), succ_begin(), succ_end(), std::swap(), TryToSimplifyUncondBranchFromEmptyBlock(), and Values.
Referenced by IterativeSimplifyCFG().
| static bool llvm::SkipBitcodeWrapperHeader | ( | unsigned char *& | BufPtr, | |
| unsigned char *& | BufEnd | |||
| ) | [inline, static] |
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.
Definition at line 87 of file ReaderWriter.h.
References Offset.
Referenced by llvm::BitcodeReader::ParseBitcode().
| static const char* llvm::SPARCCondCodeToString | ( | SPCC::CondCodes | CC | ) | [inline, static] |
Definition at line 86 of file Sparc.h.
References 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_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_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_NE, llvm::SPCC::ICC_NEG, llvm::SPCC::ICC_POS, llvm::SPCC::ICC_VC, llvm::SPCC::ICC_VS, and llvm_unreachable.
| 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 316 of file BasicBlockUtils.cpp.
References llvm::LoopBase< BlockT, LoopT >::addBasicBlockToLoop(), llvm::DominatorTree::addNewBlock(), llvm::DomTreeNodeBase< NodeT >::begin(), llvm::DominatorTree::changeImmediateDominator(), Children, DF, DT, E, llvm::DomTreeNodeBase< NodeT >::end(), llvm::Pass::getAnalysisIfAvailable(), llvm::LoopInfo::getBase(), llvm::LoopInfo::getLoopFor(), llvm::Value::getName(), llvm::DominatorTree::getNode(), L, LI, llvm::BasicBlock::splitBasicBlock(), and llvm::DominanceFrontier::splitBlock().
Referenced by SplitEdge().
| BasicBlock * llvm::SplitBlockPredecessors | ( | BasicBlock * | BB, | |
| BasicBlock *const * | Preds, | |||
| unsigned | NumPreds, | |||
| const char * | Suffix, | |||
| Pass * | P = 0 | |||
| ) |
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 and DominanceFrontier, but no other analyses.
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 and DominanceFrontier, but no other analyses.
Definition at line 358 of file BasicBlockUtils.cpp.
References AA, llvm::PHINode::addIncoming(), llvm::BasicBlock::begin(), llvm::AliasAnalysis::copyValue(), llvm::BasicBlock::Create(), llvm::PHINode::Create(), llvm::BranchInst::Create(), llvm::AliasAnalysis::deleteValue(), DF, llvm::DominatorTree::dominates(), DT, dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::UndefValue::get(), llvm::Pass::getAnalysisIfAvailable(), llvm::BasicBlock::getContext(), llvm::PHINode::getIncomingValueForBlock(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::Value::getType(), llvm::PHINode::hasConstantValue(), llvm::PHINode::removeIncomingValue(), llvm::Value::replaceAllUsesWith(), llvm::DominatorTree::splitBlock(), and llvm::DominanceFrontier::splitBlock().
Referenced by SplitEdgeNicely().
| bool llvm::SplitCriticalEdge | ( | BasicBlock * | Src, | |
| BasicBlock * | Dst, | |||
| Pass * | P = 0, |
|||
| bool | MergeIdenticalEdges = 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 154 of file BasicBlockUtils.h.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), and SplitCriticalEdge().
| bool llvm::SplitCriticalEdge | ( | BasicBlock * | Succ, | |
| pred_iterator | PI, | |||
| Pass * | P = 0 | |||
| ) | [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 141 of file BasicBlockUtils.h.
References llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), MadeChange, and SplitCriticalEdge().
| bool llvm::SplitCriticalEdge | ( | BasicBlock * | BB, | |
| succ_iterator | SI, | |||
| Pass * | P = 0 | |||
| ) | [inline] |
Definition at line 132 of file BasicBlockUtils.h.
References llvm::SuccIterator< Term_, BB_ >::getSuccessorIndex(), llvm::BasicBlock::getTerminator(), and SplitCriticalEdge().
| bool llvm::SplitCriticalEdge | ( | TerminatorInst * | TI, | |
| unsigned | SuccNum, | |||
| Pass * | P = 0, |
|||
| bool | MergeIdenticalEdges = 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 true if the edge was split, false 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".
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 any of them. This returns true if the edge was split, false otherwise. This ensures that all edges to that dest go to one block instead of each going to a different block.
Definition at line 125 of file BreakCriticalEdges.cpp.
References llvm::DominanceFrontierBase::addBasicBlock(), llvm::DominatorTree::addNewBlock(), llvm::SmallVectorImpl< T >::back(), llvm::BasicBlock::begin(), llvm::DominatorTree::changeImmediateDominator(), llvm::SmallVectorImpl< T >::clear(), llvm::BasicBlock::Create(), llvm::BranchInst::Create(), DF, llvm::DominatorTree::dominates(), DT, E, llvm::SmallVectorImpl< T >::empty(), llvm::DominanceFrontierBase::end(), llvm::DominanceFrontierBase::find(), llvm::Pass::getAnalysisIfAvailable(), llvm::LoopInfo::getBase(), llvm::PHINode::getBasicBlockIndex(), llvm::Function::getBasicBlockList(), llvm::Value::getContext(), llvm::LoopInfo::getLoopFor(), llvm::Value::getName(), llvm::DominatorTree::getNode(), llvm::TerminatorInst::getNumSuccessors(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::TerminatorInst::getSuccessor(), isCriticalEdge(), LI, llvm_unreachable, llvm::SmallVectorImpl< T >::pop_back(), pred_begin(), pred_end(), llvm::SmallVectorImpl< T >::push_back(), llvm::DominanceFrontierBase::removeFromFrontier(), llvm::BasicBlock::removePredecessor(), llvm::PHINode::setIncomingBlock(), and llvm::TerminatorInst::setSuccessor().
Referenced by SplitCriticalEdge(), SplitEdge(), and SplitEdgeNicely().
| MachineBasicBlock* llvm::SplitCriticalMachineEdge | ( | MachineBasicBlock * | src, | |
| MachineBasicBlock * | dst | |||
| ) |
Change all the phi functions in dst, so that the incoming block be crit_mbb, instead of src
the first instructions are always phi functions.
Definition at line 23 of file BreakCriticalMachineEdge.h.
References llvm::MachineBasicBlock::addSuccessor(), llvm::MachineBasicBlock::begin(), llvm::MachineFunction::CreateMachineBasicBlock(), llvm::MachineOperand::CreateMBB(), llvm::MachineOperand::CreateReg(), E, llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getBasicBlock(), llvm::TargetMachine::getInstrInfo(), llvm::MachineOperand::getMBB(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getTarget(), llvm::TargetInstrInfo::InsertBranch(), llvm::MachineOperand::isMBB(), MF, llvm::TargetInstrInfo::PHI, llvm::MachineFunction::push_back(), reg, llvm::MachineBasicBlock::removeSuccessor(), llvm::MachineOperand::setMBB(), TII, and TM.
| 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 275 of file BasicBlockUtils.cpp.
References llvm::BasicBlock::begin(), llvm::TerminatorInst::getNumSuccessors(), llvm::BasicBlock::getSinglePredecessor(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), SplitBlock(), and SplitCriticalEdge().
| void llvm::SplitString | ( | const std::string & | Source, | |
| std::vector< std::string > & | OutFragments, | |||
| const char * | 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 48 of file StringExtras.cpp.
References getToken(), and S.
Referenced by llvm::X86TargetLowering::ExpandInlineAsm().
| void llvm::StartPassTimer | ( | llvm::Pass * | P | ) |
If TimingInfo is enabled then start pass timer.
Definition at line 1585 of file PassManager.cpp.
References TheTimeInfo.
Referenced by llvm::LPPassManager::runOnFunction().
| void llvm::StopPassTimer | ( | llvm::Pass * | P | ) |
If TimingInfo is enabled then stop pass timer.
Definition at line 1591 of file PassManager.cpp.
References TheTimeInfo.
Referenced by llvm::LPPassManager::runOnFunction().
| static bool llvm::StringsEqualNoCase | ( | const char * | LHS, | |
| const char * | RHS, | |||
| unsigned | len | |||
| ) | [inline, static] |
StringsEqualNoCase - Return true if the two null-terminated C strings are equal, ignoring
Definition at line 162 of file StringExtras.h.
| static bool llvm::StringsEqualNoCase | ( | const std::string & | LHS, | |
| const char * | RHS | |||
| ) | [inline, static] |
StringsEqualNoCase - Return true if the two strings are equal, ignoring case.
Definition at line 150 of file StringExtras.h.
| static bool llvm::StringsEqualNoCase | ( | const std::string & | LHS, | |
| const std::string & | RHS | |||
| ) | [inline, static] |
StringsEqualNoCase - Return true if the two strings are equal, ignoring case.
Definition at line 140 of file StringExtras.h.
Referenced by llvm::TargetLowering::getRegForInlineAsmConstraint(), and llvm::X86TargetLowering::getRegForInlineAsmConstraint().
| succ_const_iterator llvm::succ_begin | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 139 of file CFG.h.
References llvm::BasicBlock::getTerminator().
Referenced by AddPredecessorToBlock(), CanPropagatePredecessorsForPHIs(), HoistThenElseCodeToIf(), isSafeToHoistInvoke(), isTrivialLoopExitBlockHelper(), SafeToMergeTerminators(), and SimplifyEqualityComparisonWithOnlyPredecessor().
| succ_iterator llvm::succ_begin | ( | BasicBlock * | BB | ) | [inline] |
| 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 108 of file Interval.h.
References llvm::Interval::Successors.
Referenced by llvm::DominanceFrontier::calculate(), ChangeToUnreachable(), llvm::GraphTraits< BasicBlock * >::child_begin(), llvm::GraphTraits< Interval * >::child_begin(), llvm::GraphTraits< const BasicBlock * >::child_begin(), DFSPass(), FindFunctionBackedges(), llvm::DOTGraphTraits< const Function * >::getEdgeSourceLabel(), IsValueFullyAvailableInBlock(), MarkAliveBlocks(), MergeBlockIntoPredecessor(), RemoveUnreachableBlocksFromFn(), SimplifyCFG(), and llvm::BasicBlock::splitBasicBlock().
| succ_const_iterator llvm::succ_end | ( | const BasicBlock * | BB | ) | [inline] |
Definition at line 145 of file CFG.h.
References llvm::BasicBlock::getTerminator().
Referenced by AddPredecessorToBlock(), HoistThenElseCodeToIf(), isSafeToHoistInvoke(), isTrivialLoopExitBlockHelper(), SafeToMergeTerminators(), and SimplifyEqualityComparisonWithOnlyPredecessor().
| succ_iterator llvm::succ_end | ( | BasicBlock * | BB | ) | [inline] |
| Interval::succ_iterator llvm::succ_end | ( | Interval * | I | ) | [inline] |
Definition at line 111 of file Interval.h.
References llvm::Interval::Successors.
Referenced by llvm::DominanceFrontier::calculate(), ChangeToUnreachable(), llvm::GraphTraits< const BasicBlock * >::child_end(), llvm::GraphTraits< BasicBlock * >::child_end(), llvm::GraphTraits< Interval * >::child_end(), DFSPass(), FindFunctionBackedges(), IsValueFullyAvailableInBlock(), MarkAliveBlocks(), MergeBlockIntoPredecessor(), llvm::IntervalIterator< NodeTy, OrigContainer_t, GT, IGT >::operator++(), RemoveUnreachableBlocksFromFn(), SimplifyCFG(), and llvm::BasicBlock::splitBasicBlock().
Definition at line 74 of file OwningPtr.h.
References llvm::OwningPtr< T >::swap().
Referenced by Calculate(), llvm::BitcodeReader::FreeState(), llvm::BitcodeReader::materializeModule(), llvm::BinaryOperator::swapOperands(), llvm::ICmpInst::swapOperands(), and llvm::FCmpInst::swapOperands().
| tier<T1, T2> llvm::tie | ( | T1 & | f, | |
| T2 & | s | |||
| ) | [inline] |
Definition at line 209 of file STLExtras.h.
Referenced by FoldsStackSlotModRef(), llvm::ProgramInfo::getSourceFile(), llvm::TypeMap< llvm::ArrayValType, llvm::ArrayType >::RefineAbstractType(), and RewriteHeapSROALoadUser().
| void llvm::UnescapeString | ( | std::string & | Str | ) |
UnescapeString - Modify the argument string, turning two character sequences like '\' 'n' into '
'. This handles: \' \ and (where num is a 1-3 byte octal value).
UnescapeString - Modify the argument string, turning two character sequences
/// like '\\' 'n' into '\n'. This handles: \e \a \b \f \n \r \t \v \' \ and /// \num (where num is a 1-3 byte octal value). ///
Definition at line 67 of file StringExtras.cpp.
| bool llvm::UnrollLoop | ( | Loop * | L, | |
| unsigned | Count, | |||
| LoopInfo * | LI, | |||
| LPPassManager * | LPM | |||
| ) |
Unroll the given loop by Count. The loop must be in LCSSA form. Returns true if unrolling was succesful, 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.
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.
Definition at line 108 of file UnrollLoop.cpp.
References llvm::LoopBase< BlockT, LoopT >::addBasicBlockToLoop(), llvm::PHINode::addIncoming(), BB, llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::begin(), llvm::MachineBasicBlock::begin(), llvm::SmallPtrSet< PtrType, SmallSize >::begin(), llvm::CallingConv::C, CloneBasicBlock(), ConstantFoldInstruction(), llvm::LoopBase< BlockT, LoopT >::contains(), DEBUG, llvm::LPPassManager::deleteLoopFromQueue(), Dest, DOUT, dyn_cast(), E, llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::end(), llvm::SmallPtrSet< PtrType, SmallSize >::end(), errs(), FoldBlockIntoPredecessor(), llvm::LoopInfo::getBase(), llvm::LoopBase< BlockT, LoopT >::getBlocks(), llvm::Value::getContext(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::PHINode::getIncomingValueForBlock(), llvm::BasicBlock::getInstList(), llvm::LoopBase< BlockT, LoopT >::getLoopLatch(), llvm::LoopBase< BlockT, LoopT >::getLoopPreheader(), llvm::Instruction::getParent(), llvm::Loop::getSmallConstantTripCount(), llvm::Loop::getSmallConstantTripMultiple(), llvm::TerminatorInst::getSuccessor(), llvm::BranchInst::getSuccessor(), llvm::BasicBlock::getTerminator(), GreatestCommonDivisor64(), Header, llvm::SmallPtrSet< PtrType, SmallSize >::insert(), Inst, isInstructionTriviallyDead(), llvm::Loop::isLCSSAForm(), llvm::BranchInst::isUnconditional(), LoopBlocks, NewBlocks, Preheader, RemapInstruction(), llvm::PHINode::removeIncomingValue(), llvm::Value::replaceAllUsesWith(), SE, llvm::BranchInst::setSuccessor(), llvm::TerminatorInst::setSuccessor(), llvm::BranchInst::setUnconditionalDest(), llvm::Value::use_begin(), llvm::Value::use_end(), and VE.
| 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 419 of file AutoUpgrade.cpp.
References llvm::Function::eraseFromParent(), UpgradeIntrinsicCall(), UpgradeIntrinsicFunction(), llvm::Value::use_begin(), and llvm::Value::use_end().
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 231 of file AutoUpgrade.cpp.
References llvm::Function::begin(), llvm::CallingConv::C, llvm::CastInst::Create(), llvm::InsertElementInst::Create(), llvm::CallInst::Create(), llvm::Intrinsic::ctlz, llvm::Intrinsic::ctpop, llvm::Intrinsic::cttz, llvm::Instruction::eraseFromParent(), F, llvm::UndefValue::get(), llvm::ConstantInt::get(), llvm::ConstantVector::get(), llvm::Function::getAttributes(), llvm::CallInst::getCalledFunction(), llvm::CallInst::getCallingConv(), llvm::CastInst::getCastOpcode(), llvm::Value::getContext(), llvm::Type::getDoubleTy(), llvm::Function::getFunctionType(), llvm::Type::getInt32Ty(), llvm::Function::getIntrinsicID(), llvm::Value::getName(), llvm::User::getOperand(), llvm::FunctionType::getParamType(), llvm::Function::getReturnType(), llvm::Value::getType(), llvm::PointerType::getUnqual(), Idx, llvm::CallInst::isTailCall(), llvm_unreachable, Load, llvm::User::op_begin(), llvm::User::op_end(), llvm::AttrListPtr::paramHasAttr(), llvm::Value::replaceAllUsesWith(), llvm::CallInst::setCallingConv(), llvm::CallInst::setTailCall(), llvm::Attribute::SExt, llvm::Value::use_empty(), llvm::Intrinsic::x86_mmx_psll_d, llvm::Intrinsic::x86_mmx_psll_q, llvm::Intrinsic::x86_mmx_psll_w, llvm::Intrinsic::x86_mmx_psra_d, llvm::Intrinsic::x86_mmx_psra_w, llvm::Intrinsic::x86_mmx_psrl_d, llvm::Intrinsic::x86_mmx_psrl_q, and llvm::Intrinsic::x86_mmx_psrl_w.
Referenced by llvm::BitcodeReader::materializeFunction(), llvm::BitcodeReader::materializeModule(), and UpgradeCallsToIntrinsic().
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 216 of file AutoUpgrade.cpp.
References llvm::Intrinsic::getAttributes(), llvm::Function::getIntrinsicID(), llvm::Function::setAttributes(), and UpgradeIntrinsicFunction1().
Referenced by UpgradeCallsToIntrinsic().
| static std::string llvm::UppercaseString | ( | const std::string & | S | ) | [inline, static] |
Definition at line 130 of file StringExtras.h.
| static char* llvm::utohex_buffer | ( | IntTy | X, | |
| char * | BufferEnd | |||
| ) | [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 41 of file StringExtras.h.
References hexdigit(), and Mod.
Referenced by llvm::AsmPrinter::PrintHex(), llvm::AsmPrinter::PrintSLEB128(), llvm::AsmPrinter::PrintULEB128(), utohexstr(), and WriteConstantInt().
| static std::string llvm::utohexstr | ( | uint64_t | X | ) | [inline, static] |
Definition at line 57 of file StringExtras.h.
References utohex_buffer().
Referenced by llvm::MSILWriter::printConstLoad().
| static std::string llvm::utostr | ( | uint64_t | X, | |
| bool | isNeg = false | |||
| ) | [inline, static] |
Definition at line 79 of file StringExtras.h.
References utostr_32().
Referenced by llvm::Dwarf::EmitFrameMoves(), llvm::Archive::fillHeader(), llvm::ISD::ArgFlagsTy::getArgFlagsString(), llvm::MSILWriter::getArrayTypeName(), llvm::Attribute::getAsString(), llvm::EVT::getEVTString(), llvm::MSILWriter::getLabelName(), llvm::Mangler::getMangledName(), llvm::Intrinsic::getName(), llvm::X86ATTAsmPrinter::GetPICBaseSymbol(), llvm::MSILWriter::getPrimitiveTypeName(), llvm::TargetData::getStringRepresentation(), llvm::MSILWriter::getTypePostfix(), getTypePrefix(), llvm::TypeSymbolTable::getUniqueName(), llvm::MSILWriter::getValueName(), IntrinsicParam(), itostr(), llvm::MSILWriter::printBranchToBlock(), llvm::MSILWriter::printExternals(), llvm::MSILWriter::printInvokeInstruction(), llvm::MSILWriter::printLocalVariables(), llvm::MSILWriter::printPtrLoad(), llvm::MSILWriter::printSelectInstruction(), llvm::MSILModule::runOnModule(), and llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal().
| static std::string llvm::utostr_32 | ( | uint32_t | X, | |
| bool | isNeg = false | |||
| ) | [inline, static] |
Definition at line 62 of file StringExtras.h.
Referenced by llvm::X86ATTAsmPrinter::DecorateCygMingName(), llvm::X86IntelAsmPrinter::decorateName(), and utostr().
| bool llvm::verifyFunction | ( | const Function & | F, | |
| VerifierFailureAction | action = AbortProcessAction | |||
| ) |
| F | The function to be verified |
| action | Action to take |
Definition at line 1743 of file Verifier.cpp.
References llvm::GlobalValue::getParent(), and llvm::Function::isDeclaration().
Referenced by LLVMVerifyFunction().
| bool llvm::verifyModule | ( | const Module & | M, | |
| VerifierFailureAction | action = AbortProcessAction, |
|||
| std::string * | ErrorInfo = 0 | |||
| ) |
Check a module for errors.
If there are no errors, the function returns false. If an error is found, the action taken depends on the action parameter. This should only be used for debugging, because it plays games with PassManagers and stuff.
verifyModule - Check a module for errors, printing messages on stderr. Return true if the module is corrupt.
| M | The module to be verified |
| action | Action to take |
| ErrorInfo | Information about failures. |
Definition at line 1759 of file Verifier.cpp.
References llvm::PassManager::add(), and llvm::PassManager::run().
Referenced by LLVMVerifyModule().
| void llvm::ViewGraph | ( | const GraphType & | G, | |
| const std::string & | Name, | |||
| bool | ShortNames = false, |
|||
| const std::string & | Title = "", |
|||
| GraphProgram::Name | Program = GraphProgram::DOT | |||
| ) | [inline] |
ViewGraph - Emit a dot graph, run 'dot', run gv on the postscript file, then cleanup. For use from the debugger.
Definition at line 328 of file GraphWriter.h.
References DisplayGraph(), Filename, llvm::sys::Path::isEmpty(), and WriteGraph().
Referenced by llvm::Function::viewCFG(), llvm::MachineFunction::viewCFG(), llvm::MachineFunction::viewCFGOnly(), llvm::Function::viewCFGOnly(), llvm::SelectionDAG::viewGraph(), llvmc::CompilationGraph::viewGraph(), and llvm::ScheduleDAG::viewGraph().
| void llvm::WriteAsOperand | ( | std::ostream & | , | |
| const MachineBasicBlock * | , | |||
| bool | t | |||
| ) | [inline] |
| void llvm::WriteAsOperand | ( | raw_ostream & | Out, | |
| const Value * | V, | |||
| bool | PrintTy = true, |
|||
| const Module * | Context = 0 | |||
| ) |
Definition at line 1231 of file AsmWriter.cpp.
References AddModuleTypesToPrinter(), getModuleFromVal(), llvm::Value::getType(), llvm::Value::hasName(), NumberedTypes, llvm::TypePrinting::print(), and WriteAsOperandInternal().
| void llvm::WriteAsOperand | ( | std::ostream & | Out, | |
| const Value * | V, | |||
| bool | PrintType, | |||
| const Module * | Context | |||
| ) |
WriteAsOperand - Write the name of the specified value out to the specified ostream. This can be useful when you just want to print int reg126, not the whole instruction that generated it.
Definition at line 1225 of file AsmWriter.cpp.
References OS.
Referenced by llvm::X86ATTAsmPrinter::emitFunctionHeader(), llvm::DOTGraphTraits< const Function * >::getNodeLabel(), operator<<(), llvm::Value::print(), llvm::AliasSet::print(), llvm::SCEVConstant::print(), llvm::ExtAddrMode::print(), llvm::DominanceFrontierBase::print(), llvm::PassManagerPrettyStackEntry::print(), llvm::LoopBase< llvm::MachineBasicBlock, llvm::MachineLoop >::print(), llvm::SCEVUnknown::print(), llvm::Trace::print(), llvm::IVUsers::print(), llvm::SDNode::print_details(), llvm::AsmPrinter::printBasicBlockLabel(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), PrintLoopInfo(), PrintModRefResults(), and PrintResults().
| void llvm::WriteBitcodeToFile | ( | const Module * | M, | |
| raw_ostream & | Out | |||
| ) |
WriteBitcodeToFile - Write the specified module to the specified raw output stream.
WriteBitcodeToFile - Write the specified module to the specified output stream.
Definition at line 1481 of file BitcodeWriter.cpp.
References llvm::sys::Program::ChangeStdoutToBinary(), llvm::raw_ostream::flush(), outs(), llvm::raw_ostream::write(), and WriteBitcodeToStream().
Referenced by LLVMWriteBitcodeToFile().
| void llvm::WriteBitcodeToFile | ( | const Module * | M, | |
| std::ostream & | Out | |||
| ) |
WriteBitcodeToFile - Write the specified module to the specified output stream.
WriteBitcodeToFile - Write the specified module to the specified output stream.
Definition at line 1471 of file BitcodeWriter.cpp.
References llvm::sys::Program::ChangeStdoutToBinary(), cout(), and RawOut.
| void llvm::WriteBitcodeToStream | ( | const Module * | M, | |
| BitstreamWriter & | Stream | |||
| ) |
WriteBitcodeToStream - Write the specified module to the specified raw output stream.
WriteBitcodeToStream - Write the specified module to the specified output stream.
Definition at line 1502 of file BitcodeWriter.cpp.
References llvm::BitstreamWriter::Emit(), EmitDarwinBCHeader(), EmitDarwinBCTrailer(), llvm::BitstreamWriter::getBuffer(), llvm::Module::getTargetTriple(), and WriteModule().
Referenced by WriteBitcodeToFile().
| sys::Path llvm::WriteGraph | ( | const GraphType & | G, | |
| const std::string & | Name, | |||
| bool | ShortNames = false, |
|||
| const std::string & | Title = "" | |||
| ) | [inline] |
Definition at line 291 of file GraphWriter.h.
References llvm::sys::Path::appendComponent(), cerr(), Filename, llvm::sys::Path::GetTemporaryDirectory(), llvm::sys::Path::isEmpty(), llvm::sys::Path::makeUnique(), llvm::SystemZCC::O, and WriteGraph().
| std::ostream& llvm::WriteGraph | ( | std::ostream & | O, | |
| const GraphType & | G, | |||
| bool | ShortNames = false, |
|||
| const std::string & | Name = "", |
|||
| const std::string & | Title = "" | |||
| ) | [inline] |
Definition at line 269 of file GraphWriter.h.
References llvm::GraphWriter< GraphType >::writeFooter(), llvm::GraphWriter< GraphType >::writeHeader(), and llvm::GraphWriter< GraphType >::writeNodes().
Referenced by ViewGraph(), llvmc::CompilationGraph::writeGraph(), and WriteGraph().
| void llvm::WriteTypeSymbolic | ( | raw_ostream & | OS, | |
| const Type * | Ty, | |||
| const Module * | M | |||
| ) |
WriteTypeSymbolic - This attempts to write the specified type as a symbolic type, iff there is an entry in the modules symbol table for the specified type or one of it's component types.
Definition at line 448 of file AsmWriter.cpp.
References AddModuleTypesToPrinter(), NumberedTypes, llvm::TypePrinting::print(), and Printer.
Referenced by llvm::Type::dump(), llvm::AsmPrinter::EmitConstantPool(), and llvm::FindUsedTypes::print().
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst llvm::BitCast |
Definition at line 178 of file InstVisitor.h.
Referenced by llvm::BitCastInst::classof(), llvm::CastInst::Create(), llvm::CastInst::getCastOpcode(), and llvm::Instruction::getOpcodeName().
| const PassInfo *const llvm::BreakCriticalEdgesID = &X |
Definition at line 59 of file BreakCriticalEdges.cpp.
Referenced by llvm::UnifyFunctionExitNodes::getAnalysisUsage().
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst llvm::Call |
Definition at line 186 of file InstVisitor.h.
Referenced by llvm::Instruction::getOpcodeName(), llvm::Instruction::isSafeToSpeculativelyExecute(), and llvm::MSILWriter::printFunctionCall().
Definition at line 40 of file TargetMachine.cpp.
Referenced by llvm::TargetMachine::getCodeModel(), and llvm::TargetMachine::setCodeModel().
Definition at line 30 of file Debug.cpp.
Referenced by getErrorOutputStream(), LowerSTORE(), and llvm::SPUTargetLowering::PerformDAGCombine().
| const PassInfo *const llvm::DemoteRegisterToMemoryID = &X |
Definition at line 124 of file Reg2Mem.cpp.
DisableJumpTables - This flag indicates jump tables should not be generated.
Definition at line 44 of file TargetMachine.cpp.
Referenced by llvm::PPCTargetMachine::addCodeEmitter(), and areJTsAllowed().
| bool llvm::DisablePrettyStackTrace = false |
DisablePrettyStackTrace - Set this to true to disable this module. This might be neccessary if the host application installs its own signal handlers which conflict with the ones installed by this module. Defaults to false.
Definition at line 23 of file PrettyStackTrace.cpp.
Referenced by RegisterCrashPrinter().
DwarfExceptionHandling - This flag indicates that Dwarf exception information should be emitted.
Definition at line 36 of file TargetMachine.cpp.
EnableFastISel - This flag enables fast-path instruction selection which trades away generated code quality in favor of reducing compile time.
Definition at line 31 of file LLVMTargetMachine.cpp.
Referenced by llvm::LLVMTargetMachine::addCommonCodeGenPasses(), llvm::X86TargetMachine::addInstSelector(), and llvm::SelectionDAGISel::runOnMachineFunction().
FiniteOnlyFPMath - This returns true when the -enable-finite-only-fp-math option is specified on the command line. If this returns false (default), the code generator is not allowed to assume that FP arithmetic arguments and results are never NaNs or +-Infs.
Definition at line 30 of file TargetMachine.cpp.
Referenced by FiniteOnlyFPMath().
FloatABIType - This setting is set by -float-abi=xxx option is specfied on the command line. This setting may either be Default, Soft, or Hard. Default selects the target's default behavior. Soft selects the ABI for UseSoftFloat, but does not inidcate that FP hardware may not be used. Such a combination is unfortunately popular (e.g. arm-apple-darwin). Hard presumes that the normal FP ABI is used.
Definition at line 33 of file TargetMachine.cpp.
Referenced by llvm::ARMSubtarget::ARMSubtarget(), llvm::TargetMachine::TargetMachine(), and llvm::X86Subtarget::X86Subtarget().
Definition at line 170 of file InstVisitor.h.
Referenced by llvm::FPToUIInst::classof(), llvm::CastInst::Create(), llvm::CastInst::getCastOpcode(), and llvm::Instruction::getOpcodeName().
Definition at line 174 of file InstVisitor.h.
Referenced by llvm::FPTruncInst::classof(), llvm::CastInst::Create(), llvm::CastInst::getCastOpcode(), and llvm::Instruction::getOpcodeName().
HonorSignDependentRoundingFPMath - This returns true when the -enable-sign-dependent-rounding-fp-math is specified. If this returns false (the default), the code generator is allowed to assume that the rounding behavior is the default (round-to-zero for all floating point to integer conversions, and round-to-nearest for all other arithmetic truncations). If this is enabled (set to true), the code generator must assume that the rounding mode may dynamically change.
Definition at line 31 of file TargetMachine.cpp.
Referenced by HonorSignDependentRoundingFPMath().
| const unsigned int llvm::host_char_bit = 8 |
| const PassInfo *const llvm::InstructionNamerID = &X |
Definition at line 56 of file InstructionNamer.cpp.
| const unsigned int llvm::integerPartWidth |
Initial value:
host_char_bit * static_cast<unsigned int>(sizeof(integerPart))
Definition at line 40 of file APInt.h.
Referenced by llvm::APFloat::convertFromSignExtendedInteger(), llvm::SelectionDAG::getNode(), highHalf(), lostFractionThroughTruncation(), lowBitMask(), lowHalf(), llvm::APFloat::mod(), partAsHex(), partCountForBits(), partLSB(), partMSB(), llvm::APFloat::remainder(), 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 PassInfo *const llvm::LCSSAID = &X |
LessPreciseFPMAD - This flag is enabled when the -enable-fp-mad is specified on the command line. When this flag is off (the default), the code generator is not allowed to generate mad (multiply add) if the result is "less precise" than doing those operations individually.
Definition at line 25 of file TargetMachine.cpp.
Referenced by LessPreciseFPMAD().
Definition at line 158 of file InstVisitor.h.
Referenced by llvm::PIC16TargetLowering::ExpandLoad(), llvm::Instruction::getOpcodeName(), llvm::Instruction::isSafeToSpeculativelyExecute(), llvm::SparcTargetLowering::LowerFormalArguments(), llvm::X86InstrInfo::unfoldMemoryOperand(), and UpgradeIntrinsicCall().
| const PassInfo *const llvm::LoopSimplifyID = &X |
Definition at line 108 of file LoopSimplify.cpp.
| const PassInfo *const llvm::LowerAllocationsID = &X |
Definition at line 77 of file LowerAllocations.cpp.
| const PassInfo *const llvm::LowerInvokePassID = &X |
Definition at line 108 of file LowerInvoke.cpp.
| const PassInfo *const llvm::LowerSwitchID = &X |
Definition at line 89 of file LowerSwitch.cpp.
Referenced by llvm::UnifyFunctionExitNodes::getAnalysisUsage().
Definition at line 146 of file InstVisitor.h.
Referenced by llvm::Instruction::getOpcodeName(), and llvm::Instruction::isLogicalShift().
| const PassInfo *const llvm::MachineDominatorsID = &E |
MachineDominators pass - This pass is a machine dominators analysis pass.
Definition at line 28 of file MachineDominators.cpp.
Referenced by llvm::LiveIntervals::getAnalysisUsage(), llvm::SimpleRegisterCoalescing::getAnalysisUsage(), llvm::DebugLabelFolder::getAnalysisUsage(), and llvm::PHIElimination::getAnalysisUsage().
| const PassInfo *const llvm::MachineLoopInfoID = &X |
MachineLoopInfo pass - This pass is a loop analysis pass.
Definition at line 33 of file MachineLoopInfo.cpp.
Referenced by llvm::LiveIntervals::getAnalysisUsage(), llvm::DebugLabelFolder::getAnalysisUsage(), and llvm::PHIElimination::getAnalysisUsage().
Definition at line 155 of file InstVisitor.h.
Referenced by llvm::Instruction::getOpcodeName(), and llvm::Instruction::isSafeToSpeculativelyExecute().
| const unsigned int llvm::maxExponent = 16383 |
| const unsigned int llvm::maxPowerOfFiveExponent = maxExponent + maxPrecision - 1 |
Definition at line 75 of file APFloat.cpp.
| const unsigned int llvm::maxPowerOfFiveParts |
Initial value:
2 + ((maxPowerOfFiveExponent * 815) / (351 * integerPartWidth))
Definition at line 76 of file APFloat.cpp.
Referenced by powerOf5().
| const unsigned int llvm::maxPrecision = 113 |
Definition at line 74 of file APFloat.cpp.
NoExcessFPPrecision - This flag is enabled when the -disable-excess-fp-precision flag is specified on the command line. When this flag is off (the default), the code generator is allowed to produce results that are "more precise" than IEEE allows. This includes use of FMA-like operations and use of the X86 FP registers without rounding all over the place.
Definition at line 28 of file TargetMachine.cpp.
NoFramePointerElim - This flag is enabled when the -disable-fp-elim is specified on the command line. If the target supports the frame pointer elimination optimization, this option should disable it.
Definition at line 27 of file TargetMachine.cpp.
Referenced by llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::X86RegisterInfo::hasFP(), llvm::MipsRegisterInfo::hasFP(), llvm::ARMBaseRegisterInfo::hasFP(), llvm::BlackfinRegisterInfo::hasFP(), llvm::MSP430RegisterInfo::hasFP(), llvm::XCoreRegisterInfo::hasFP(), llvm::SystemZRegisterInfo::hasFP(), and needsFP().
Definition at line 34 of file TargetMachine.cpp.
NoZerosInBSS - By default some codegens place zero-initialized data to .bss section. This flag disables such behaviour (necessary, e.g. for crt*.o compiling).
Definition at line 35 of file TargetMachine.cpp.
Referenced by isSuitableForBSS().
cl::opt<enum PassDebugLevel> llvm::PassDebugging("debug-pass", cl::Hidden, cl::desc("Print PassManager debugging information"), cl::values(clEnumVal(None,"disable debug output"),clEnumVal(Arguments,"print pass arguments to pass to 'opt'"),clEnumVal(Structure,"print pass structure before run()"),clEnumVal(Executions,"print pass name before it is executed"),clEnumVal(Details,"print pass details when it is executed"),clEnumValEnd)) [static] |
Referenced by llvm::PMTopLevelManager::dumpArguments(), llvm::PMTopLevelManager::dumpPasses(), llvm::PMDataManager::dumpPassInfo(), llvm::PMDataManager::dumpPreservedSet(), llvm::PMDataManager::dumpRequiredSet(), llvm::PMDataManager::removeDeadPasses(), and llvm::PMDataManager::removeNotPreservedAnalysis().
PerformTailCallOpt - This flag is enabled when -tailcallopt is specified on the commandline. When the flag is on, the target will perform tail call optimization (pop the caller's stack) providing it supports it.
Definition at line 41 of file TargetMachine.cpp.
Referenced by CalculateParameterAndLinkageAreaSize(), llvm::PPCRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::TargetLowering::LowerCallTo(), needsFP(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::PPCRegisterInfo::processFunctionBeforeFrameFinalized().
| const PassInfo *const llvm::PHIEliminationID = &X |
PHIElimination pass - 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 41 of file PHIElimination.cpp.
Referenced by llvm::LiveIntervals::getAnalysisUsage(), and llvm::SimpleRegisterCoalescing::getAnalysisUsage().
| const PassInfo *const llvm::PreAllocSplittingID = &X |
Definition at line 207 of file PreAllocSplitting.cpp.
PrintMachineCode - This flag is enabled when the -print-machineinstrs option is specified on the command line, and should enable debugging output from the code generator.
Definition at line 26 of file TargetMachine.cpp.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), llvm::LLVMTargetMachine::addPassesToEmitMachineCode(), and printAndVerify().
| const PassInfo * llvm::ProfileEstimatorPassID = &X |
Definition at line 68 of file ProfileEstimatorPass.cpp.
| const PassInfo *const llvm::PromoteMemoryToRegisterID = &X |
Definition at line 87 of file Mem2Reg.cpp.
Referenced by llvm::UnifyFunctionExitNodes::getAnalysisUsage().
static const bool llvm::pthread_enabled = true [static] |
Definition at line 55 of file Mutex.cpp.
Referenced by llvm::sys::MutexImpl::acquire(), llvm::sys::MutexImpl::MutexImpl(), llvm::sys::RWMutexImpl::reader_acquire(), llvm::sys::RWMutexImpl::reader_release(), llvm::sys::MutexImpl::release(), llvm::sys::RWMutexImpl::RWMutexImpl(), llvm::sys::MutexImpl::tryacquire(), llvm::sys::RWMutexImpl::writer_acquire(), llvm::sys::RWMutexImpl::writer_release(), llvm::sys::MutexImpl::~MutexImpl(), and llvm::sys::RWMutexImpl::~RWMutexImpl().
Definition at line 176 of file InstVisitor.h.
Referenced by llvm::PtrToIntInst::classof(), llvm::CastInst::Create(), llvm::CastInst::getCastOpcode(), and llvm::Instruction::getOpcodeName().
RealignStack - This flag indicates, whether stack should be automatically realigned, if needed.
Definition at line 43 of file TargetMachine.cpp.
Referenced by llvm::X86RegisterInfo::needsStackRealignment().
Definition at line 39 of file TargetMachine.cpp.
Referenced by llvm::TargetMachine::getRelocationModel(), and llvm::TargetMachine::setRelocationModel().
| const PassInfo *const llvm::SimpleRegisterCoalescingID = &X |
SimpleRegisterCoalescing pass. Aggressively coalesces every register copy it can.
Definition at line 76 of file SimpleRegisterCoalescing.cpp.
SjLjExceptionHandling - This flag indicates that SJLJ exception information should be emitted.
Definition at line 37 of file TargetMachine.cpp.
StackAlignment - Override default stack alignment for target.
Definition at line 42 of file TargetMachine.cpp.
Referenced by llvm::X86Subtarget::X86Subtarget().
StrongPHIElim - This flag enables more aggressive PHI elimination wth earlier copy coalescing.
Definition at line 45 of file TargetMachine.cpp.
Referenced by llvm::LiveIntervals::getAnalysisUsage(), and llvm::SimpleRegisterCoalescing::getAnalysisUsage().
| const PassInfo *const llvm::StrongPHIEliminationID = &X |
StrongPHIElimination pass - 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); This pass is still in development
Definition at line 155 of file StrongPHIElimination.cpp.
Referenced by llvm::SimpleRegisterCoalescing::getAnalysisUsage().
Definition at line 15 of file AlphaTargetInfo.cpp.
Referenced by LLVMInitializeAlphaAsmPrinter(), LLVMInitializeAlphaTarget(), and LLVMInitializeAlphaTargetInfo().
Definition at line 15 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmPrinter(), LLVMInitializeARMTarget(), and LLVMInitializeARMTargetInfo().
Definition at line 16 of file BlackfinTargetInfo.cpp.
Referenced by LLVMInitializeBlackfinAsmPrinter(), LLVMInitializeBlackfinTarget(), and LLVMInitializeBlackfinTargetInfo().
Definition at line 15 of file CBackendTargetInfo.cpp.
Referenced by LLVMInitializeCBackendTarget(), and LLVMInitializeCBackendTargetInfo().
Definition at line 15 of file CellSPUTargetInfo.cpp.
Referenced by LLVMInitializeCellSPUAsmPrinter(), LLVMInitializeCellSPUTarget(), and LLVMInitializeCellSPUTargetInfo().
Definition at line 15 of file CppBackendTargetInfo.cpp.
Referenced by LLVMInitializeCppBackendTarget(), and LLVMInitializeCppBackendTargetInfo().
Definition at line 15 of file MipsTargetInfo.cpp.
Referenced by LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsTarget(), and LLVMInitializeMipsTargetInfo().
Definition at line 15 of file MipsTargetInfo.cpp.
Referenced by LLVMInitializeMipsAsmPrinter(), LLVMInitializeMipsTarget(), and LLVMInitializeMipsTargetInfo().
Definition at line 15 of file MSILTargetInfo.cpp.
Referenced by LLVMInitializeMSILTarget(), and LLVMInitializeMSILTargetInfo().
Definition at line 15 of file MSP430TargetInfo.cpp.
Referenced by LLVMInitializeMSP430AsmPrinter(), LLVMInitializeMSP430Target(), and LLVMInitializeMSP430TargetInfo().
Definition at line 15 of file PIC16TargetInfo.cpp.
Referenced by LLVMInitializePIC16AsmPrinter(), LLVMInitializePIC16Target(), and LLVMInitializePIC16TargetInfo().
Definition at line 15 of file PowerPCTargetInfo.cpp.
Referenced by LLVMInitializePowerPCAsmPrinter(), LLVMInitializePowerPCTarget(), and LLVMInitializePowerPCTargetInfo().
Definition at line 15 of file PowerPCTargetInfo.cpp.
Referenced by LLVMInitializePowerPCAsmPrinter(), LLVMInitializePowerPCTarget(), and LLVMInitializePowerPCTargetInfo().
Definition at line 15 of file SparcTargetInfo.cpp.
Referenced by LLVMInitializeSparcAsmPrinter(), LLVMInitializeSparcTarget(), and LLVMInitializeSparcTargetInfo().
Definition at line 15 of file SystemZTargetInfo.cpp.
Referenced by LLVMInitializeSystemZAsmPrinter(), LLVMInitializeSystemZTarget(), and LLVMInitializeSystemZTargetInfo().
Definition at line 15 of file ARMTargetInfo.cpp.
Referenced by LLVMInitializeARMAsmPrinter(), LLVMInitializeARMTarget(), and LLVMInitializeARMTargetInfo().
Definition at line 15 of file X86TargetInfo.cpp.
Referenced by LLVMInitializeX86AsmParser(), LLVMInitializeX86AsmPrinter(), LLVMInitializeX86Target(), and LLVMInitializeX86TargetInfo().
Definition at line 15 of file X86TargetInfo.cpp.
Referenced by LLVMInitializeX86AsmParser(), LLVMInitializeX86AsmPrinter(), LLVMInitializeX86Target(), and LLVMInitializeX86TargetInfo().
Definition at line 15 of file XCoreTargetInfo.cpp.
Referenced by LLVMInitializeXCoreAsmPrinter(), LLVMInitializeXCoreTarget(), and LLVMInitializeXCoreTargetInfo().
| bool llvm::TimePassesIsEnabled = false |
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 1566 of file PassManager.cpp.
Referenced by llvm::DwarfDebug::BeginFunction(), llvm::DwarfException::BeginFunction(), llvm::DwarfDebug::BeginModule(), llvm::DwarfDebug::DwarfDebug(), llvm::DwarfException::DwarfException(), llvm::DwarfException::EndFunction(), llvm::DwarfDebug::EndFunction(), llvm::DwarfDebug::EndModule(), llvm::DwarfException::EndModule(), llvm::DwarfDebug::getOrCreateSourceID(), llvm::DwarfDebug::RecordInlinedFnEnd(), llvm::DwarfDebug::RecordInlinedFnStart(), llvm::DwarfDebug::RecordRegionEnd(), llvm::DwarfDebug::RecordRegionStart(), llvm::DwarfDebug::RecordSourceLine(), llvm::DwarfDebug::RecordVariable(), and llvm::DwarfDebug::RecordVariableScope().
| const PassInfo *const llvm::TwoAddressInstructionPassID = &X |
TwoAddressInstruction pass - This pass reduces two-address instructions to use two operands. This destroys SSA information but it is desired by register allocators.
Definition at line 137 of file TwoAddressInstructionPass.cpp.
Referenced by llvm::LiveIntervals::getAnalysisUsage(), and llvm::SimpleRegisterCoalescing::getAnalysisUsage().
Definition at line 172 of file InstVisitor.h.
Referenced by llvm::UIToFPInst::classof(), llvm::CastInst::Create(), llvm::CastInst::getCastOpcode(), and llvm::Instruction::getOpcodeName().
| const PassInfo *const llvm::UnreachableMachineBlockElimID = &Y |
UnreachableMachineBlockElimination pass - This pass removes unreachable machine basic blocks.
Definition at line 106 of file UnreachableBlockElim.cpp.
Referenced by llvm::LiveVariables::getAnalysisUsage().
UnsafeFPMath - This flag is enabled when the -enable-unsafe-fp-math flag is specified on the command line. When this flag is off (the default), the code generator is not allowed to produce results that are "less precise" than IEEE allows. This includes use of X86 instructions like FSIN and FCOS instead of libcalls. UnsafeFPMath implies FiniteOnlyFPMath and LessPreciseFPMAD.
Definition at line 29 of file TargetMachine.cpp.
Referenced by FiniteOnlyFPMath(), GetNegatedExpression(), llvm::SelectionDAG::getNode(), HonorSignDependentRoundingFPMath(), isNegatibleForFree(), LessPreciseFPMAD(), PerformSELECTCombine(), and llvm::X86TargetLowering::X86TargetLowering().
UnwindTablesMandatory - This flag indicates that unwind tables should be emitted for all functions.
Definition at line 38 of file TargetMachine.cpp.
Referenced by llvm::DwarfException::BeginFunction(), llvm::PPCRegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), and llvm::XCoreRegisterInfo::needsFrameMoves().
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst llvm::UserOp1 |
Definition at line 188 of file InstVisitor.h.
UseSoftFloat - This flag is enabled when the -soft-float flag is specified on the command line. When this flag is on, the code generator will generate libcalls to the software floating point library instead of target FP instructions.
Definition at line 32 of file TargetMachine.cpp.
Referenced by llvm::ARMTargetLowering::ARMTargetLowering(), PerformSTORECombine(), llvm::SystemZTargetLowering::SystemZTargetLowering(), llvm::TargetMachine::TargetMachine(), and llvm::X86TargetLowering::X86TargetLowering().
| BinaryOperator MallocInst LoadInst ZExtInst FPToUIInst UIToFPInst FPTruncInst PtrToIntInst BitCastInst FCmpInst CallInst Instruction llvm::VAArg |
Definition at line 190 of file InstVisitor.h.
Referenced by llvm::VAArgInst::classof(), llvm::Instruction::getOpcodeName(), and llvm::Instruction::isSafeToSpeculativelyExecute().
| bool llvm::VerifyDomInfo = false |
cl::opt<bool,true> llvm::VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo), cl::desc("Verify dominator info (time consuming)")) [static] |
RegisterPass<PointerTracking> llvm::X("pointertracking","Track pointer bounds", false, true) [static] |
Referenced by llvm::ConstantRange::add(), llvm::AliasSetTracker::add(), cast(), llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::ConsiderForLoop(), getCommonSubClass(), llvm::ScalarEvolution::getSignedRange(), llvm::ScalarEvolution::getUnsignedRange(), llvm::SDNode::getVTList(), LLVMInitializePIC16AsmPrinter(), LLVMInitializeXCoreTarget(), llvm::Mangler::Mangler(), llvm::MSILWriter::printConstLoad(), llvm::SetVector< T, llvm::SmallVector< T, N >, llvm::SmallSet< T, N > >::remove(), llvm::PMDataManager::removeDeadPasses(), llvm::LPPassManager::runOnFunction(), llvm::FPPassManager::runOnFunction(), llvm::MPPassManager::runOnModule(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(), and sub_1().
| const int llvm::X86AddrNumOperands = 5 |
Definition at line 400 of file X86InstrInfo.h.
Referenced by llvm::X86InstrInfo::determineREX(), llvm::X86InstrInfo::foldMemoryOperandImpl(), GetInstSizeWithDesc(), llvm::X86InstrInfo::isStoreToStackSlot(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Definition at line 168 of file InstVisitor.h.
Referenced by llvm::ZExtInst::classof(), llvm::CastInst::Create(), llvm::ScalarEvolution::getAnyExtendExpr(), llvm::CastInst::getCastOpcode(), llvm::Instruction::getOpcodeName(), llvm::ScalarEvolution::getSignedRange(), llvm::ScalarEvolution::getUnsignedRange(), and llvm::ISD::ArgFlagsTy::isZExt().