Home
last modified time | relevance | path

Searched refs:VariableIdx (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp503 Value *VariableIdx = GEP->getOperand(i); in EvaluateGEPOffsetExpression() local
533 if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) { in EvaluateGEPOffsetExpression()
534 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression()
535 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression()
537 return VariableIdx; in EvaluateGEPOffsetExpression()
556 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression()
557 if (VariableIdx->getType() != IntPtrTy) in EvaluateGEPOffsetExpression()
558 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, in EvaluateGEPOffsetExpression()
561 return IC.Builder->CreateAdd(VariableIdx, OffsetVal, "offset"); in EvaluateGEPOffsetExpression()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp545 Value *VariableIdx = GEP->getOperand(i); in EvaluateGEPOffsetExpression() local
576 if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) { in EvaluateGEPOffsetExpression()
577 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression()
579 return VariableIdx; in EvaluateGEPOffsetExpression()
598 if (VariableIdx->getType() != IntPtrTy) in EvaluateGEPOffsetExpression()
599 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, in EvaluateGEPOffsetExpression()
602 return IC.Builder->CreateAdd(VariableIdx, OffsetVal, "offset"); in EvaluateGEPOffsetExpression()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp487 Value *VariableIdx = GEP->getOperand(i); in evaluateGEPOffsetExpression() local
518 if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) { in evaluateGEPOffsetExpression()
519 VariableIdx = IC.Builder.CreateTrunc(VariableIdx, IntPtrTy); in evaluateGEPOffsetExpression()
521 return VariableIdx; in evaluateGEPOffsetExpression()
540 if (VariableIdx->getType() != IntPtrTy) in evaluateGEPOffsetExpression()
541 VariableIdx = IC.Builder.CreateIntCast(VariableIdx, IntPtrTy, in evaluateGEPOffsetExpression()
544 return IC.Builder.CreateAdd(VariableIdx, OffsetVal, "offset"); in evaluateGEPOffsetExpression()