Home
last modified time | relevance | path

Searched refs:ValueMap (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueMap.h84 class ValueMap {
102 explicit ValueMap(unsigned NumInitBuckets = 64)
104 explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)
108 ValueMap(const ValueMap &) = delete;
109 ValueMap(ValueMap &&) = delete;
110 ValueMap &operator=(const ValueMap &) = delete;
111 ValueMap &operator=(ValueMap &&) = delete;
233 return ValueMapCVH(key, const_cast<ValueMap*>(this)); in Wrap()
241 friend class ValueMap<KeyT, ValueT, Config>;
244 using ValueMapT = ValueMap<KeyT, ValueT, Config>;
H A DValueSymbolTable.h54 using ValueMap = StringMap<Value*>;
56 /// An iterator over a ValueMap.
57 using iterator = ValueMap::iterator;
59 /// A const_iterator over a ValueMap.
60 using const_iterator = ValueMap::const_iterator;
138 ValueMap vmap; ///< The map that holds the symbol table.
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h79 /// ValueMap - Since we emit code for the function a basic block at a time,
82 DenseMap<const Value *, Register> ValueMap; variable
85 /// instruction selection. It is reverted ValueMap. It is computed
209 return ValueMap.count(V); in isExportedInst()
261 // PHIs with no uses have no ValueMap entry.
262 DenseMap<const Value*, Register>::const_iterator It = ValueMap.find(PN);
263 if (It == ValueMap.end())
H A DPseudoSourceValueManager.h19 #include "llvm/IR/ValueMap.h"
33 ValueMap<const GlobalValue *,
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp103 ValueToValueMapTy &ValueMap, in RewriteUsesOfClonedInstructions() argument
122 Value *OrigPreHeaderVal = ValueMap.lookup(OrigHeaderVal); in RewriteUsesOfClonedInstructions()
535 // Begin by walking OrigHeader and populating ValueMap with an entry for in rotateLoop()
538 ValueToValueMapTy ValueMap, ValueMapMSSA; in rotateLoop()
543 InsertNewValueIntoMap(ValueMap, PN, in rotateLoop()
642 RemapDbgRecordRange(M, DbgValueRange, ValueMap, in rotateLoop()
668 RemapDbgRecordRange(M, Range, ValueMap, in rotateLoop()
679 RemapInstruction(C, ValueMap, in rotateLoop()
696 InsertNewValueIntoMap(ValueMap, Inst, V); in rotateLoop()
702 InsertNewValueIntoMap(ValueMap, Ins in rotateLoop()
528 ValueToValueMapTy ValueMap, ValueMapMSSA; rotateLoop() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp288 unsigned PHIReg = ValueMap[&PN]; in set()
353 ValueMap.clear(); in clear()
408 Register &R = ValueMap[V]; in GetLiveOutRegInfo()
454 auto It = ValueMap.find(PN); in ComputePHILiveOutRegInfo()
455 if (It == ValueMap.end()) in ComputePHILiveOutRegInfo()
481 assert(ValueMap.count(V) && "V should have been placed in ValueMap when its" in ComputePHILiveOutRegInfo()
483 Register SrcReg = ValueMap[V]; in ComputePHILiveOutRegInfo()
520 assert(ValueMap.count(V) && "V should have been placed in ValueMap whe
[all...]
H A DFastISel.cpp147 // Enter arguments into ValueMap for uses in non-entry BBs. in lowerArguments()
153 FuncInfo.ValueMap[&*I] = VI->second; in lowerArguments()
245 // in ValueMap because Arguments are given virtual registers regardless in getRegForValue()
342 // Don't cache constant materializations in the general ValueMap. in materializeRegForValue()
356 DenseMap<const Value *, Register>::iterator I = FuncInfo.ValueMap.find(V); in lookUpRegForValue()
357 if (I != FuncInfo.ValueMap.end()) in lookUpRegForValue()
368 Register &AssignedReg = FuncInfo.ValueMap[I]; in updateValueMap()
1785 DenseMap<const Value *, Register>::iterator I = FuncInfo.ValueMap.find(Op0); in selectOperator()
1786 if (I != FuncInfo.ValueMap.end()) in selectOperator()
/freebsd-src/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp523 ValueMapType::const_iterator I = ValueMap.find(V); in print()
524 assert(I != ValueMap.end() && "Value not in slotcalculator!"); in print()
530 print(dbgs(), ValueMap, "Default"); in print()
602 // Rebuild the modified portion of ValueMap.
604 ValueMap[Values[CstStart].first] = CstStart+1; in EnumerateFunctionLocalListMetadata()
797 assert(ValueMap.count(VAM->getValue()) && in organizeMetadata()
908 unsigned &ValueID = ValueMap[V]; in EnumerateValue()
947 ValueMap[V] = Values.size(); in EnumerateType()
1007 if (ValueMap.count(C)) in EnumerateAttributes()
1089 ValueMap[ in incorporateFunction()
[all...]
H A DValueEnumerator.h62 ValueMapType ValueMap; variable
125 /// incorporated function. Their reverse mapping is stored in ValueMap.
/freebsd-src/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp521 ValueMapType::const_iterator I = ValueMap.find(V); in getValueID()
522 assert(I != ValueMap.end() && "Value not in slotcalculator!"); in getValueID()
528 print(dbgs(), ValueMap, "Default"); in dump()
765 assert(ValueMap.count(VAM->getValue()) && in EnumerateFunctionLocalListMetadata()
876 unsigned &ValueID = ValueMap[V]; in EnumerateValue()
916 ValueMap[V] = Values.size(); in EnumerateValue()
975 if (ValueMap.count(C)) in EnumerateOperandType()
1058 ValueMap[&BB] = BasicBlocks.size(); in incorporateFunction()
1099 assert(ValueMap.count(FnLocalMDVector[i]->getValue()) && in incorporateFunction()
1110 /// Remove purged values from the ValueMap in purgeFunction()
[all...]
H A DDXILValueEnumerator.h65 ValueMapType ValueMap; variable
126 /// incorporated function. Their reverse mapping is stored in ValueMap.
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.h51 typedef ValueMap<const Function*, FuncInfo> FuncInfoMap;
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h769 LocToValueType &ValueMap;
780 MLocIterator(LocToValueType &ValueMap, LocIdx Idx)
781 : ValueMap(ValueMap), Idx(Idx) {}
784 assert(&ValueMap == &Other.ValueMap);
794 value_type operator*() { return value_type(Idx, ValueMap[LocIdx(Idx)]); }
/freebsd-src/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp403 /// in DstM. ValueToValueMapTy is a ValueMap, which involves some overhead
406 ValueToValueMapTy ValueMap;
547 Mapper(ValueMap, RF_ReuseAndMutateDistinctMDs | RF_IgnoreMissingLocals, in IRLinker()
551 ValueMap.getMDMap() = std::move(SharedMDs); in IRLinker()
557 ~IRLinker() { SharedMDs = std::move(*ValueMap.getMDMap()); }
639 // ValueMap but the value is different, it means that the value already had a in materialize()
642 if ((ForIndirectSymbol && ValueMap.lookup(SGV) == New) || in materialize()
1029 auto I = ValueMap.find(SGV); in linkGlobalValueProto()
1030 if (I != ValueMap.end()) in linkGlobalValueProto()
1616 if (ValueMap in run()
405 ValueToValueMapTy ValueMap; global() member in __anon3b46d3ba0211::IRLinker
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DSplitKit.h325 using ValueMap = DenseMap<std::pair<unsigned, unsigned>, ValueForcePair>; variable
339 ValueMap Values;
/freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp26 #include "llvm/IR/ValueMap.h"
49 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy;
50 typedef ValueMap<Constant *, Value *> ConstantToValueMapTy;
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionComparator.h62 using ValueNumberMap = ValueMap<GlobalValue *, uint64_t, Config>;
H A DValueMapper.h20 #include "llvm/IR/ValueMap.h"
36 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
142 /// instances of \a ValueMap (one as \a ValueToValueMap, and one with raw \a
145 /// need a new template parameter on \a ValueMap.
H A DCloning.h306 const ValueMap<const Value *, WeakTrackingVH> *VMap = nullptr);
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemorySSAUpdater.h39 #include "llvm/IR/ValueMap.h"
50 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
/freebsd-src/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp96 typedef std::map<const Value *, lldb::addr_t> ValueMap; typedef in InterpreterStackFrame
98 ValueMap m_values;
141 ValueMap::iterator i = m_values.find(value); in SummarizeValue()
440 ValueMap::iterator i = m_values.find(value); in ResolveValue()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp605 Register AssignedReg = FuncInfo.ValueMap[I]; in SelectLoad()
1173 Register AssignedReg = FuncInfo.ValueMap[I]; in PPCMoveToIntReg()
1279 Register AssignedReg = FuncInfo.ValueMap[I]; in SelectBinaryIntOp()
1922 Register AssignedReg = FuncInfo.ValueMap[I]; in SelectIntExt()
/freebsd-src/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp1002 InstrProfSymtab *ValueMap) { in getSize()
1007 uint64_t NewValue = remapValue(V.Value, ValueKind, ValueMap);
896 addValueData(uint32_t ValueKind,uint32_t Site,InstrProfValueData * VData,uint32_t N,InstrProfSymtab * ValueMap) addValueData() argument
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1871 ValueToValueMapTy &ValueMap) { in processBranchOnXOR()
1879 ValueToValueMapTy::iterator I = ValueMap.find(Inst); in addPHINodeEntriesForMappedBlock()
1880 if (I != ValueMap.end()) in addPHINodeEntriesForMappedBlock()
1882 addPHINodeEntriesForMappedBlock(BasicBlock * PHIBB,BasicBlock * OldPred,BasicBlock * NewPred,DenseMap<Instruction *,Value * > & ValueMap) addPHINodeEntriesForMappedBlock() argument
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DAsmWriter.cpp698 /// ValueMap - A mapping of Values to slot numbers.
699 using ValueMap = DenseMap<const Value *, unsigned>;
719 ValueMap mMap;
723 ValueMap fMap;
1203 ValueMap::iterator MI = mMap.find(V); in getMetadataSlot()
1239 ValueMap::iterator FI = fMap.find(V);
692 using ValueMap = DenseMap<const Value *, unsigned>; global() typedef in llvm::SlotTracker

12