Home
last modified time | relevance | path

Searched refs:BaseAndOffset (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInlineCost.cpp489 std::pair<Value *, APInt> BaseAndOffset = {nullptr, ZeroOffset}; in visitPHI() local
491 BaseAndOffset = ConstantOffsetPtrs.lookup(V); in visitPHI()
493 if (!C && !BaseAndOffset.first) in visitPHI()
510 if (FirstBaseAndOffset == BaseAndOffset) in visitPHI()
524 FirstBaseAndOffset = BaseAndOffset; in visitPHI()
552 std::pair<Value *, APInt> BaseAndOffset = in canFoldInboundsGEP() local
554 if (!BaseAndOffset.first) in canFoldInboundsGEP()
559 if (!accumulateGEPOffset(cast<GEPOperator>(I), BaseAndOffset.second)) in canFoldInboundsGEP()
563 ConstantOffsetPtrs[&I] = BaseAndOffset; in canFoldInboundsGEP()
625 std::pair<Value *, APInt> BaseAndOffset = in visitBitCast() local
[all …]
/external/llvm/lib/Analysis/
DInlineCost.cpp393 std::pair<Value *, APInt> BaseAndOffset = ConstantOffsetPtrs.lookup(Ptr); in visitGetElementPtr() local
394 if (BaseAndOffset.first) { in visitGetElementPtr()
397 if (!accumulateGEPOffset(cast<GEPOperator>(I), BaseAndOffset.second)) { in visitGetElementPtr()
405 ConstantOffsetPtrs[&I] = BaseAndOffset; in visitGetElementPtr()
442 std::pair<Value *, APInt> BaseAndOffset = in visitBitCast() local
445 if (BaseAndOffset.first) in visitBitCast()
446 ConstantOffsetPtrs[&I] = BaseAndOffset; in visitBitCast()
474 std::pair<Value *, APInt> BaseAndOffset = in visitPtrToInt() local
476 if (BaseAndOffset.first) in visitPtrToInt()
477 ConstantOffsetPtrs[&I] = BaseAndOffset; in visitPtrToInt()
[all …]