Home
last modified time | relevance | path

Searched refs:PointerType (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypeCache.h23 class PointerType; variable
56 llvm::PointerType *UnqualPtrTy;
57 llvm::PointerType *VoidPtrTy;
58 llvm::PointerType *Int8PtrTy;
59 llvm::PointerType *VoidPtrPtrTy;
60 llvm::PointerType *Int8PtrPtrTy;
65 llvm::PointerType *AllocaVoidPtrTy;
66 llvm::PointerType *AllocaInt8PtrTy;
71 llvm::PointerType *GlobalsVoidPtrTy;
72 llvm::PointerType *GlobalsInt8PtrTy;
[all …]
H A DCGGPUBuiltin.cpp25 llvm::Type *ArgTypes[] = {llvm::PointerType::getUnqual(M.getContext()), in GetVprintfDeclaration()
26 llvm::PointerType::getUnqual(M.getContext())}; in GetVprintfDeclaration()
80 llvm::ConstantPointerNull::get(llvm::PointerType::getUnqual(Ctx));
101 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
/llvm-project/llvm/test/DebugInfo/PDB/Native/
H A Dpdb-native-pointers.test42 ; CHECK-NEXT: symTag: PointerType
54 ; CHECK-NEXT: symTag: PointerType
66 ; CHECK-NEXT: symTag: PointerType
78 ; CHECK-NEXT: symTag: PointerType
90 ; CHECK-NEXT: symTag: PointerType
102 ; CHECK-NEXT: symTag: PointerType
114 ; CHECK-NEXT: symTag: PointerType
126 ; CHECK-NEXT: symTag: PointerType
138 ; CHECK-NEXT: symTag: PointerType
150 ; CHECK-NEXT: symTag: PointerType
[all …]
/llvm-project/llvm/include/llvm/Analysis/
H A DWithCache.h36 using PointerType = conditionally_const_t<UnderlyingType *, IsConst>; variable
43 mutable PointerIntPair<PointerType, 1, bool> Pointer;
52 WithCache(PointerType Pointer) : Pointer(Pointer, false) {} in WithCache()
53 WithCache(PointerType Pointer, const KnownBits &Known) in WithCache()
56 [[nodiscard]] PointerType getValue() const { return Pointer.getPointer(); } in getValue()
66 operator PointerType() const { return Pointer.getPointer(); } in PointerType() function
67 PointerType operator->() const { return Pointer.getPointer(); }
/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp56 const char *Name, PointerType Pointer) { in start()
75 if (Pointer == PointerType::None) { in start()
93 if (Pointer == PointerType::Reference) in start()
119 void FunctionDumper::start(const PDBSymbolFunc &Symbol, PointerType Pointer) { in start()
157 if (Pointer == PointerType::Pointer) in start()
159 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
170 if (Pointer != FunctionDumper::PointerType::None) in start()
179 if (Pointer != FunctionDumper::PointerType::None) { in start()
180 if (Pointer == PointerType::Pointer) in start()
182 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
[all …]
H A DPrettyTypedefDumper.cpp62 FunctionDumper::PointerType Pointer = FunctionDumper::PointerType::Pointer; in dump()
64 Pointer = FunctionDumper::PointerType::Reference; in dump()
78 Dumper.start(Symbol, nullptr, FunctionDumper::PointerType::None); in dump()
H A DPrettyFunctionDumper.h22 enum class PointerType { None, Pointer, Reference }; enum
25 PointerType Pointer);
26 void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DCastOps.cpp90 if (llvm::isa<spirv::PointerType>(operandType) && in verify()
91 !llvm::isa<spirv::PointerType>(resultType)) { in verify()
95 if (!llvm::isa<spirv::PointerType>(operandType) && in verify()
96 llvm::isa<spirv::PointerType>(resultType)) { in verify()
115 auto operandType = llvm::cast<spirv::PointerType>(getPointer().getType()); in verify()
137 auto resultType = llvm::cast<spirv::PointerType>(getResult().getType()); in verify()
157 auto operandType = llvm::cast<spirv::PointerType>(getPointer().getType()); in verify()
158 auto resultType = llvm::cast<spirv::PointerType>(getResult().getType()); in verify()
185 auto operandType = llvm::cast<spirv::PointerType>(getPointer().getType()); in verify()
186 auto resultType = llvm::cast<spirv::PointerType>(getResul in verify()
[all...]
H A DMemoryOps.cpp163 // ODS already checks ptr is spirv::PointerType. Just check that the pointee in verifyLoadStorePtrAndValTypes()
169 llvm::cast<spirv::PointerType>(ptr.getType()).getPointeeType()) { in verifyLoadStorePtrAndValTypes()
264 auto ptrType = llvm::dyn_cast<spirv::PointerType>(type); in getElementPtrType()
313 return spirv::PointerType::get(resultType, resultStorageClass); in getElementPtrType()
337 llvm::dyn_cast<spirv::PointerType>(accessChainOp.getType()); in parse()
360 auto ptrType = llvm::cast<spirv::PointerType>(basePtr.getType()); in parse()
377 auto ptrType = spirv::PointerType::get(elementType, storageClass); in print()
389 llvm::cast<spirv::PointerType>(getPtr().getType()).getStorageClass()); in verifyAccessChain()
425 auto ptrType = spirv::PointerType::get(elementType, storageClass); in parse()
436 llvm::cast<spirv::PointerType>(getPt
[all...]
/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp46 StructType::create("__tgt_device_image", PointerType::getUnqual(C), in getDeviceImageTy()
47 PointerType::getUnqual(C), PointerType::getUnqual(C), in getDeviceImageTy()
48 PointerType::getUnqual(C)); in getDeviceImageTy()
52 PointerType *getDeviceImagePtrTy(Module &M) { in getDeviceImagePtrTy()
53 return PointerType::getUnqual(M.getContext()); in getDeviceImagePtrTy()
68 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getBinDescTy()
72 PointerType *getBinDescPtrTy(Module &M) { in getBinDescPtrTy()
73 return PointerType in getBinDescPtrTy()
[all...]
/llvm-project/flang/unittests/Optimizer/
H A DFIRTypesTest.cpp57 ty = fir::ClassType::get(fir::PointerType::get(recTy)); in TEST_F()
61 ty = fir::ClassType::get(fir::PointerType::get(seqRecTy)); in TEST_F()
109 ty = fir::ClassType::get(fir::PointerType::get(noneTy)); in TEST_F()
113 ty = fir::ClassType::get(fir::PointerType::get(seqNoneTy)); in TEST_F()
141 ty = fir::BoxType::get(fir::PointerType::get(recTy)); in TEST_F()
174 ty = fir::BoxType::get(fir::PointerType::get(recTy)); in TEST_F()
178 ty = fir::ClassType::get(fir::PointerType::get(recTy)); in TEST_F()
213 mlir::Type ptrTy = fir::PointerType::get(recTy); in TEST_F()
217 mlir::Type ptrArrTy = fir::PointerType::get(arrRecTy); in TEST_F()
226 mlir::Type ptrNone = fir::PointerType in TEST_F()
[all...]
/llvm-project/clang/lib/Sema/
H A DSemaFixItUtils.cpp34 if (isa<PointerType>(From) && isa<PointerType>(To)) { in compareTypesSimple()
36 (cast<PointerType>(From))->getPointeeType()); in compareTypesSimple()
38 (cast<PointerType>(To))->getPointeeType()); in compareTypesSimple()
93 if (const PointerType *FromPtrTy = dyn_cast<PointerType>(FromQTy)) { in tryToFixConversion()
127 if (const auto *ToPtrTy = dyn_cast<PointerType>(ToQTy)) { in tryToFixConversion()
136 if (isa<PointerType>(FromQTy) && ToPtrTy->isVoidPointerType()) in tryToFixConversion()
H A DOpenCLBuiltins.td199 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> :
368 def "HalfPtr" # AS : PointerType<Type<"__half", QualType<"Context.HalfTy">>, AS>;
369 def "HalfPtrConst" # AS : PointerType<ConstType<Type<"__half", QualType<"Context.HalfTy">>>, AS>;
619 def : Builtin<name, [FGenTypeN, FGenTypeN, PointerType<FGenTypeN, AS>]>;
623 def : Builtin<name, [Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
628 def : Builtin<name, [Type, Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
852 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>;
853 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure…
854 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure…
855 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu…
[all …]
/llvm-project/llvm/lib/IR/
H A DBuiltinGCs.cpp78 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
111 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
H A DType.cpp297 static PointerType *Ty = PointerType::get(C, 10); in get()
303 static PointerType *Ty = PointerType::get(C, 20);
831 // PointerType Implementation
834 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in getTargetTypeInfo()
842 PointerType *PointerType::get(LLVMContext &C, unsigned AddressSpace) { in getTargetTypeInfo()
846 PointerType * in getTargetTypeInfo()
755 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) PointerType() function in PointerType
[all...]
/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp24 StatTy = ArrayType::get(PointerType::getUnqual(M->getContext()), 2); in SanitizerStatReport()
37 {PointerType::getUnqual(M->getContext()), in makeModuleStatsTy()
45 PointerType *PtrTy = B.getPtrTy(); in create()
76 PointerType *Int8PtrTy = PointerType::getUnqual(M->getContext()); in finish()
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp237 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildPointerValidatorFunc()
243 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildPointerValidatorFunc()
260 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
261 param_array[1] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
267 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildObjectCheckerFunc()
273 PointerType *GetI8PtrTy() {
275 m_i8ptr_ty = llvm::PointerType::getUnqual(m_module.getContext()); in GetI8PtrTy()
299 PointerType *m_i8ptr_t
[all...]
/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h168 /// PointerType::getElementType() to access the function's type, since that's
670 class PointerType : public Type { in getUnqual()
671 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
674 PointerType(const PointerType &) = delete;
675 PointerType &operator=(const PointerType &) = delete;
679 static PointerType *get(Type *ElementType, unsigned AddressSpace); in getAddressSpace()
682 static PointerType *get(LLVMContext &C, unsigned AddressSpace); in classof()
686 static PointerType *getUnqua
[all...]
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp101 PointerType *PT = dyn_cast<PointerType>(Ptr->getType()); in promotePointer()
118 PointerType *NewPT = in promotePointer()
119 PointerType::get(PT->getContext(), AMDGPUAS::GLOBAL_ADDRESS); in promotePointer()
170 PointerType *PT = dyn_cast<PointerType>(Arg.getType()); in run()
/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp135 PointerType::get(C, 0), [&]() { in createInitOrFiniCalls()
137 M, PointerType::get(C, 0), in createInitOrFiniCalls()
139 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
147 IsCtor ? "__init_array_end" : "__fini_array_end", PointerType::get(C, 0), in createInitOrFiniCalls()
150 M, PointerType::get(C, 0), in createInitOrFiniCalls()
152 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
175 auto *ValuePtr = IRB.CreateGEP(PointerType::get(C, 0), BeginVal, in createInitOrFiniCalls()
179 PointerType::get(C, 0), ValuePtr, in createInitOrFiniCalls()
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp361 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcmp()
403 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcopy()
445 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_bzero()
487 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets()
527 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw()
567 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_mktemp()
835 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_strCommon()
869 const PointerType *PT = FTP->getParamType(0)->getAs<PointerType>(); in checkCall_rand()
H A DCastToStructChecker.cpp45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
46 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in VisitCastExpr()
H A DMallocSizeofChecker.cpp140 if (B->isVoidPointerType() && A->getAs<PointerType>()) in typesCompatible()
144 if (A->isVoidPointerType() && B->getAs<PointerType>()) in typesCompatible()
154 if (const PointerType *ptrA = A->getAs<PointerType>()) in typesCompatible()
155 if (const PointerType *ptrB = B->getAs<PointerType>()) { in typesCompatible()
/llvm-project/clang/unittests/StaticAnalyzer/
H A DSValTest.cpp243 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context));
249 const auto *BPtrTy = dyn_cast<PointerType>(B.getType(Context));
255 const auto *CPtrTy = dyn_cast<PointerType>(C.getType(Context));
267 const auto *EPtrTy = dyn_cast<PointerType>(E.getType(Context));
273 const auto *FPtrTy = dyn_cast<PointerType>(F.getType(Context));
337 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context));
352 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context));
367 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context));
/llvm-project/llvm/unittests/Linker/
H A DLinkModulesTest.cpp31 FunctionType::get(PointerType::getUnqual(Ctx), Type::getInt32Ty(Ctx), in SetUp()
41 AT = ArrayType::get(PointerType::getUnqual(Ctx), 3); in SetUp()
57 ConstantExpr::getIntToPtr(One, PointerType::getUnqual(Ctx)); in SetUp()
99 Builder.CreateRet(ConstantPointerNull::get(PointerType::getUnqual(Ctx))); in TEST_F()
114 ArrayType *AT = ArrayType::get(PointerType::getUnqual(Ctx), 3); in TEST_F()
138 Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), false /*=isVarArgs*/); in getExternal()
153 Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), false /*=isVarArgs*/); in getInternal()
163 StructType *STy = StructType::create(Ctx, PointerType::get(Ctx, 0)); in getInternal()

12345678910>>...22