Home
last modified time | relevance | path

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

1234

/external/compiler-rt/lib/ubsan/
Dubsan_value.h123 bool isIntegerTy() const { return getKind() == TK_Integer; } in isIntegerTy() function
125 return isIntegerTy() && (TypeInfo & 1); in isSignedIntegerTy()
128 return isIntegerTy() && !(TypeInfo & 1); in isUnsignedIntegerTy()
131 CHECK(isIntegerTy()); in getIntegerBitWidth()
159 CHECK(getType().isIntegerTy()); in isInlineInt()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp211 !FT->getParamType(1)->isIntegerTy() || in callOptimizer()
332 !FT->getParamType(2)->isIntegerTy() || in callOptimizer()
408 !FT->getParamType(2)->isIntegerTy()) in callOptimizer()
451 !FT->getParamType(1)->isIntegerTy(32)) in callOptimizer()
464 if (Len == 0 || !FT->getParamType(1)->isIntegerTy(32))// memchr needs i32. in callOptimizer()
497 !FT->getParamType(1)->isIntegerTy(32)) in callOptimizer()
531 !FT->getReturnType()->isIntegerTy(32) || in callOptimizer()
576 !FT->getReturnType()->isIntegerTy(32) || in callOptimizer()
579 !FT->getParamType(2)->isIntegerTy()) in callOptimizer()
692 !FT->getParamType(2)->isIntegerTy()) in callOptimizer()
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCUtil.cpp97 if (ETy->isIntegerTy(8)) in GetFunctionClass()
116 if (Pte->getElementType()->isIntegerTy(8)) in GetFunctionClass()
129 if (Pte->getElementType()->isIntegerTy(8)) in GetFunctionClass()
133 if (ETy1->isIntegerTy(8)) in GetFunctionClass()
141 if (Pte1->getElementType()->isIntegerTy(8)) in GetFunctionClass()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp149 if (Tp->isIntegerTy()) { in getRandomConstant()
171 if (Tp->isIntegerTy()) { in getRandomValue()
367 case 0: if (Ty->getScalarType()->isIntegerTy()) in Act()
369 case 1: if (Ty->getScalarType()->isIntegerTy()) in Act()
389 if (Ty->isIntegerTy()) { in Act()
391 case 0: if (Ty->isIntegerTy()) in Act()
394 case 1: if (Ty->isIntegerTy()) in Act()
398 case 6: if (Ty->isIntegerTy()) in Act()
508 if (VTy->getScalarType()->isIntegerTy() && in Act()
509 DestTy->getScalarType()->isIntegerTy()) { in Act()
[all …]
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp201 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
204 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
219 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
232 FTy->getParamType(0)->isIntegerTy(32)) { in runFunction()
/external/llvm/lib/IR/
DInstructions.cpp727 assert(getCondition()->getType()->isIntegerTy(1) && in AssertOK()
828 assert(Amt->getType()->isIntegerTy() && in getAISize()
1471 if (!Val->getType()->isVectorTy() || !Index->getType()->isIntegerTy(32)) in isValidOperands()
1518 if (!Index->getType()->isIntegerTy(32)) in isValidOperands()
1571 if (MaskTy == 0 || !MaskTy->getElementType()->isIntegerTy(32)) in isValidOperands()
1785 assert((getType()->isIntegerTy() || (getType()->isVectorTy() && in init()
1786 cast<VectorType>(getType())->getElementType()->isIntegerTy())) && in init()
1799 assert((getType()->isIntegerTy() || (getType()->isVectorTy() && in init()
1800 cast<VectorType>(getType())->getElementType()->isIntegerTy())) && in init()
1814 assert((getType()->isIntegerTy() || in init()
[all …]
DConstants.cpp448 assert(Ty->isIntegerTy(1) && "True must be i1 or vector of i1."); in getTrue()
451 assert(VTy->getElementType()->isIntegerTy(1) && in getTrue()
460 assert(Ty->isIntegerTy(1) && "False must be i1 or vector of i1."); in getFalse()
463 assert(VTy->getElementType()->isIntegerTy(1) && in getFalse()
768 if (CI->getType()->isIntegerTy(8)) { in get()
777 } else if (CI->getType()->isIntegerTy(16)) { in get()
786 } else if (CI->getType()->isIntegerTy(32)) { in get()
795 } else if (CI->getType()->isIntegerTy(64)) { in get()
949 if (CI->getType()->isIntegerTy(8)) { in get()
958 } else if (CI->getType()->isIntegerTy(16)) { in get()
[all …]
DType.cpp58 bool Type::isIntegerTy(unsigned Bitwidth) const { in isIntegerTy() function in Type
59 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy()
159 if (this->isIntegerTy()) in isSizedDerivedType()
653 if (!V->getType()->getScalarType()->isIntegerTy(32)) in indexValid()
726 return ElemTy->isIntegerTy() || ElemTy->isFloatingPointTy() || in isValidElementType()
DConstantFold.cpp164 if (DestTy->isIntegerTy()) in FoldBitCast()
198 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes()
369 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
434 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf()
632 STy->getElementType(0)->isIntegerTy(1)) { in ConstantFoldCastInstruction()
1171 if (C1->getType()->isIntegerTy(1)) { in ConstantFoldBinaryInstruction()
1237 if (!C1->getType()->isIntegerTy(64)) in IdxCompare()
1240 if (!C2->getType()->isIntegerTy(64)) in IdxCompare()
1442 (CE1->getType()->isPointerTy() || CE1->getType()->isIntegerTy())) { in evaluateICmpRelation()
1621 if (C1->getType()->isIntegerTy(1)) { in ConstantFoldCompareInstruction()
[all …]
DVerifier.cpp443 STy->getTypeAtIndex(0u)->isIntegerTy(32) && in visitGlobalVariable()
977 Assert2(BI.getCondition()->getType()->isIntegerTy(1), in visitBranchInst()
1245 Assert1(DestTy->getScalarType()->isIntegerTy(), in visitPtrToIntInst()
1265 Assert1(SrcTy->getScalarType()->isIntegerTy(), in visitIntToPtrInst()
1572 Assert2(ElTy->isIntegerTy(), in visitLoadInst()
1647 Assert2(ElTy->isIntegerTy(), in visitStoreInst()
1669 Assert1(AI.getArraySize()->getType()->isIntegerTy(), in visitAllocaInst()
1682 Assert2(ElTy->isIntegerTy(), in visitAtomicCmpXchgInst()
1706 Assert2(ElTy->isIntegerTy(), in visitAtomicRMWInst()
1935 case IITDescriptor::Integer: return !Ty->isIntegerTy(D.Integer_Width); in VerifyIntrinsicType()
DIRBuilder.cpp44 if (PT->getElementType()->isIntegerTy(8)) in getCastedInt8PtrValue()
/external/llvm/include/llvm/IR/
DType.h194 bool isIntegerTy() const { return getTypeID() == IntegerTyID; } in isIntegerTy() function
197 bool isIntegerTy(unsigned Bitwidth) const;
202 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp297 if (DestPTy->isIntegerTy() || DestPTy->isPointerTy() || in InstCombineLoadCast()
314 (SrcPTy->isIntegerTy() || SrcPTy->isPointerTy() || in InstCombineLoadCast()
459 if (!DestPTy->isIntegerTy() && !DestPTy->isPointerTy()) in InstCombineStoreToCast()
493 if (!SrcPTy->isIntegerTy() && !SrcPTy->isPointerTy()) in InstCombineStoreToCast()
514 if (CastSrcTy->isIntegerTy()) in InstCombineStoreToCast()
516 } else if (CastDstTy->isIntegerTy()) { in InstCombineStoreToCast()
DInstCombineAddSub.cpp829 if (!V->hasOneUse() || !V->getType()->isIntegerTy()) in dyn_castFoldableMul()
902 if (ZI->getSrcTy()->isIntegerTy(1)) in visitAdd()
949 if (I.getType()->isIntegerTy(1)) in visitAdd()
1299 if (I.getType()->isIntegerTy(1)) in visitSub()
1342 if (X->getType()->isIntegerTy(1)) in visitSub()
1347 if (X->getType()->isIntegerTy(1)) in visitSub()
DInstCombinePHI.cpp412 if (PN.getType()->isIntegerTy() && CastSrcTy->isIntegerTy()) { in FoldPHIArgOpIntoPHI()
898 if (PN.getType()->isIntegerTy() && TD && in visitPHINode()
/external/llvm/lib/ExecutionEngine/JIT/
DJIT.cpp406 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
409 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
424 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
436 if (FTy->getParamType(0)->isIntegerTy(32)) { in runFunction()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp128 (FTy->getParamType(FstParam)->isIntegerTy(32) || in getAllocationData()
129 FTy->getParamType(FstParam)->isIntegerTy(64))) && in getAllocationData()
131 FTy->getParamType(SndParam)->isIntegerTy(32) || in getAllocationData()
132 FTy->getParamType(SndParam)->isIntegerTy(64))) in getAllocationData()
DScalarEvolution.cpp342 assert((Op->getType()->isIntegerTy() || Op->getType()->isPointerTy()) && in SCEVTruncateExpr()
343 (Ty->isIntegerTy() || Ty->isPointerTy()) && in SCEVTruncateExpr()
350 assert((Op->getType()->isIntegerTy() || Op->getType()->isPointerTy()) && in SCEVZeroExtendExpr()
351 (Ty->isIntegerTy() || Ty->isPointerTy()) && in SCEVZeroExtendExpr()
358 assert((Op->getType()->isIntegerTy() || Op->getType()->isPointerTy()) && in SCEVSignExtendExpr()
359 (Ty->isIntegerTy() || Ty->isPointerTy()) && in SCEVSignExtendExpr()
419 STy->getElementType(0)->isIntegerTy(1)) { in isAlignOf()
2674 return Ty->isIntegerTy() || Ty->isPointerTy(); in isSCEVable()
2687 if (Ty->isIntegerTy()) in getTypeSizeInBits()
2703 if (Ty->isIntegerTy()) in getEffectiveSCEVType()
[all …]
DScalarEvolutionExpander.cpp1568 assert(Ty->isIntegerTy() && "Can only insert integer induction variables!"); in getOrInsertCanonicalInductionVariable()
1588 if (!lhs->getType()->isIntegerTy() || !rhs->getType()->isIntegerTy()) in width_descending()
1589 return rhs->getType()->isIntegerTy() && !lhs->getType()->isIntegerTy(); in width_descending()
1637 if (Phi->getType()->isIntegerTy() && TTI in replaceCongruentIVs()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp167 assert(V->getType()->isIntegerTy() && "Can't bswap a non-integer type!"); in LowerBSWAP()
263 assert(V->getType()->isIntegerTy() && "Can't ctpop a non-integer type!"); in LowerCTPOP()
548 !CI->getType()->isIntegerTy()) in LowerToByteSwap()
/external/llvm/lib/Transforms/Instrumentation/
DProfilingUtils.cpp86 if (!AI->getType()->isIntegerTy(32)) { in InsertProfilingInitCall()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp96 cast<ArrayType>(Ty)->getElementType()->isIntegerTy(8))); in set()
266 if (!Ty->isIntegerTy() || Ty->isVectorTy()) in ComputePHILiveOutRegInfo()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp505 Ty->isIntegerTy() && !IsVolatile && Offset == 0 && Size >= AllocSize; in handleLoadOrStore()
1806 if (Ty == IRB.getInt8PtrTy() && TargetTy->isIntegerTy(8)) in getNaturalGEPWithOffset()
1888 if (Ptr->getType()->isIntegerTy(8)) { in getAdjustedPtr()
1947 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()
1971 if (V->getType()->isIntegerTy() && Ty->isPointerTy()) in convertValue()
1973 if (V->getType()->isPointerTy() && Ty->isIntegerTy()) in convertValue()
2496 } else if (IntTy && LI.getType()->isIntegerTy()) { in visitLoadInst()
2513 assert(LI.getType()->isIntegerTy() && in visitLoadInst()
2607 assert(V->getType()->isIntegerTy() && in visitStoreInst()
2619 if (IntTy && V->getType()->isIntegerTy()) in visitStoreInst()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1010 if (!I->getOperand(0)->getType()->isIntegerTy(1)) in X86SelectZExt()
1170 if (I->getType()->isIntegerTy(8)) { in X86SelectShift()
1179 } else if (I->getType()->isIntegerTy(16)) { in X86SelectShift()
1188 } else if (I->getType()->isIntegerTy(32)) { in X86SelectShift()
1197 } else if (I->getType()->isIntegerTy(64)) { in X86SelectShift()
1424 if (!MCI.getLength()->getType()->isIntegerTy(SizeWidth)) in X86VisitIntrinsicCall()
1439 if (!MSI.getLength()->getType()->isIntegerTy(SizeWidth)) in X86VisitIntrinsicCall()
1749 if (ArgVal->getType()->isIntegerTy(1) && isa<TruncInst>(ArgVal) && in DoSelectCall()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp372 if (NumArgs >= 1 && !FTy->getParamType(0)->isIntegerTy(32)) in runFunctionAsMain()
374 if (!FTy->getReturnType()->isIntegerTy() && in runFunctionAsMain()
675 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); in getConstantValue()
679 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); in getConstantValue()

1234