Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp589 C.getLocationContext(), C.getASTContext().IntTy, in apply()
1663 const QualType IntTy = ACtx.IntTy; in initFunctionSummaries() local
1669 const QualType IntPtrTy = getPointerTy(IntTy); // int * in initFunctionSummaries()
1687 const RangeInt IntMax = BVF.getMaxValue(IntTy).getLimitedValue(); in initFunctionSummaries()
1831 "isalnum", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
1853 "isalpha", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
1867 "isascii", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
1877 "isblank", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
1887 "iscntrl", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
1898 "isdigit", Signature(ArgTypes{IntTy}, RetType{IntTy}), in initFunctionSummaries()
[all …]
H A DErrnoModeling.cpp89 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
128 ACtx.getLValueReferenceType(ACtx.IntTy), C.blockCount(), &ErrnoDecl); in checkBeginFunction()
133 ACtx.IntTy, SVB.makeZeroArrayIndex(), in checkBeginFunction()
177 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue() local
178 return State->getSVal(ErrnoR, IntTy); in getErrnoValue()
200 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue()
247 NonLoc ZeroVal = SVB.makeZeroVal(C.getASTContext().IntTy).castAs<NonLoc>(); in setErrnoForStdFailure()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp21 if (auto *IntTy = dyn_cast<IntegerType>(T)) { in makeConstantsWithType() local
22 uint64_t W = IntTy->getBitWidth(); in makeConstantsWithType()
23 Cs.push_back(ConstantInt::get(IntTy, 0)); in makeConstantsWithType()
24 Cs.push_back(ConstantInt::get(IntTy, 1)); in makeConstantsWithType()
25 Cs.push_back(ConstantInt::get(IntTy, 42)); in makeConstantsWithType()
26 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
27 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
28 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
29 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
30 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp94 IntegerType *IntTy = cast<IntegerType>(FPToI->getType()); in expandFPToI() local
105 A1 = Builder.CreateZExt(A0, IntTy); in expandFPToI()
108 A1 = Builder.CreateSExt(A0, IntTy); in expandFPToI()
128 ConstantInt::getSigned(Builder.getInt32Ty(), -1), IntTy); in expandFPToI()
130 Builder.CreateShl(ConstantInt::getSigned(IntTy, 1), in expandFPToI()
131 ConstantInt::getSigned(IntTy, BitWidth - 1)); in expandFPToI()
164 Value *Sign = Builder.CreateSelect(PosOrNeg, ConstantInt::getSigned(IntTy, 1), in expandFPToI()
165 ConstantInt::getSigned(IntTy, -1)); in expandFPToI()
180 IntTy, -static_cast<int64_t>(ExponentBias + BitWidth))); in expandFPToI()
182 Add1, ConstantInt::getSigned(IntTy, -static_cast<int64_t>(BitWidth))); in expandFPToI()
[all …]
H A DExpandLargeDivRem.cpp102 auto *IntTy = dyn_cast<IntegerType>(I.getType()->getScalarType()); in runImpl() local
103 if (!IntTy || IntTy->getIntegerBitWidth() <= MaxLegalDivRemBitWidth) in runImpl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp40 llvm::IntegerType *IntTy, *SizeTy; member in __anon2162a9e90111::CGNVCUDARuntime
226 IntTy = CGM.IntTy; in CGNVCUDARuntime()
236 llvm::FunctionType::get(IntTy, Params, false), in getSetupArgumentFn()
244 llvm::FunctionType::get(IntTy, PtrTy, false), "hipLaunchByPtr"); in getLaunchFn()
247 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, PtrTy, false), in getLaunchFn()
382 llvm::FunctionType::get(IntTy, in emitDeviceStubBodyNew()
469 llvm::Constant *Zero = llvm::ConstantInt::get(IntTy, 0); in emitDeviceStubBodyLegacy()
559 PtrTy, PtrTy, PtrTy, PtrTy, IntTy, in makeRegisterGlobalsFn()
562 llvm::FunctionType::get(IntTy, RegisterFuncParams, false), in makeRegisterGlobalsFn()
578 llvm::ConstantInt::get(IntTy, -1), in makeRegisterGlobalsFn()
[all …]
H A DMicrosoftCXXABI.cpp347 getContext().IntTy); in adjustCallArgsForDestructorThunk()
370 llvm::UndefValue::get(CGM.IntTy)); in getAddrOfVirtualDisplacementMap()
371 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); in getAddrOfVirtualDisplacementMap()
380 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); in getAddrOfVirtualDisplacementMap()
387 llvm::ArrayType *VDispMapTy = llvm::ArrayType::get(CGM.IntTy, Map.size()); in getAddrOfVirtualDisplacementMap()
507 return CGM.IntTy; in getImageRelativeType()
515 CGM.IntTy, in getBaseClassDescriptorType()
516 CGM.IntTy, in getBaseClassDescriptorType()
517 CGM.IntTy, in getBaseClassDescriptorType()
518 CGM.IntTy, in getBaseClassDescriptorType()
[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.cpp287 getContext().IntTy, FnInfoOpts::None, {getContext().IntTy}, in createTLSAtExitStub()
292 llvm::FunctionType::get(CGM.IntTy, {CGM.IntTy}, true); in createTLSAtExitStub()
300 ImplicitParamDecl IPD(CGM.getContext(), CGM.getContext().IntTy, in createTLSAtExitStub()
303 QualType ResTy = CGM.getContext().IntTy; in createTLSAtExitStub()
319 CGF.Builder.CreateStore(llvm::Constant::getNullValue(CGM.IntTy), in createTLSAtExitStub()
355 llvm::FunctionType::get(IntTy, dtorStub->getType(), false); in registerGlobalDtorWithAtExit()
382 llvm::FunctionType::get(IntTy, {dtorStub->getType()}, /*isVarArg=*/false); in unregisterGlobalDtorWithUnAtExit()
H A DCGObjCMac.cpp175 llvm::IntegerType *ShortTy, *IntTy, *LongTy; member in __anonb5e682970111::ObjCCommonTypesHelper
449 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncEnterFn()
458 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncExitFn()
1967 llvm::Type *PTy = llvm::ArrayType::get(CGM.IntTy, 0); in getNSConstantStringClassRef()
2002 llvm::StructType::create({CGM.UnqualPtrTy, CGM.Int8PtrTy, CGM.IntTy}, in GenerateConstantNSString()
2028 Fields.addInt(CGM.IntTy, StringLength); in GenerateConstantNSString()
3136 values.addInt(ObjCTypes.IntTy, size); in EmitProtocolExtension()
3281 values.addInt(ObjCTypes.IntTy, propertySize); in EmitPropertyList()
3282 values.addInt(ObjCTypes.IntTy, Properties.size()); in EmitPropertyList()
3379 Values.addInt(ObjCTypes.IntTy, Size); in GenerateCategory()
[all …]
H A DCGObjCGNU.cpp140 llvm::IntegerType *IntTy; member in __anonbab9bb100111::CGObjCGNU
278 Fields.addInt(IntTy, count); in PushPropertyListHeader()
282 Fields.addInt(IntTy, td.getTypeSizeInBits(PropertyMetadataTy) / in PushPropertyListHeader()
820 SlotStructTy = llvm::StructType::get(PtrTy, PtrTy, PtrTy, IntTy, IMPTy); in CGObjCGNUstep()
1191 MethodList.addInt(IntTy, Methods.size()); in GenerateProtocolMethodList()
1194 MethodList.addInt(IntTy, td.getTypeSizeInBits(ObjCMethodDescTy) / in GenerateProtocolMethodList()
1705 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1709 CGF.Builder.CreateAlignedLoad(IntTy, IvarOffsetPointer, Align); in EmitIvarOffset()
1836 ivarListBuilder.addInt(IntTy, ivar_count); in GenerateClass()
1862 llvm::Constant *OffsetValue = llvm::ConstantInt::get(IntTy, Offset); in GenerateClass()
[all …]
H A DCGBlocks.cpp496 elementTypes.push_back(CGM.IntTy); /* total size */ in initializeForBlockHeader()
497 elementTypes.push_back(CGM.IntTy); /* align */ in initializeForBlockHeader()
528 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader()
529 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader()
860 addHeaderField(llvm::ConstantInt::get(IntTy, flags.getBitMask()), in EmitBlockLiteral()
862 addHeaderField(llvm::ConstantInt::get(IntTy, 0), getIntSize(), in EmitBlockLiteral()
866 llvm::ConstantInt::get(IntTy, blockInfo.BlockSize.getQuantity()), in EmitBlockLiteral()
869 llvm::ConstantInt::get(IntTy, blockInfo.BlockAlign.getQuantity()), in EmitBlockLiteral()
1143 {IntTy, IntTy, getOpenCLRuntime().getGenericVoidPointerType()}); in getGenericBlockLiteralType()
1159 IntTy, IntTy, VoidPtrTy, BlockDescPtrTy); in getGenericBlockLiteralType()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1484 Type *IntTy = getIntTy(B, TLI); in emitStrChr() local
1485 return emitLibCall(LibFunc_strchr, CharPtrTy, {CharPtrTy, IntTy}, in emitStrChr()
1486 {Ptr, ConstantInt::get(IntTy, C)}, B, TLI); in emitStrChr()
1492 Type *IntTy = getIntTy(B, TLI); in emitStrNCmp() local
1495 LibFunc_strncmp, IntTy, in emitStrNCmp()
1564 Type *IntTy = getIntTy(B, TLI); in emitMemChr() local
1567 {VoidPtrTy, IntTy, SizeTTy}, in emitMemChr()
1574 Type *IntTy = getIntTy(B, TLI); in emitMemRChr() local
1577 {VoidPtrTy, IntTy, SizeTTy}, in emitMemRChr()
1584 Type *IntTy = getIntTy(B, TLI); in emitMemCmp() local
[all …]
H A DAMDGPUEmitPrintf.cpp34 if (auto IntTy = dyn_cast<IntegerType>(Ty)) { in fitArgInto64Bits() local
35 switch (IntTy->getBitWidth()) { in fitArgInto64Bits()
344 Type *IntTy = Type::getIntNTy(Builder.getContext(), IntVal.getBitWidth()); in processConstantStringArg() local
345 WhatToStore.push_back(ConstantInt::get(IntTy, IntVal)); in processConstantStringArg()
357 if (auto IntTy = dyn_cast<IntegerType>(Ty)) { in processNonStringArg() local
358 if (IntTy->getBitWidth() < 64) { in processNonStringArg()
H A DRelLookupTableConverter.cpp146 IntegerType *IntTy = cast<IntegerType>(Index->getType()); in convertToRelLookupTable() local
148 Builder.CreateShl(Index, ConstantInt::get(IntTy, 2), "reltable.shift"); in convertToRelLookupTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp96 Type *IntTy = ST->isPPC64() ? Type::getInt64Ty(V->getContext()) in translate() local
102 Value *Zero = Constant::getNullValue(IntTy); in translate()
104 PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P->getIterator()); in translate()
115 return IRB.CreateZExt(V, IntTy); in translate()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp247 template <typename IntTy> static Error getInt(StringRef R, IntTy &Result) { in getInt()
256 template <typename IntTy>
257 static Error getIntInBytes(StringRef R, IntTy &Result) { in getIntInBytes()
258 if (Error Err = getInt<IntTy>(R, Result)) in getIntInBytes()
887 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType() local
889 return VectorType::get(IntTy, VecTy); in getIntPtrType()
890 return IntTy; in getIntPtrType()
914 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType() local
916 return VectorType::get(IntTy, VecTy); in getIndexType()
917 return IntTy; in getIndexType()
H A DVectorBuilder.cpp50 auto *IntTy = Builder.getInt32Ty(); in requestEVL() local
51 return *ConstantInt::get(IntTy, StaticVectorLength.getFixedValue()); in requestEVL()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2443 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() local
2444 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable()
2445 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable()
2474 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger() local
2476 DL.getTypeStoreSize(IntTy).getFixedValue() && in extractInteger()
2480 ShAmt = 8 * (DL.getTypeStoreSize(IntTy).getFixedValue() - in extractInteger()
2486 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2488 if (Ty != IntTy) { in extractInteger()
2497 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger() local
2499 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp444 &AST.Idents.get("element_count", tok::TokenKind::identifier), AST.IntTy, in defineHLSLVectorAlias()
445 false, AST.getTrivialTypeSourceInfo(AST.IntTy)); in defineHLSLVectorAlias()
446 llvm::APInt Val(AST.getIntWidth(AST.IntTy), 4); in defineHLSLVectorAlias()
447 TemplateArgument Default(AST, llvm::APSInt(std::move(Val)), AST.IntTy, in defineHLSLVectorAlias()
450 AST, SemaPtr->getTrivialTemplateArgumentLoc(Default, AST.IntTy, in defineHLSLVectorAlias()
465 AST.IntTy, VK_LValue), in defineHLSLVectorAlias()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp374 Type *IntTy = I.getType(); in tryToFPToSat() local
377 IntegerType::get(IntTy->getContext(), (*MinC + 1).exactLogBase2() + 1); in tryToFPToSat()
378 if (auto *VecTy = dyn_cast<VectorType>(IntTy)) in tryToFPToSat()
386 SatCost += TTI.getCastInstrCost(Instruction::SExt, IntTy, SatTy, in tryToFPToSat()
391 Instruction::FPToSI, IntTy, FpTy, TTI::CastContextHint::None, in tryToFPToSat()
394 IntrinsicCostAttributes(Intrinsic::smin, IntTy, {IntTy}), in tryToFPToSat()
397 IntrinsicCostAttributes(Intrinsic::smax, IntTy, {IntTy}), in tryToFPToSat()
407 I.replaceAllUsesWith(Builder.CreateSExt(Sat, IntTy)); in tryToFPToSat()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DMips.cpp112 llvm::IntegerType *IntTy = in CoerceToIntArgs() local
117 ArgList.push_back(IntTy); in CoerceToIntArgs()
386 llvm::Type *IntTy = (OrigTy->isIntegerType() ? ValTy : CGF.IntPtrTy); in EmitVAArg() local
387 llvm::Value *V = CGF.Builder.CreateTrunc(Promoted, IntTy); in EmitVAArg()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h248 Type *IntTy = IntegerType::get(RowIdx->getType()->getContext(), MaxWidth); variable
249 RowIdx = B.CreateZExt(RowIdx, IntTy);
250 ColumnIdx = B.CreateZExt(ColumnIdx, IntTy);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp512 return Ctx.IntTy; in getScalarArgType()
518 return Ctx.IntTy; in getScalarArgType()
531 return Ctx.IntTy; in getScalarArgType()
533 return ArgType(Ctx.IntTy, "__int32"); in getScalarArgType()
550 : ArgType(Ctx.IntTy, "__int32"); in getScalarArgType()
616 return ArgType::PtrTo(Ctx.IntTy); in getScalarArgType()
673 return Ctx.IntTy; in getScalarArgType()

123456