Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPSIntTest.cpp65 TEST(APSIntTest, getExtValue) { in TEST() argument
72 EXPECT_EQ(7, APSInt(APInt(3, 7), true).getExtValue()); in TEST()
73 EXPECT_EQ(-1, APSInt(APInt(3, 7), false).getExtValue()); in TEST()
74 EXPECT_EQ(7, APSInt(APInt(4, 7), true).getExtValue()); in TEST()
75 EXPECT_EQ(7, APSInt(APInt(4, 7), false).getExtValue()); in TEST()
76 EXPECT_EQ(9, APSInt(APInt(4, -7), true).getExtValue()); in TEST()
146 EXPECT_EQ(APSInt("1").getExtValue(), 1); in TEST()
147 EXPECT_EQ(APSInt("-1").getExtValue(), -1); in TEST()
148 EXPECT_EQ(APSInt("0").getExtValue(), 0); in TEST()
149 EXPECT_EQ(APSInt("56789").getExtValue(), 56789); in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp185 InitValue = Evaluation->getInt().getExtValue(); in hasLargeNumIterations()
247 Value = Result.Val.getInt().getExtValue(); in extractValue()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DSingleVarConstantPropagationTest.cpp151 R.Val.getInt().getExtValue()}}} in transfer()
161 R.Val.getInt().getExtValue()}}} in transfer()
H A DMultiVarConstantPropagationTest.cpp162 ? ValueLattice(R.Val.getInt().getExtValue()) in transfer()
175 ? ValueLattice(R.Val.getInt().getExtValue()) in transfer()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousMemoryComparisonCheck.cpp24 CharUnits::fromQuantity(Result.Val.getInt().getExtValue())); in tryEvaluateSizeExpr()
H A DMisplacedWideningCastCheck.cpp74 return LHSWidth + Result.Val.getInt().getExtValue(); in getMaxCalculationWidth()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp206 auto denomExtVal = denomVal.getExtValue(); in CheckAssignmentExpr()
218 (numeratorKnown && (denomExtVal >= Check.maxVal.getExtValue())); in CheckAssignmentExpr()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h89 int64_t getExtValue() const { in getExtValue() function
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp169 Value = N.getExtValue(); in mapEncodedInteger()
/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateBase.cpp105 CharacterLiteral::print(Val.getExtValue(), Kind, Out); in printIntegral()
H A DAPValue.cpp660 int64_t Char64 = Val.getInt().getExtValue(); in TryPrintAsStringLiteral()
H A DExprConstant.cpp9239 MaxLength = N.getExtValue(); in VisitBuiltinCallExpr()
12156 MaxLength = N.getExtValue(); in VisitBuiltinCallExpr()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.cpp398 uint64_t Bits = V.getExtValue(); in printHex()
434 int64_t Val = Constant.Val.getInt().getExtValue(); in printExprValue()
/llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp1749 Dest = MachineOperand::CreateImm(Int.getExtValue()); in parseImmediateOperand()
2360 Offset = (int)Token.integerValue().getExtValue(); in parseCFIOffset()
2669 ShufMask.push_back(Int.getExtValue()); in parseShuffleMaskOperand()
2914 Offset = Token.integerValue().getExtValue(); in parseOffset()
/llvm-project-15.0.7/llvm/lib/Support/
H A DZ3Solver.cpp739 const int64_t BitReprAsSigned = Int.getExtValue(); in mkBitvector()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DTargetInfo.cpp7341 addNVVMMetadata(F, "maxntidx", MaxThreads.getExtValue()); in setTargetAttributes()
7351 addNVVMMetadata(F, "minctasm", MinBlocks.getExtValue()); in setTargetAttributes()
9368 .getExtValue(); in setFunctionDeclAttributes()
9371 .getExtValue(); in setFunctionDeclAttributes()
9397 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setFunctionDeclAttributes()
9400 .getExtValue() in setFunctionDeclAttributes()
H A DCGOpenMPRuntime.cpp6579 DefaultVal = Constant->getExtValue(); in getNumTeamsExprForTargetDirective()
6607 DefaultVal = Constant->getExtValue(); in getNumTeamsExprForTargetDirective()
6836 DefaultVal = Constant->getExtValue(); in getNumThreadsExprForTargetDirective()
6853 DefaultVal = Constant->getExtValue(); in getNumThreadsExprForTargetDirective()
6861 if (Constant->getExtValue() < DefaultVal) { in getNumThreadsExprForTargetDirective()
6862 DefaultVal = Constant->getExtValue(); in getNumThreadsExprForTargetDirective()
11935 unsigned VLEN = VLENVal.getExtValue(); in emitDeclareSimdFunction()
H A DCGDecl.cpp2703 Alignment->EvaluateKnownConstInt(getContext()).getExtValue(); in getOMPAllocateAlignment()
H A DCGDebugInfo.cpp3083 Count = Result.Val.getInt().getExtValue(); in CreateType()
5385 DBuilder.createConstantValueExpression(Init.getInt().getExtValue()); in EmitGlobalVariable()
H A DCGBuiltin.cpp8140 return E->getIntegerConstantExpr(Context)->getExtValue(); in GetIntegerConstantValue()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp2970 int64_t CoprocNo = CoprocNoAP.getExtValue(); in CheckARMCoprocessorImmediate()
4981 int ArgExtValue = Result.getExtValue(); in CheckX86BuiltinTileDuplicate()
15604 CharUnits Offset = EltSize * IdxRes->getExtValue(); in getAlignmentAndOffsetFromBinAddOrSub()
H A DSemaTemplate.cpp3563 auto Nth = std::next(Ts.pack_begin(), Index.getExtValue()); in checkBuiltinTemplateIdType()
H A DSemaOpenMP.cpp16291 DSAStack->setAssociatedLoops(Result.getExtValue()); in VerifyPositiveIntegerConstantInClause()
16293 DSAStack->setAssociatedLoops(Result.getExtValue()); in VerifyPositiveIntegerConstantInClause()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp4159 result->EvalData.intVal = val.getExtValue(); in evaluateExpr()
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp4320 Result.assign(S.getExtValue()); in parseMDField()