Home
last modified time | relevance | path

Searched refs:ValueAsMetadata (Results 1 – 25 of 66) sorted by relevance

123

/external/llvm/include/llvm/IR/
DMetadata.h312 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
324 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
328 ~ValueAsMetadata() = default;
331 static ValueAsMetadata *get(Value *V);
339 static ValueAsMetadata *getIfExists(Value *V);
371 class ConstantAsMetadata : public ValueAsMetadata {
372 friend class ValueAsMetadata; variable
375 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
379 return ValueAsMetadata::getConstant(C); in get()
382 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h134 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
DMetadata.def77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h325 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
337 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
342 ~ValueAsMetadata() = default;
345 static ValueAsMetadata *get(Value *V);
353 static ValueAsMetadata *getIfExists(Value *V);
385 class ConstantAsMetadata : public ValueAsMetadata {
386 friend class ValueAsMetadata; variable
389 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
393 return ValueAsMetadata::getConstant(C); in get()
397 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h134 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
DMetadata.def77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMetadata.h337 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
349 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
354 ~ValueAsMetadata() = default;
357 static ValueAsMetadata *get(Value *V);
367 static ValueAsMetadata *getIfExists(Value *V);
401 class ConstantAsMetadata : public ValueAsMetadata {
402 friend class ValueAsMetadata; variable
405 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
409 return ValueAsMetadata::getConstant(C); in get()
413 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h143 using TrackingValueAsMetadataRef = TypedTrackingMDRef<ValueAsMetadata>;
DMetadata.def77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GlobalOpt/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
18 ; null, the ValueAsMetadata instance gets replaced by metadata !{}, or
/external/llvm/test/Transforms/GlobalOpt/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
18 ; null, the ValueAsMetadata instance gets replaced by metadata !{}, or
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DCGProfile.cpp92 Vals.push_back(ValueAsMetadata::get(E.first.first)); in addModuleFlags()
93 Vals.push_back(ValueAsMetadata::get(E.first.second)); in addModuleFlags()
/external/llvm/lib/IR/
DMetadata.cpp284 return dyn_cast<ValueAsMetadata>(&MD); in getOrCreate()
290 return dyn_cast<ValueAsMetadata>(&MD); in getIfExists()
296 return dyn_cast<ValueAsMetadata>(&MD); in isReplaceable()
308 ValueAsMetadata *ValueAsMetadata::get(Value *V) { in get()
328 ValueAsMetadata *ValueAsMetadata::getIfExists(Value *V) { in getIfExists()
333 void ValueAsMetadata::handleDeletion(Value *V) { in handleDeletion()
342 ValueAsMetadata *MD = I->second; in handleDeletion()
352 void ValueAsMetadata::handleRAUW(Value *From, Value *To) { in handleRAUW()
371 ValueAsMetadata *MD = I->second; in handleRAUW()
DIntrinsicInst.cpp41 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in getVariableLocation()
DTypeFinder.cpp124 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DMetadata.cpp317 return dyn_cast<ValueAsMetadata>(&MD); in getOrCreate()
323 return dyn_cast<ValueAsMetadata>(&MD); in getIfExists()
329 return dyn_cast<ValueAsMetadata>(&MD); in isReplaceable()
349 ValueAsMetadata *ValueAsMetadata::get(Value *V) { in get()
368 ValueAsMetadata *ValueAsMetadata::getIfExists(Value *V) { in getIfExists()
373 void ValueAsMetadata::handleDeletion(Value *V) { in handleDeletion()
382 ValueAsMetadata *MD = I->second; in handleDeletion()
392 void ValueAsMetadata::handleRAUW(Value *From, Value *To) { in handleRAUW()
409 ValueAsMetadata *MD = I->second; in handleRAUW()
DTypeFinder.cpp125 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
DIntrinsicInst.cpp44 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in getVariableLocation()
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp69 auto TM = dyn_cast<ValueAsMetadata>(MD->getOperand(1)); in extractNumericTypeId()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp342 auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A)); in TEST()
343 auto *MDC = MetadataAsValue::get(Context, ValueAsMetadata::get(&C)); in TEST()
/external/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp342 auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A)); in TEST()
343 auto *MDC = MetadataAsValue::get(Context, ValueAsMetadata::get(&C)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp68 auto TM = dyn_cast<ValueAsMetadata>(MD->getOperand(1)); in extractNumericTypeId()
/external/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp143 if (auto *VAM = ValueAsMetadata::getIfExists(OrigHeaderVal)) { in RewriteUsesOfClonedInstructions()
170 U = MetadataAsValue::get(C, ValueAsMetadata::get(NewVal)); in RewriteUsesOfClonedInstructions()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp73 if (auto *Unwrapped = dyn_cast<ValueAsMetadata>(V->getMetadata())) { in remapInstruction()
80 return Wrapped ? MetadataAsValue::get(C, ValueAsMetadata::get(V)) : V; in remapInstruction()
/external/llvm/lib/CodeGen/
DStackColoring.cpp824 ValueAsMetadata::handleRAUW(FromAI, UndefValue::get(FromAI->getType())); in remapInstructions()
828 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()

123