| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 160 auto ptrType = type.dyn_cast<spirv::PointerType>(); in isLegalType() local 161 if (!ptrType) { in isLegalType() 165 auto storageClass = ptrType.getStorageClass(); in isLegalType() 166 auto structType = ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in isLegalType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypeSyntax.cpp | 143 if (auto ptrType = type.dyn_cast<LLVMPointerType>()) { in printType() local 144 if (ptrType.isOpaque()) { in printType() 145 if (ptrType.getAddressSpace() != 0) in printType() 146 printer << '<' << ptrType.getAddressSpace() << '>'; in printType() 151 dispatchPrint(printer, ptrType.getElementType()); in printType() 152 if (ptrType.getAddressSpace() != 0) in printType() 153 printer << ", " << ptrType.getAddressSpace(); in printType()
|
| H A D | LLVMDialect.cpp | 275 if (ptrType.isOpaque() && !ptrElementType.has_value()) { in verifyOpaquePtr() 279 if (!ptrType.isOpaque() && ptrElementType.has_value()) { in verifyOpaquePtr() 581 auto ptrType = in build() local 583 assert(!ptrType.isOpaque() && in build() 1178 if (!ptrType) in verify() 1180 << ptrType; in verify() 1181 fnType = ptrType.getElementType(); in verify() 2523 if (valType != ptrType.getElementType()) in verify() 2601 if (!ptrType) in verify() 2605 if (cmpType != ptrType.getElementType() || cmpType != valType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | DecorateCompositeTypeLayoutPass.cpp | 36 auto ptrType = op.type().cast<spirv::PointerType>(); in matchAndRewrite() local 38 ptrType.getPointeeType().cast<spirv::StructType>()); in matchAndRewrite() 44 spirv::PointerType::get(structType, ptrType.getStorageClass()); in matchAndRewrite()
|
| H A D | SPIRVConversion.cpp | 637 auto ptrType = spirv::PointerType::get(VectorType::get({3}, integerType), in getOrInsertBuiltinVariable() local 641 builder.create<spirv::GlobalVariableOp>(loc, ptrType, name, builtin); in getOrInsertBuiltinVariable() 647 auto ptrType = in getOrInsertBuiltinVariable() local 651 builder.create<spirv::GlobalVariableOp>(loc, ptrType, name, builtin); in getOrInsertBuiltinVariable() 698 auto ptrType = varOp.type().dyn_cast<spirv::PointerType>(); in getPushConstantVariable() local 699 if (!ptrType) in getPushConstantVariable() 705 if (ptrType.getStorageClass() == spirv::StorageClass::PushConstant) { in getPushConstantVariable() 706 auto numElements = ptrType.getPointeeType() in getPushConstantVariable()
|
| H A D | UnifyAliasedResourcePass.cpp | 60 auto ptrType = type.dyn_cast<spirv::PointerType>(); in getRuntimeArrayElementType() local 61 if (!ptrType) in getRuntimeArrayElementType() 64 auto structType = ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in getRuntimeArrayElementType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 781 if (!ptrType) in parseAtomicUpdateOp() 785 operandTypes.push_back(ptrType); in parseAtomicUpdateOp() 975 if (!ptrType) { in getElementPtrType() 1162 if (!ptrType) in parseAtomicCompareExchangeImpl() 1167 {ptrType, ptrType.getPointeeType(), ptrType.getPointeeType()}, in parseAtomicCompareExchangeImpl() 1281 if (!ptrType) in parse() 1284 if (parser.resolveOperands(operandInfo, {ptrType, ptrType.getPointeeType()}, in parse() 3612 if (!ptrType) in parse() 3614 state.addTypes(ptrType); in parse() 3723 Type ptrType; in parse() local [all …]
|
| H A D | SPIRVTypes.cpp | 678 } else if (auto ptrType = dyn_cast<PointerType>()) { in getExtensions() local 679 ptrType.getExtensions(extensions, storage); in getExtensions() 698 } else if (auto ptrType = dyn_cast<PointerType>()) { in getCapabilities() local 699 ptrType.getCapabilities(capabilities, storage); in getCapabilities()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 303 if (auto ptrType = type.dyn_cast<spirv::PointerType>()) { in isInterfaceStructPtrType() local 304 switch (ptrType.getStorageClass()) { in isInterfaceStructPtrType() 309 return ptrType.getPointeeType().isa<spirv::StructType>(); in isInterfaceStructPtrType() 451 if (auto ptrType = type.dyn_cast<spirv::PointerType>()) { in prepareBasicType() local 454 ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in prepareBasicType() 465 static_cast<uint32_t>(ptrType.getStorageClass())); in prepareBasicType() 485 {resultID, ptrType.getStorageClass()}); in prepareBasicType() 487 if (failed(processTypeImpl(loc, ptrType.getPointeeType(), pointeeTypeID, in prepareBasicType() 493 operands.push_back(static_cast<uint32_t>(ptrType.getStorageClass())); in prepareBasicType() 496 if (isInterfaceStructPtrType(ptrType)) { in prepareBasicType()
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/SPIRV/ |
| H A D | SerializationTest.cpp | 73 auto ptrType = spirv::PointerType::get(type, spirv::StorageClass::Uniform); in addGlobalVar() local 75 UnknownLoc::get(&context), TypeAttr::get(ptrType), in addGlobalVar()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/OpenACCToLLVM/ |
| H A D | OpenACCToLLVM.cpp | 117 auto ptrType = descriptor.getElementPtrType(); in matchAndRewrite() local 119 auto descr = DataDescriptor::undef(builder, loc, structType, ptrType); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 216 Type ptrType = LLVM::LLVMPointerType::get(type); in addAtomicRMW() local 219 decl.atomicReductionRegion().end(), {ptrType, ptrType}, in addAtomicRMW()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SValBuilder.h | 304 NonLoc makeIntValWithWidth(QualType ptrType, uint64_t integer) { in makeIntValWithWidth() argument 305 return nonloc::ConcreteInt(BasicVals.getValue(integer, ptrType)); in makeIntValWithWidth()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 122 auto ptrType = LLVM::LLVMPointerType::get( in matchAndRewrite() local 130 gpuFuncOp.getLoc(), ptrType, numElements, /*alignment=*/0); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/OpenMP/IR/ |
| H A D | OpenMPDialect.cpp | 645 auto ptrType = atomicReductionEntryBlock.getArgumentTypes()[0] in verifyRegions() local 647 if (!ptrType || ptrType.getElementType() != type()) in verifyRegions()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | TypeConverter.cpp | 482 auto ptrType = LLVM::LLVMPointerType::get(operand.getType()); in promoteOneMemRefDescriptor() local 486 builder.create<LLVM::AllocaOp>(loc, ptrType, one, /*alignment=*/0); in promoteOneMemRefDescriptor()
|
| /llvm-project-15.0.7/lld/wasm/ |
| H A D | SyntheticSections.cpp | 280 auto ptrType = is64 ? WASM_TYPE_I64 : WASM_TYPE_I32; in writeBody() local 281 import.Global = {static_cast<uint8_t>(ptrType), true}; in writeBody()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 562 auto ptrType = type.dyn_cast<spirv::PointerType>(); in processGlobalVariable() local 563 if (!ptrType) { in processGlobalVariable() 580 if (ptrType.getStorageClass() != storageClass) { in processGlobalVariable()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | FIRBuilder.cpp | 86 mlir::Type ptrType) { in createNullConstant() argument 87 auto ty = ptrType ? ptrType : getRefType(getNoneType()); in createNullConstant()
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/ |
| H A D | FIRBuilder.h | 117 mlir::Value createNullConstant(mlir::Location loc, mlir::Type ptrType = {});
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | SparseTensorConversion.cpp | 900 Type ptrType = resType.cast<ShapedType>().getElementType(); in matchAndRewrite() local 901 SmallString<16> name{"sparsePointers", overheadTypeFunctionSuffix(ptrType)}; in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Type.cpp | 1437 const ObjCObjectPointerType *ptrType = in VisitAttributedType() local 1439 const ObjCObjectType *objType = ptrType in VisitAttributedType() 1440 ? ptrType->getObjectType() in VisitAttributedType() 1454 if (ptrType) in VisitAttributedType()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 184 def OpTypeForwardPointer: Op<39, (outs), (ins TYPE:$ptrType, StorageClass:$storageClass), 185 "OpTypeForwardPointer $ptrType $storageClass">;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/ |
| H A D | MemRefToLLVM.cpp | 946 auto ptrType = LLVM::LLVMPointerType::get(desc.getType()); in lowerToMemCopyFunctionCall() local 948 rewriter.create<LLVM::AllocaOp>(loc, ptrType, ValueRange{one}); in lowerToMemCopyFunctionCall()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaType.cpp | 4164 if (auto ptrType = type->getAs<PointerType>()) { in classifyPointerDeclarator() local 4170 type = ptrType->getPointeeType(); in classifyPointerDeclarator() 7382 const ObjCObjectPointerType *ptrType = type->getAs<ObjCObjectPointerType>(); in checkObjCKindOfType() local 7383 const ObjCObjectType *objType = ptrType ? ptrType->getObjectType() in checkObjCKindOfType() 7403 if (ptrType) { in checkObjCKindOfType()
|