Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueMapTest.cpp41 ValueMap<TypeParam*, int> VM1; in TYPED_TEST()
47 ValueMap<TypeParam*, int> VM; in TYPED_TEST()
61 ValueMap<TypeParam*, int> VM; in TYPED_TEST()
62 ValueMap<TypeParam*, int> VM2(16); (void)VM2; in TYPED_TEST()
64 ValueMap<TypeParam*, int> VM3(Data, 16); (void)VM3; in TYPED_TEST()
70 typename ValueMap<TypeParam*, int>::iterator I = in TYPED_TEST()
78 const ValueMap<TypeParam*, int> &CVM = VM; in TYPED_TEST()
123 ValueMap<TypeParam*, int> VM; in TYPED_TEST()
148 const ValueMap<TypeParam*, int>& CVM = VM; in TYPED_TEST()
167 ValueMap<TypeParam*, int> VM; in TYPED_TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DValueMap.h85 class ValueMap {
103 explicit ValueMap(unsigned NumInitBuckets = 64)
105 explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)
109 ValueMap(const ValueMap &) = delete;
110 ValueMap(ValueMap &&) = delete;
111 ValueMap &operator=(const ValueMap &) = delete;
112 ValueMap &operator=(ValueMap &&) = delete;
234 return ValueMapCVH(key, const_cast<ValueMap*>(this)); in Wrap()
242 friend class ValueMap<KeyT, ValueT, Config>;
245 using ValueMapT = ValueMap<KeyT, ValueT, Config>;
H A DValueSymbolTable.h51 using ValueMap = StringMap<Value*>;
54 using iterator = ValueMap::iterator;
57 using const_iterator = ValueMap::const_iterator;
135 ValueMap vmap; ///< The map that holds the symbol table.
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h77 DenseMap<const Value *, Register> ValueMap; variable
199 return ValueMap.count(V); in isExportedInst()
212 Register &R = ValueMap[V]; in InitializeRegForValue()
260 DenseMap<const Value*, Register>::const_iterator It = ValueMap.find(PN); in InvalidatePHILiveOutRegInfo()
261 if (It == ValueMap.end()) in InvalidatePHILiveOutRegInfo()
H A DPseudoSourceValue.h161 ValueMap<const GlobalValue *,
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp98 ValueToValueMapTy &ValueMap, in RewriteUsesOfClonedInstructions() argument
117 Value *OrigPreHeaderVal = ValueMap.lookup(OrigHeaderVal); in RewriteUsesOfClonedInstructions()
375 ValueToValueMapTy ValueMap, ValueMapMSSA; in rotateLoop() local
380 InsertNewValueIntoMap(ValueMap, PN, in rotateLoop()
435 RemapInstruction(C, ValueMap, in rotateLoop()
452 InsertNewValueIntoMap(ValueMap, Inst, V); in rotateLoop()
458 InsertNewValueIntoMap(ValueMap, Inst, C); in rotateLoop()
526 cast<Instruction>(ValueMap[*NoAliasDeclInstructions.begin()]); in rotateLoop()
561 RewriteUsesOfClonedInstructions(OrigHeader, OrigPreheader, ValueMap, SE, in rotateLoop()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp290 unsigned PHIReg = ValueMap[&PN]; in set()
355 ValueMap.clear(); in clear()
448 auto It = ValueMap.find(PN); in ComputePHILiveOutRegInfo()
449 if (It == ValueMap.end()) in ComputePHILiveOutRegInfo()
475 assert(ValueMap.count(V) && "V should have been placed in ValueMap when its" in ComputePHILiveOutRegInfo()
477 Register SrcReg = ValueMap[V]; in ComputePHILiveOutRegInfo()
514 assert(ValueMap.count(V) && "V should have been placed in ValueMap when " in ComputePHILiveOutRegInfo()
516 Register SrcReg = ValueMap[V]; in ComputePHILiveOutRegInfo()
565 for (auto &P : ValueMap) { in getValueFromVirtualReg()
/llvm-project-15.0.7/llvm/test/Transforms/Inline/
H A D2010-05-12-ValueMap.ll3 ; This tests for a bug where the inliner kept the functions in a ValueMap after
5 ; a function that was still a key in the ValueMap.
/llvm-project-15.0.7/polly/include/polly/CodeGen/
H A DIslNodeBuilder.h70 ExprBuilder(S, Builder, IDToValue, ValueMap, DL, SE, DT, LI, in IslNodeBuilder()
72 BlockGen(Builder, LI, SE, DT, ScalarMap, EscapeMap, ValueMap, in IslNodeBuilder()
177 ValueMapT ValueMap; variable
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp486 ValueMapType::const_iterator I = ValueMap.find(V); in getValueID()
493 print(dbgs(), ValueMap, "Default"); in dump()
567 ValueMap[Values[CstStart].first] = CstStart+1; in OptimizeConstants()
760 assert(ValueMap.count(VAM->getValue()) && in EnumerateFunctionLocalListMetadata()
871 unsigned &ValueID = ValueMap[V]; in EnumerateValue()
911 ValueMap[V] = Values.size(); in EnumerateValue()
971 if (ValueMap.count(C)) in EnumerateOperandType()
1053 ValueMap[&BB] = BasicBlocks.size(); in incorporateFunction()
1097 assert(ValueMap.count(FnLocalMDVector[i]->getValue()) && in incorporateFunction()
1110 ValueMap.erase(Values[i].first); in purgeFunction()
[all …]
/llvm-project-15.0.7/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()
1112 ValueMap.erase(Values[i].first); in purgeFunction()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h417 LocToValueType &ValueMap; variable
428 MLocIterator(LocToValueType &ValueMap, LocIdx Idx) in MLocIterator() argument
429 : ValueMap(ValueMap), Idx(Idx) {} in MLocIterator()
432 assert(&ValueMap == &Other.ValueMap);
442 value_type operator*() { return value_type(Idx, ValueMap[LocIdx(Idx)]); }
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.h51 typedef ValueMap<const Function*, FuncInfo> FuncInfoMap;
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DIslNodeBuilder.cpp323 LI, SE, S, ValueMap, Values, SCEVs, getBlockGenerator(), nullptr}; in getReferencesInSubtree()
382 ValueMap[I.first] = I.second; in updateValues()
387 auto It = ValueMap.find(Original); in getLatestValue()
388 if (It == ValueMap.end()) in getLatestValue()
731 auto ValueMapCopy = ValueMap; in createForParallel()
748 ValueMap = ValueMapCopy; in createForParallel()
1278 if (ValueMap.count(MA->getAccessInstruction())) in preloadInvariantEquivClass()
1333 ValueMap[MAAccInst] = PreloadVal; in preloadInvariantEquivClass()
1509 InsertLocation, &ValueMap, in generateSCEV()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSplitKit.h320 using ValueMap = DenseMap<std::pair<unsigned, unsigned>, ValueForcePair>; variable
334 ValueMap Values;
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp402 ValueToValueMapTy ValueMap; member in __anon496259980211::IRLinker
536 Mapper(ValueMap, RF_ReuseAndMutateDistinctMDs | RF_IgnoreMissingLocals, in IRLinker()
540 ValueMap.getMDMap() = std::move(SharedMDs); in IRLinker()
546 ~IRLinker() { SharedMDs = std::move(*ValueMap.getMDMap()); } in ~IRLinker()
631 if ((ForIndirectSymbol && ValueMap.lookup(SGV) == New) || in materialize()
1010 auto I = ValueMap.find(SGV); in linkGlobalValueProto()
1011 if (I != ValueMap.end()) in linkGlobalValueProto()
1590 if (ValueMap.find(GV) != ValueMap.end() || in run()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp55 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy;
56 typedef ValueMap<Constant *, Value *> ConstantToValueMapTy;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFLAndersAliasAnalysis.cpp431 DenseMap<Value *, ValueSummary> ValueMap; in populateExternalRelations() local
448 ValueMap[SrcIVal.Val].FromRecords.push_back( in populateExternalRelations()
451 ValueMap[SrcIVal.Val].ToRecords.push_back( in populateExternalRelations()
458 for (const auto &Mapping : ValueMap) { in populateExternalRelations()
H A DCFLGraph.h98 using ValueMap = DenseMap<Value *, ValueInfo>;
100 ValueMap ValueImpls;
110 using const_value_iterator = ValueMap::const_iterator;
/llvm-project-15.0.7/llvm/test/Bitcode/
H A Dfunction-local-metadata.3.5.ll17 ; Assertion failed: (I != ValueMap.end() && "Value not in slotcalculator!"), function getValueID, f…
/llvm-project-15.0.7/llvm/lib/IR/
H A DReplaceConstant.cpp37 ValueMap<ConstantExpr *, Instruction *> Visited; in convertConstantExprsToInstructions()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DFunctionComparator.h62 using ValueNumberMap = ValueMap<GlobalValue *, uint64_t, Config>;
H A DValueMapper.h32 using ValueToValueMapTy = ValueMap<const Value *, WeakTrackingVH>;
/llvm-project-15.0.7/llvm/test/Transforms/MergeFunc/
H A Dcrash2.ll7 ; RAUW on @G which still exists as an entry in the GlobalNumbers ValueMap which
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Dclone-module-2.ll8 ; duplicated) first without being explicitly self-mapped within the ValueMap

12