Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp550 if (A->getType()->isPointerTy() && !A->hasNoCaptureAttr()) { in addArgumentAttrs()
561 if (!A->getType()->isPointerTy()) in addArgumentAttrs()
801 if (!F->getReturnType()->isPointerTy()) in addNoAliasAttrs()
810 if (F->doesNotAlias(0) || !F->getReturnType()->isPointerTy()) in addNoAliasAttrs()
830 assert(F->getReturnType()->isPointerTy() && in isReturnNonNull()
915 if (!F->getReturnType()->isPointerTy()) in addNonNullAttrs()
939 !F->getReturnType()->isPointerTy()) in addNonNullAttrs()
1017 if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy()) in inferPrototypeAttributes()
1025 if (FTy->getNumParams() != 2 || !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1038 if (FTy->getNumParams() < 2 || !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
[all …]
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp48 FTy->getParamType(1)->isPointerTy() && in runFunction()
49 FTy->getParamType(2)->isPointerTy()) { in runFunction()
63 FTy->getParamType(1)->isPointerTy()) { in runFunction()
/external/llvm/lib/IR/
DFunction.cpp78 if (!getType()->isPointerTy()) return false; in hasNonNullAttr()
91 if (!getType()->isPointerTy()) return false; in hasByValAttr()
99 if (!getType()->isPointerTy()) return false; in hasInAllocaAttr()
105 if (!getType()->isPointerTy()) return false; in hasByValOrInAllocaAttr()
112 assert(getType()->isPointerTy() && "Only pointers have alignments"); in getParamAlignment()
118 assert(getType()->isPointerTy() && in getDereferenceableBytes()
124 assert(getType()->isPointerTy() && in getDereferenceableOrNullBytes()
132 if (!getType()->isPointerTy()) return false; in hasNestAttr()
140 if (!getType()->isPointerTy()) return false; in hasNoAliasAttr()
148 if (!getType()->isPointerTy()) return false; in hasNoCaptureAttr()
[all …]
DValue.cpp425 if (!V->getType()->isPointerTy()) in stripPointerCastsAndOffsets()
461 assert(V->getType()->isPointerTy() && "Unexpected operand type!"); in stripPointerCastsAndOffsets()
482 if (!getType()->isPointerTy()) in stripAndAccumulateInBoundsConstantOffsets()
510 assert(V->getType()->isPointerTy() && "Unexpected operand type!"); in stripAndAccumulateInBoundsConstantOffsets()
DInstructions.cpp498 assert(Source->getType()->isPointerTy() && in createFree()
1191 assert(getOperand(0)->getType()->isPointerTy() && in AssertOK()
1303 assert(getOperand(1)->getType()->isPointerTy() && in AssertOK()
1394 assert(getOperand(0)->getType()->isPointerTy() && in Init()
1453 assert(getOperand(0)->getType()->isPointerTy() && in Init()
1553 if (!CT || CT->isPointerTy()) return nullptr; in getIndexedTypeInternal()
2279 if (SrcTy->isPointerTy()) in isLosslessCast()
2280 return DstTy->isPointerTy(); in isLosslessCast()
2727 if (S->getType()->isPointerTy() && Ty->isIntegerTy()) in CreateBitOrPointerCast()
2729 if (S->getType()->isIntegerTy() && Ty->isPointerTy()) in CreateBitOrPointerCast()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp170 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
171 !FT->getParamType(1)->isPointerTy() || FT->getParamType(2) != SizeTTy) in checkStringCopyLibFuncSignature()
178 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
616 !FT->getParamType(0)->isPointerTy() || in optimizeStrTo()
617 !FT->getParamType(1)->isPointerTy()) in optimizeStrTo()
692 if (FT->getNumParams() != 2 || !FT->getParamType(0)->isPointerTy() || in optimizeStrStr()
693 !FT->getParamType(1)->isPointerTy() || in optimizeStrStr()
694 !FT->getReturnType()->isPointerTy()) in optimizeStrStr()
753 if (FT->getNumParams() != 3 || !FT->getParamType(0)->isPointerTy() || in optimizeMemChr()
756 !FT->getReturnType()->isPointerTy()) in optimizeMemChr()
[all …]
DPromoteMemoryToRegister.cpp391 if (AST && LI->getType()->isPointerTy()) in rewriteSingleStoreAlloca()
484 if (AST && LI->getType()->isPointerTy()) in promoteSingleBlockAlloca()
697 if (AST && PN->getType()->isPointerTy()) in run()
866 if (AST && PN->getType()->isPointerTy()) in QueuePhiNode()
942 if (AST && LI->getType()->isPointerTy()) in RenamePass()
DLoopUtils.cpp620 assert((IK != IK_PtrInduction || StartValue->getType()->isPointerTy()) && in InductionDescriptor()
664 if (!PhiTy->isIntegerTy() && !PhiTy->isPointerTy()) in isInductionPHI()
691 assert(PhiTy->isPointerTy() && "The PHI must be a pointer"); in isInductionPHI()
DBuildLibCalls.cpp348 if (File->getType()->isPointerTy()) in EmitFPutC()
383 if (File->getType()->isPointerTy()) in EmitFPutS()
416 if (File->getType()->isPointerTy()) in EmitFWrite()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerKernelArgs.cpp205 if (LI->getType()->isPointerTy()) { in runOnFunction()
221 if (Arg.getType()->isPointerTy()) { in runOnFunction()
/external/llvm/include/llvm/IR/
DType.h210 bool isPointerTy() const { return getTypeID() == PointerTyID; } in isPointerTy() function
215 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
245 isPointerTy() || isVectorTy(); in isSingleValueType()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp222 if (V->getType()->isPointerTy()) in getRandomPointerValue()
334 if (Val0->getType()->isPointerTy() || in Act()
335 Val1->getType()->isPointerTy()) in Act()
501 if (VTy->isPointerTy()) { in Act()
502 if (!DestTy->isPointerTy()) in Act()
600 if (Val0->getType()->isPointerTy()) return; in Act()
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp890 if (StoredValTy->getScalarType()->isPointerTy() && in CoerceAvailableValueToLoadType()
891 LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
895 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType()
901 if (TypeToCastTo->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
908 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
920 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType()
945 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
1143 if (SrcVal->getType()->getScalarType()->isPointerTy()) in GetStoreValueForLoad()
1703 if (V->getType()->getScalarType()->isPointerTy()) in PerformLoadPRE()
1776 if (V->getType()->getScalarType()->isPointerTy()) in processNonLocalLoad()
[all …]
DIndVarSimplify.cpp198 if (!FromPtr->getType()->isPointerTy() || !ToPtr->getType()->isPointerTy()) in isValidRewrite()
585 if (!PN->getType()->isIntegerTy() && !PN->getType()->isPointerTy()) in rewriteLoopExitValues()
1739 if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy()) in FindLoopCounter()
1813 if (IndVar->getType()->isPointerTy() in genLoopLimit()
1814 && !IVCount->getType()->isPointerTy()) { in genLoopLimit()
1878 Type *LimitTy = IVCount->getType()->isPointerTy() ? in genLoopLimit()
1916 assert(ExitCnt->getType()->isPointerTy() == IndVar->getType()->isPointerTy() in linearFunctionTestReplace()
DMergedLoadStoreMotion.cpp189 if (Inst->getType()->getScalarType()->isPointerTy()) { in INITIALIZE_PASS_DEPENDENCY()
450 if (MD && NewPN->getType()->getScalarType()->isPointerTy()) in getPHIOperand()
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp51 if (A.getType()->isPointerTy()) in runOnFunction()
54 if (I.getType()->isPointerTy()) in runOnFunction()
/external/llvm/lib/Analysis/
DAliasAnalysisEvaluator.cpp139 return V->getType()->isPointerTy() in isInterestingPointer()
153 if (I.getType()->isPointerTy()) // Add all pointer arguments. in runOnFunction()
157 if (I->getType()->isPointerTy()) // Add all pointer instructions. in runOnFunction()
DScalarEvolutionAliasAnalysis.cpp104 if (Last->getType()->isPointerTy()) in GetBaseValue()
DScalarEvolutionExpander.cpp646 if (LHS.second->getType()->isPointerTy() != in operator ()()
647 RHS.second->getType()->isPointerTy()) in operator ()()
648 return LHS.second->getType()->isPointerTy(); in operator ()()
968 if (ExpandTy->isPointerTy()) { in expandIVInc()
1186 bool useSubtract = !ExpandTy->isPointerTy() && Step->isNonConstantNegative(); in getAddRecExprPHILiterally()
1318 !ExpandTy->isPointerTy() && Step->isNonConstantNegative(); in expandAddRecExprLiterally()
1758 if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy()) in replaceCongruentIVs()
DConstantFolding.cpp218 if (DstEltTy->isPointerTy()) { in FoldBitCast()
501 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in ConstantFoldLoadThroughBitcast()
503 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in ConstantFoldLoadThroughBitcast()
715 assert(Ptr->getType()->isPointerTy() && "Not a pointer type"); in StripPtrCastKeepAS()
735 !Ptr->getType()->isPointerTy()) in SymbolicallyEvaluateGEP()
812 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); in SymbolicallyEvaluateGEP()
817 if (ATy->isPointerTy()) { in SymbolicallyEvaluateGEP()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp499 FTy->getParamType(1)->isPointerTy() && in runFunction()
500 FTy->getParamType(2)->isPointerTy()) { in runFunction()
514 FTy->getParamType(1)->isPointerTy()) { in runFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp356 if (NewTy->isPointerTy()) { in combineLoadToNewType()
375 if (NewTy->isPointerTy()) in combineLoadToNewType()
1068 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1129 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst()
1193 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
/external/llvm/include/llvm/Analysis/
DPtrUseVisitor.h207 assert(I.getType()->isPointerTy()); in visitPtr()
DTargetTransformInfoImpl.h58 if (Ty == OpTy || (Ty->isPointerTy() && OpTy->isPointerTy())) in getOperationCost()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp67 if (ParamTy->isPointerTy() && in runOnFunction()
268 if (!User->getType()->isPointerTy()) in collectUsesWithPtrTypes()

1234