Home
last modified time | relevance | path

Searched refs:MemLoc (Results 1 – 15 of 15) sorted by relevance

/openbsd/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util.h26 class MemLoc {
28 explicit MemLoc(int offset_from_aligned = 0);
29 explicit MemLoc(void *const real_addr) : loc_(real_addr) { } in MemLoc() function
30 ~MemLoc();
34 MemLoc(const MemLoc&);
35 void operator = (const MemLoc&);
87 void Read1(const MemLoc &ml, bool expect_race = false) {
89 void Read2(const MemLoc &ml, bool expect_race = false) {
91 void Read4(const MemLoc &ml, bool expect_race = false) {
93 void Read8(const MemLoc &ml, bool expect_race = false) {
[all …]
H A Dtsan_mop.cpp20 MemLoc l; in TEST_F()
33 MemLoc l; in TEST_F()
40 MemLoc l; in TEST_F()
47 MemLoc l; in TEST_F()
54 MemLoc l; in TEST_F()
60 MemLoc l; in TEST_F()
71 MemLoc l; in TEST_F()
90 MemLoc l; in TEST_F()
109 MemLoc l; in TEST_F()
170 MemLoc l; in TEST_F()
[all …]
H A Dtsan_thread.cpp17 MemLoc l; in TEST_F()
28 MemLoc l; in TEST_F()
34 MemLoc l; in TEST_F()
H A Dtsan_test_util_posix.cpp87 MemLoc::MemLoc(int offset_from_aligned) in MemLoc() function in MemLoc
91 MemLoc::~MemLoc() { in ~MemLoc()
421 void ScopedThread::VptrUpdate(const MemLoc &vptr, in VptrUpdate()
422 const MemLoc &new_val, in VptrUpdate()
H A Dtsan_mutex.cpp100 MemLoc l; in TEST_F()
116 MemLoc l; in TEST_F()
132 MemLoc l; in TEST_F()
H A Dtsan_test.cpp21 MemLoc l; in TEST_F()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp254 MemLoc, isLoad, ScanIt, BB, QueryInst, Limit, BatchAA); in getPointerDependencyFrom()
450 if (BatchAA.isMustAlias(ArgLoc, MemLoc)) in getSimplePointerDependencyFrom()
458 AliasResult R = BatchAA.alias(Loc, MemLoc); in getSimplePointerDependencyFrom()
504 AliasResult R = BatchAA.alias(LoadLoc, MemLoc); in getSimplePointerDependencyFrom()
572 AliasResult R = BatchAA.alias(StoreLoc, MemLoc); in getSimplePointerDependencyFrom()
597 if (isa<SelectInst>(Inst) && MemLoc.Ptr == Inst) in getSimplePointerDependencyFrom()
613 ModRefInfo MR = BatchAA.getModRefInfo(Inst, MemLoc); in getSimplePointerDependencyFrom()
616 MR = BatchAA.callCapturesBefore(Inst, MemLoc, &DT); in getSimplePointerDependencyFrom()
673 MemoryLocation MemLoc; in getDependency() local
674 ModRefInfo MR = GetLocation(QueryInst, MemLoc, TLI); in getDependency()
[all …]
H A DAliasSetTracker.cpp318 AliasSet &AliasSetTracker::getAliasSetFor(const MemoryLocation &MemLoc) { in getAliasSetFor() argument
320 Value * const Pointer = const_cast<Value*>(MemLoc.Ptr); in getAliasSetFor()
321 const LocationSize Size = MemLoc.Size; in getAliasSetFor()
322 const AAMDNodes &AAInfo = MemLoc.AATags; in getAliasSetFor()
H A DAliasAnalysis.cpp648 const MemoryLocation &MemLoc, in callCapturesBefore() argument
654 const Value *Object = getUnderlyingObject(MemLoc.Ptr); in callCapturesBefore()
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DStackProtector.cpp176 std::optional<MemoryLocation> MemLoc = MemoryLocation::getOrNone(I); in HasAddressTaken() local
177 if (MemLoc && MemLoc->Size.hasValue() && in HasAddressTaken()
179 TypeSize::getFixed(MemLoc->Size.getValue()))) in HasAddressTaken()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h517 const MemoryLocation &MemLoc,
520 return callCapturesBefore(I, MemLoc, DT, AAQIP);
595 const MemoryLocation &MemLoc, DominatorTree *DT,
662 const MemoryLocation &MemLoc,
664 return AA.callCapturesBefore(I, MemLoc, DT, AAQI);
H A DMemoryDependenceAnalysis.h462 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad,
H A DAliasSetTracker.h353 AliasSet &getAliasSetFor(const MemoryLocation &MemLoc);
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp1078 MemoryLocation MemLoc = *MemLocOpt; in isOperatingOnInvariantMemAt() local
1079 if (!AvailableInvariants.count(MemLoc)) in isOperatingOnInvariantMemAt()
1084 return AvailableInvariants.lookup(MemLoc) <= GenAt; in isOperatingOnInvariantMemAt()
1334 MemoryLocation MemLoc = in processNode() local
1337 if (!AvailableInvariants.count(MemLoc)) in processNode()
1338 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode()
1459 auto MemLoc = MemoryLocation::get(&Inst); in processNode() local
1460 if (!AvailableInvariants.count(MemLoc)) in processNode()
1461 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode()
H A DDeadStoreElimination.cpp420 MemoryLocation MemLoc; in memoryIsNotModifiedBetween() local
422 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween()
424 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween()
426 auto *MemLocPtr = const_cast<Value *>(MemLoc.Ptr); in memoryIsNotModifiedBetween()
457 if (isModSet(AA.getModRefInfo(I, MemLoc.getWithNewPtr(Ptr)))) in memoryIsNotModifiedBetween()