Home
last modified time | relevance | path

Searched refs:ResultVal (Results 1 – 9 of 9) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp2321 Value *ResultVal = in RewriteLoadUserOfWholeAlloca() local
2351 if (SrcField->getType() != ResultVal->getType()) in RewriteLoadUserOfWholeAlloca()
2352 SrcField = new ZExtInst(SrcField, ResultVal->getType(), "", LI); in RewriteLoadUserOfWholeAlloca()
2370 if (!isa<Constant>(ResultVal) || in RewriteLoadUserOfWholeAlloca()
2371 !cast<Constant>(ResultVal)->isNullValue()) in RewriteLoadUserOfWholeAlloca()
2372 ResultVal = BinaryOperator::CreateOr(SrcField, ResultVal, "", LI); in RewriteLoadUserOfWholeAlloca()
2374 ResultVal = SrcField; in RewriteLoadUserOfWholeAlloca()
2379 ResultVal = new TruncInst(ResultVal, LI->getType(), "", LI); in RewriteLoadUserOfWholeAlloca()
2381 LI->replaceAllUsesWith(ResultVal); in RewriteLoadUserOfWholeAlloca()
/external/llvm/lib/Analysis/
DConstantFolding.cpp479 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConstPtr() local
481 ResultVal = RawBytes[BytesLoaded - 1]; in FoldReinterpretLoadFromConstPtr()
483 ResultVal <<= 8; in FoldReinterpretLoadFromConstPtr()
484 ResultVal |= RawBytes[BytesLoaded - 1 - i]; in FoldReinterpretLoadFromConstPtr()
487 ResultVal = RawBytes[0]; in FoldReinterpretLoadFromConstPtr()
489 ResultVal <<= 8; in FoldReinterpretLoadFromConstPtr()
490 ResultVal |= RawBytes[i]; in FoldReinterpretLoadFromConstPtr()
494 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DConstantFolding.cpp557 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConstPtr() local
559 ResultVal = RawBytes[BytesLoaded - 1]; in FoldReinterpretLoadFromConstPtr()
561 ResultVal <<= 8; in FoldReinterpretLoadFromConstPtr()
562 ResultVal |= RawBytes[BytesLoaded - 1 - i]; in FoldReinterpretLoadFromConstPtr()
565 ResultVal = RawBytes[0]; in FoldReinterpretLoadFromConstPtr()
567 ResultVal <<= 8; in FoldReinterpretLoadFromConstPtr()
568 ResultVal |= RawBytes[i]; in FoldReinterpretLoadFromConstPtr()
572 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp659 SVal ResultVal = in evalBinOpLL() local
661 if (Optional<NonLoc> Result = ResultVal.getAs<NonLoc>()) in evalBinOpLL()
664 assert(!ResultVal.getAs<Loc>() && "Loc-Loc ops should not produce Locs"); in evalBinOpLL()
DExprEngine.cpp2108 SVal ResultVal = UnknownVal(); in VisitAtomicExpr() local
2109 State = State->BindExpr(AE, LCtx, ResultVal); in VisitAtomicExpr()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp415 APInt ResultVal = APInt(IntType->getBitWidth(), RawBytes[BytesLoaded-1]); in FoldReinterpretLoadFromConstPtr() local
417 ResultVal <<= 8; in FoldReinterpretLoadFromConstPtr()
418 ResultVal |= RawBytes[BytesLoaded-1-i]; in FoldReinterpretLoadFromConstPtr()
421 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/external/clang/lib/CodeGen/
DCGExpr.cpp1731 llvm::Value *ResultVal = MaskedVal; in EmitStoreThroughBitfieldLValue() local
1738 ResultVal = Builder.CreateShl(ResultVal, HighBits, "bf.result.shl"); in EmitStoreThroughBitfieldLValue()
1739 ResultVal = Builder.CreateAShr(ResultVal, HighBits, "bf.result.ashr"); in EmitStoreThroughBitfieldLValue()
1743 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, in EmitStoreThroughBitfieldLValue()
1745 *Result = EmitFromMemory(ResultVal, Dst.getType()); in EmitStoreThroughBitfieldLValue()
/external/clang/lib/Sema/
DSemaExpr.cpp3312 llvm::APInt ResultVal(Context.getTargetInfo().getLongLongWidth(), 0); in ActOnNumericConstant() local
3313 if (Literal.GetIntegerValue(ResultVal)) in ActOnNumericConstant()
3316 Lit = IntegerLiteral::Create(Context, ResultVal, CookedTy, in ActOnNumericConstant()
3408 llvm::APInt ResultVal(MaxWidth, 0); in ActOnNumericConstant() local
3410 if (Literal.GetIntegerValue(ResultVal)) { in ActOnNumericConstant()
3415 assert(Context.getTypeSize(Ty) == ResultVal.getBitWidth() && in ActOnNumericConstant()
3445 if (ResultVal.isIntN(IntSize)) { in ActOnNumericConstant()
3447 if (!Literal.isUnsigned && ResultVal[IntSize-1] == 0) in ActOnNumericConstant()
3460 if (ResultVal.isIntN(LongSize)) { in ActOnNumericConstant()
3462 if (!Literal.isUnsigned && ResultVal[LongSize-1] == 0) in ActOnNumericConstant()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCStringChecker.cpp1992 SVal ResultVal = SVB.conjureSymbolVal(nullptr, CE, LCtx, C.blockCount()); in evalStdCopyCommon() local
1993 State = State->BindExpr(CE, LCtx, ResultVal); in evalStdCopyCommon()