Home
last modified time | relevance | path

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

123

/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXAsmPrinter.cpp1035 const PointerType *PTy = GVar->getType(); in printModuleLevelGV() local
1036 Type *ETy = PTy->getElementType(); in printModuleLevelGV()
1155 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV()
1179 if ((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1180 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) { in printModuleLevelGV()
1193 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV()
1211 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1212 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && in printModuleLevelGV()
1345 const PointerType *PTy = GVar->getType(); in emitPTXGlobalVariable() local
1346 Type *ETy = PTy->getElementType(); in emitPTXGlobalVariable()
[all …]
HDNVPTXLowerAlloca.cpp69 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); in runOnBasicBlock() local
70 auto ETy = PTy->getElementType(); in runOnBasicBlock()
HDNVPTXAsmPrinter.h161 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local
163 if (PTy && PTy->getAddressSpace() != 0) { in print()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonCommonGEP.cpp177 Type *PTy; // Type of the pointer operand. member
179 GepNode() : Flags(0), Parent(0), Idx(0), PTy(0) {} in GepNode()
180 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode()
239 if (GN.PTy->isStructTy()) { in operator <<()
240 StructType *STy = cast<StructType>(GN.PTy); in operator <<()
242 OS << GN.PTy->getStructName(); in operator <<()
247 OS << *GN.PTy; in operator <<()
345 N->PTy = PtrOp->getType(); in processGepInst()
379 Nx->PTy = PtrTy; in processGepInst()
488 ID.AddPointer(N->PTy); in node_hash()
[all …]
/NextBSD/contrib/llvm/lib/Analysis/
HDScalarEvolutionExpander.cpp377 PointerType *PTy, in expandAddToGEP() argument
380 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP()
390 Type *IntPtrTy = DL.getIntPtrType(PTy); in expandAddToGEP()
483 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP()
564 if (V->getType() != PTy) in expandAddToGEP()
565 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP()
695 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local
708 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
709 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local
718 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, expand(Op)); in visitAddExpr()
[all …]
HDLazyValueInfo.cpp633 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
634 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
661 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
662 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDCloneModule.cpp71 auto *PTy = cast<PointerType>(I->getType()); in CloneModule() local
72 auto *GA = GlobalAlias::create(PTy, I->getLinkage(), I->getName(), New); in CloneModule()
/NextBSD/contrib/llvm/lib/IR/
HDModule.cpp231 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local
232 if (GVTy != PTy) in getOrInsertGlobal()
233 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
HDConstantFold.cpp109 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local
111 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast()
117 Type *ElTy = PTy->getElementType(); in FoldBitCast()
135 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast()
383 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local
384 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
386 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
387 PTy->getAddressSpace()), in getFoldedSizeOf()
448 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local
449 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf()
[all …]
HDGlobals.cpp261 PointerType *PTy = Aliasee->getType(); in create() local
262 return create(PTy, Link, Name, Aliasee); in create()
HDVerifier.cpp498 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local
499 Assert(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable()
1367 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in VerifyParameterAttrs() local
1369 if (!PTy->getElementType()->isSized(&Visited)) { in VerifyParameterAttrs()
2626 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local
2627 Assert(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst()
2653 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local
2654 Assert(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst()
2655 Type *ElTy = PTy->getElementType(); in visitStoreInst()
2682 PointerType *PTy = AI.getType(); in visitAllocaInst() local
[all …]
HDType.cpp94 if (const PointerType *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo() local
96 return PTy->getAddressSpace() == OtherPTy->getAddressSpace(); in canLosslesslyBitCastTo()
/NextBSD/contrib/llvm/lib/Transforms/ObjCARC/
HDARCInstKind.cpp97 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { in GetFunctionClass() local
98 Type *ETy = PTy->getElementType(); in GetFunctionClass()
134 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local
135 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCalls.cpp1474 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local
1475 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite()
1699 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local
1700 if (PTy != (*AI)->getType()) { in transformConstExprCastCall()
1703 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall()
1704 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); in transformConstExprCastCall()
1790 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local
1791 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline()
1937 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline()
1938 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDTargetInfo.cpp1292 llvm::Type *PTy = in EmitVAArg() local
1294 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
3152 llvm::Type *PTy = in EmitVAArg() local
3154 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
3260 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); in EmitVAArg() local
3261 llvm::Value *Result1 = Builder.CreateIntToPtr(OurReg, PTy); in EmitVAArg()
3275 llvm::Value *Result2 = Builder.CreateIntToPtr(OverflowAreaAsInt, PTy); in EmitVAArg()
3284 llvm::PHINode *Result = CGF.Builder.CreatePHI(PTy, 2, "vaarg.addr"); in EmitVAArg()
3875 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); in EmitVAArg() local
3876 return Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
[all …]
HDCGDeclCXX.cpp161 llvm::PointerType *PTy = llvm::PointerType::get(LTy, ExpectedAddrSpace); in EmitCXXGlobalVarDeclInit() local
162 DeclPtr = llvm::ConstantExpr::getAddrSpaceCast(DeclPtr, PTy); in EmitCXXGlobalVarDeclInit()
HDCodeGenTypes.cpp424 const PointerType *PTy = cast<PointerType>(Ty); in ConvertType() local
425 QualType ETy = PTy->getPointeeType(); in ConvertType()
HDCGCall.cpp1589 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local
1590 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList()
1591 RetAttrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList()
1593 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList()
1684 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local
1685 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList()
1686 Attrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList()
1688 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList()
HDCGBuiltin.cpp1823 llvm::Type *PTy = FTy->getParamType(i); in EmitBuiltinExpr() local
1824 if (PTy != ArgValue->getType()) { in EmitBuiltinExpr()
1825 assert(PTy->canLosslesslyBitCastTo(FTy->getParamType(i)) && in EmitBuiltinExpr()
1827 ArgValue = Builder.CreateBitCast(ArgValue, PTy); in EmitBuiltinExpr()
5689 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); in EmitAArch64BuiltinExpr() local
5690 Ops[1] = Builder.CreateBitCast(Ops[1], PTy); in EmitAArch64BuiltinExpr()
5691 llvm::Type *Tys[2] = { VTy, PTy }; in EmitAArch64BuiltinExpr()
5719 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); in EmitAArch64BuiltinExpr() local
5720 llvm::Type *Tys[2] = { VTy, PTy }; in EmitAArch64BuiltinExpr()
5774 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy); in EmitAArch64BuiltinExpr() local
[all …]
HDCodeGenModule.cpp1653 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetOrCreateLLVMFunction() local
1654 return llvm::ConstantExpr::getBitCast(F, PTy); in GetOrCreateLLVMFunction()
1862 llvm::PointerType *PTy = in GetAddrOfGlobalVar() local
1866 return GetOrCreateLLVMGlobal(MangledName, PTy, D); in GetAddrOfGlobalVar()
2736 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetAddrOfConstantString() local
2737 V = llvm::ConstantExpr::getBitCast(GV, PTy); in GetAddrOfConstantString()
2743 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); in GetAddrOfConstantString() local
2744 GV = CreateRuntimeVariable(PTy, str); in GetAddrOfConstantString()
2746 V = llvm::ConstantExpr::getGetElementPtr(PTy, GV, Zeros); in GetAddrOfConstantString()
/NextBSD/contrib/llvm/lib/CodeGen/
HDGlobalMerge.cpp478 auto *PTy = cast<PointerType>(GEP->getType()); in doMerge() local
479 GlobalAlias::create(PTy, Linkage, Name, GEP, &M); in doMerge()
/NextBSD/contrib/llvm/include/llvm/Analysis/
HDScalarEvolutionExpander.h223 PointerType *PTy, Type *Ty, Value *V);
/NextBSD/contrib/llvm/lib/Bitcode/Reader/
HDBitcodeReader.cpp2528 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants() local
2529 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), in parseConstants()
2553 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants() local
2554 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), in parseConstants()
3010 if (auto *PTy = dyn_cast<PointerType>(Ty)) in parseModule() local
3011 Ty = PTy->getElementType(); in parseModule()
3090 auto *PTy = dyn_cast<PointerType>(Ty); in parseModule() local
3091 if (!PTy) in parseModule()
3095 GlobalAlias::create(PTy, getDecodedLinkage(Record[2]), "", TheModule); in parseModule()
4088 auto *PTy = dyn_cast_or_null<PointerType>(Ty); in parseFunctionBody() local
[all …]
/NextBSD/contrib/llvm/lib/AsmParser/
HDLLParser.cpp669 auto *PTy = dyn_cast<PointerType>(AliaseeType); in ParseAlias() local
670 if (!PTy) in ParseAlias()
675 GlobalAlias::create(PTy, (GlobalValue::LinkageTypes)Linkage, Name, in ParseAlias()
1023 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
1024 if (!PTy) { in GetGlobalVal()
1052 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) in GetGlobalVal()
1055 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, in GetGlobalVal()
1058 PTy->getAddressSpace()); in GetGlobalVal()
1065 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
1066 if (!PTy) { in GetGlobalVal()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaPseudoObject.cpp1109 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter() local
1111 ResultType = PTy->getPointeeType(); in findAtIndexGetter()
1215 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter() local
1217 ResultType = PTy->getPointeeType(); in findAtIndexSetter()

123