Home
last modified time | relevance | path

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

123456

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1239 const QualType IntTy = ACtx.IntTy; in initFunctionSummaries() local
1728 Signature(ArgTypes{IntTy, ConstCharPtrTy, IntTy, IntTy}, in initFunctionSummaries()
1746 "dup2", Signature(ArgTypes{IntTy, IntTy}, RetType{IntTy}), in initFunctionSummaries()
1815 "lockf", Signature(ArgTypes{IntTy, IntTy, Off_tTy}, RetType{IntTy}), in initFunctionSummaries()
2065 Signature(ArgTypes{IntTy, ConstCharPtrTy, IntTy}, RetType{IntTy}), in initFunctionSummaries()
2229 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off_tTy}, in initFunctionSummaries()
2242 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off64_tTy}, in initFunctionSummaries()
2604 Signature(ArgTypes{IntTy, IntTy, IntTy, ConstVoidPtrTy, Socklen_tTy}, in initFunctionSummaries()
2620 Signature(ArgTypes{IntTy, IntTy, IntTy, VoidPtrRestrictTy, in initFunctionSummaries()
2646 Signature(ArgTypes{IntTy, IntTy, IntTy, IntPtrTy}, RetType{IntTy}), in initFunctionSummaries()
[all …]
H A DErrnoModeling.cpp84 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
108 ACtx.getPointerType(ACtx.IntTy); in getErrnoFunc()
166 ACtx.getLValueReferenceType(ACtx.IntTy), C.blockCount(), &ErrnoDecl); in checkBeginFunction()
171 ACtx.IntTy, SVB.makeZeroArrayIndex(), in checkBeginFunction()
214 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue() local
215 return State->getSVal(ErrnoR, IntTy); in getErrnoValue()
237 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue()
/llvm-project-15.0.7/lldb/unittests/SymbolFile/DWARF/
H A DDWARFASTParserClangTests.cpp336 ASSERT_EQ(sizeof(int) * 8, ast.getIntWidth(ast.IntTy)); in TEST_F()
341 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_min), in TEST_F()
343 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_min + 1), in TEST_F()
345 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_min + 2), in TEST_F()
352 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, 0), HasValue("0")); in TEST_F()
353 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, 1), HasValue("1")); in TEST_F()
358 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_max - 2), in TEST_F()
360 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_max - 1), in TEST_F()
362 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_max), in TEST_F()
368 EXPECT_THAT_EXPECTED(ExtractS(ast.IntTy, int_max / 2), in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp16 if (auto *IntTy = dyn_cast<IntegerType>(T)) { in makeConstantsWithType() local
17 uint64_t W = IntTy->getBitWidth(); in makeConstantsWithType()
18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DStoreTest.cpp67 SVal Zero = Builder.makeZeroVal(ASTCtxt.IntTy); in performTest()
68 SVal One = Builder.makeIntVal(1, ASTCtxt.IntTy); in performTest()
73 EXPECT_EQ(Zero, SManager.getBinding(StX0, LX0, ASTCtxt.IntTy)); in performTest()
78 EXPECT_EQ(Zero, SManager.getBinding(StY0, LY0, ASTCtxt.IntTy)); in performTest()
86 EXPECT_EQ(Zero, SManager.getBinding(StZ0, LZ0, ASTCtxt.IntTy)); in performTest()
91 EXPECT_EQ(One, SManager.getBinding(StX1, LX1, ASTCtxt.IntTy)); in performTest()
96 EXPECT_EQ(One, SManager.getBinding(StY1, LY1, ASTCtxt.IntTy)); in performTest()
124 QualType Int = ASTCtxt.IntTy; in performTest()
132 MRManager.getElementRegion(ASTCtxt.IntTy, Zero, CLRegion, ASTCtxt)); in performTest()
H A DSValTest.cpp168 EXPECT_EQ(Context.IntTy, X.getType(Context));
199 expectSameSignAndBitWidth(Context.IntTy, C.getType(Context), Context);
208 QualType Int = Context.IntTy;
239 QualType Int = Context.IntTy;
298 EXPECT_EQ(Context.IntTy, AArrayType->getElementType());
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCUDANV.cpp38 llvm::IntegerType *IntTy, *SizeTy; member in __anona02b07190111::CGNVCUDARuntime
220 IntTy = CGM.IntTy; in CGNVCUDARuntime()
377 llvm::FunctionType::get(IntTy, in emitDeviceStubBodyNew()
544 llvm::ConstantInt::get(IntTy, -1), in makeRegisterGlobalsFn()
553 llvm::Type *VarSizeTy = IntTy; in makeRegisterGlobalsFn()
563 IntTy, IntTy}; in makeRegisterGlobalsFn()
578 VoidTy, {VoidPtrPtrTy, VoidPtrTy, CharPtrTy, CharPtrTy, IntTy, IntTy}, in makeRegisterGlobalsFn()
586 {VoidPtrPtrTy, VoidPtrTy, CharPtrTy, CharPtrTy, IntTy, IntTy, IntTy}, in makeRegisterGlobalsFn()
702 llvm::StructType::get(IntTy, IntTy, VoidPtrTy, VoidPtrTy); in makeModuleCtorFunction()
792 Values.addInt(IntTy, FatMagic); in makeModuleCtorFunction()
[all …]
H A DMicrosoftCXXABI.cpp492 CGM.IntTy, in getBaseClassDescriptorType()
493 CGM.IntTy, in getBaseClassDescriptorType()
494 CGM.IntTy, in getBaseClassDescriptorType()
495 CGM.IntTy, in getBaseClassDescriptorType()
496 CGM.IntTy, in getBaseClassDescriptorType()
511 CGM.IntTy, in getClassHierarchyDescriptorType()
512 CGM.IntTy, in getClassHierarchyDescriptorType()
513 CGM.IntTy, in getClassHierarchyDescriptorType()
527 CGM.IntTy, in getCompleteObjectLocatorType()
528 CGM.IntTy, in getCompleteObjectLocatorType()
[all …]
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor() local
51 auto *Int = llvm::ConstantInt::get(IntTy, IntValue); in initializationPatternFor()
H A DCGDeclCXX.cpp280 getContext().IntTy, /*instanceMethod=*/false, /*chainCall=*/false, in createTLSAtExitStub()
281 {getContext().IntTy}, FunctionType::ExtInfo(), {}, RequiredArgs::All); in createTLSAtExitStub()
285 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub()
293 ImplicitParamDecl IPD(CGM.getContext(), CGM.getContext().IntTy, in createTLSAtExitStub()
296 QualType ResTy = CGM.getContext().IntTy; in createTLSAtExitStub()
312 CGF.Builder.CreateStore(llvm::Constant::getNullValue(CGM.IntTy), in createTLSAtExitStub()
338 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit()
365 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit()
/llvm-project-15.0.7/clang/lib/Driver/
H A DOptionUtils.cpp18 template <typename IntTy>
19 IntTy getLastArgIntValueImpl(const ArgList &Args, OptSpecifier Id, in getLastArgIntValueImpl()
20 IntTy Default, DiagnosticsEngine *Diags, in getLastArgIntValueImpl()
22 IntTy Res = Default; in getLastArgIntValueImpl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp61 &AST.Idents.get("element_count", tok::TokenKind::identifier), AST.IntTy, in defineHLSLVectorAlias()
62 false, AST.getTrivialTypeSourceInfo(AST.IntTy)); in defineHLSLVectorAlias()
64 IntegerLiteral::Create(AST, llvm::APInt(AST.getIntWidth(AST.IntTy), 4), in defineHLSLVectorAlias()
65 AST.IntTy, SourceLocation()); in defineHLSLVectorAlias()
80 AST.IntTy, VK_LValue), in defineHLSLVectorAlias()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DPatternMatch.cpp69 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
108 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
147 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
186 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
209 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
248 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
287 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
326 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
365 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
404 Type *IntTy = IRB.getInt32Ty(); in TEST_F() local
[all …]
H A DConstantsTest.cpp331 Type *IntTy = Type::getInt8Ty(Context); in TEST() local
332 ArrayType *ArrayTy = ArrayType::get(IntTy, 2); in TEST()
333 Constant *A01Vals[2] = {ConstantInt::get(IntTy, 0), in TEST()
334 ConstantInt::get(IntTy, 1)}; in TEST()
356 Type *IntTy = Type::getInt8Ty(Context); in TEST() local
357 Constant *G1 = new GlobalVariable(*M, IntTy, false, in TEST()
359 Constant *G2 = new GlobalVariable(*M, IntTy, false, in TEST()
379 Type *IntTy = Type::getInt32Ty(Context); in TEST() local
380 Type *PtrTy = PointerType::get(IntTy, 0); in TEST()
381 auto *C1 = ConstantInt::get(IntTy, 1); in TEST()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp73 if (auto *IntTy = dyn_cast<IntegerType>(Ty)) { in reduceOperandsOneDeltaPass() local
75 return (isOne(Op) || isZero(Op)) ? nullptr : ConstantInt::get(IntTy, 1); in reduceOperandsOneDeltaPass()
85 if (auto *IntTy = dyn_cast<IntegerType>(VT->getElementType())) in reduceOperandsOneDeltaPass() local
87 ConstantInt::get(IntTy, 1)); in reduceOperandsOneDeltaPass()
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp394 Type *IntTy = I.getType(); in tryToFPToSat() local
397 IntegerType::get(IntTy->getContext(), (*MinC + 1).exactLogBase2() + 1); in tryToFPToSat()
398 if (auto *VecTy = dyn_cast<VectorType>(IntTy)) in tryToFPToSat()
406 SatCost += TTI.getCastInstrCost(Instruction::SExt, SatTy, IntTy, in tryToFPToSat()
411 Instruction::FPToSI, IntTy, FpTy, TTI::CastContextHint::None, in tryToFPToSat()
414 IntrinsicCostAttributes(Intrinsic::smin, IntTy, {IntTy}), in tryToFPToSat()
417 IntrinsicCostAttributes(Intrinsic::smax, IntTy, {IntTy}), in tryToFPToSat()
427 I.replaceAllUsesWith(Builder.CreateSExt(Sat, IntTy)); in tryToFPToSat()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DTypePromotionInMathFnCheck.cpp49 constexpr BuiltinType::Kind IntTy = BuiltinType::Int; in registerMatchers() local
106 pointee(isBuiltinType(IntTy)))))))), in registerMatchers()
129 pointee(isBuiltinType(IntTy)))))))), in registerMatchers()
147 HasBuiltinTyParam(1, IntTy))), in registerMatchers()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp95 Type *IntTy = ST->isPPC64() ? Type::getInt64Ty(V->getContext()) in translate() local
99 return ConstantExpr::getZExt(C, IntTy); in translate()
103 Value *Zero = Constant::getNullValue(IntTy); in translate()
105 PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P); in translate()
117 return new ZExtInst(V, IntTy, "", InstPt); in translate()
/llvm-project-15.0.7/lldb/unittests/Symbol/
H A DTestTypeSystemClang.cpp73 context.hasSameType(GetBasicQualType(eBasicTypeInt), context.IntTy)); in TEST_F()
464 infos.args.push_back(TemplateArgument(m_ast->getASTContext().IntTy)); in TEST_F()
468 m_ast->getASTContext().IntTy)); in TEST_F()
499 m_ast->getASTContext().IntTy.getAsOpaquePtr()); in TEST_F()
600 infos.args = {TemplateArgument(m_ast->getASTContext().IntTy)}; in TEST_F()
634 m_ast->getASTContext().IntTy)); in TEST_F()
640 infos.args.push_back(TemplateArgument(m_ast->getASTContext().IntTy)); in TEST_F()
658 infos.packed_args->args = {TemplateArgument(m_ast->getASTContext().IntTy), in TEST_F()
693 m_ast->getASTContext().IntTy)}; in TEST_F()
704 infos.args = {TemplateArgument(m_ast->getASTContext().IntTy)}; in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DDataLayout.cpp231 template <typename IntTy> static Error getInt(StringRef R, IntTy &Result) { in getInt()
240 template <typename IntTy>
241 static Error getIntInBytes(StringRef R, IntTy &Result) { in getIntInBytes()
242 if (Error Err = getInt<IntTy>(R, Result)) in getIntInBytes()
851 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType() local
853 return VectorType::get(IntTy, VecTy); in getIntPtrType()
854 return IntTy; in getIntPtrType()
873 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType() local
875 return VectorType::get(IntTy, VecTy); in getIndexType()
876 return IntTy; in getIndexType()
H A DVectorBuilder.cpp52 auto *IntTy = Builder.getInt32Ty(); in requestEVL() local
53 return *ConstantInt::get(IntTy, StaticVectorLength.getFixedValue()); in requestEVL()
/llvm-project-15.0.7/clang/unittests/AST/
H A DAttrTest.cpp120 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST()
132 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST()
153 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2133 if (Ty != IntTy) { in extractInteger()
2147 if (Ty != IntTy) { in insertInteger()
2268 IntegerType *IntTy; member in llvm::sroa::AllocaSliceRewriter
2318 IntTy( in AllocaSliceRewriter()
2335 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter()
2367 if (VecTy || IntTy) in visit()
2627 IntTy->getBitWidth()) { in rewriteIntegerStore()
2780 if (VecTy || IntTy) in visitMemSetInst()
2837 } else if (IntTy) { in visitMemSetInst()
2926 !VecTy && !IntTy && in visitMemTransferInst()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DExpectedTypeTest.cpp143 OpaqueType IntTy = *OpaqueType::fromType(astCtx(), typeOf("int_")); in TEST_F() local
144 EXPECT_EQ(fromCompletionResult(decl("returns_int")), IntTy); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp74 Type *IntTy = DL.getIntPtrType(Ptr->getType()); in getBoundsCheckCond() local
75 Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize); in getBoundsCheckCond()
100 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond()

123456