/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | LayoutUtils.cpp | 159 auto ptrType = type.dyn_cast<spirv::PointerType>(); in isLegalType() local 160 if (!ptrType) { in isLegalType() 164 auto storageClass = ptrType.getStorageClass(); in isLegalType() 165 auto structType = ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in isLegalType()
|
D | SPIRVOps.cpp | 670 auto ptrType = type.dyn_cast<spirv::PointerType>(); in parseAtomicUpdateOp() local 671 if (!ptrType) in parseAtomicUpdateOp() 675 operandTypes.push_back(ptrType); in parseAtomicUpdateOp() 677 operandTypes.push_back(ptrType.getPointeeType()); in parseAtomicUpdateOp() 681 return parser.addTypeToList(ptrType.getPointeeType(), state.types); in parseAtomicUpdateOp() 700 auto ptrType = op->getOperand(0).getType().cast<spirv::PointerType>(); in verifyAtomicUpdateOp() local 701 auto elementType = ptrType.getPointeeType(); in verifyAtomicUpdateOp() 904 auto ptrType = type.dyn_cast<spirv::PointerType>(); in getElementPtrType() local 905 if (!ptrType) { in getElementPtrType() 912 auto resultType = ptrType.getPointeeType(); in getElementPtrType() [all …]
|
D | SPIRVLowering.cpp | 560 auto ptrType = spirv::PointerType::get( in getOrInsertBuiltinVariable() local 565 builder.create<spirv::GlobalVariableOp>(loc, ptrType, name, builtin); in getOrInsertBuiltinVariable() 571 auto ptrType = spirv::PointerType::get(builder.getIntegerType(32), in getOrInsertBuiltinVariable() local 575 builder.create<spirv::GlobalVariableOp>(loc, ptrType, name, builtin); in getOrInsertBuiltinVariable()
|
D | SPIRVTypes.cpp | 740 } else if (auto ptrType = dyn_cast<PointerType>()) { in getExtensions() local 741 ptrType.getExtensions(extensions, storage); in getExtensions() 758 } else if (auto ptrType = dyn_cast<PointerType>()) { in getCapabilities() local 759 ptrType.getCapabilities(capabilities, storage); in getCapabilities()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/ |
D | DecorateSPIRVCompositeTypeLayoutPass.cpp | 35 auto ptrType = op.type().cast<spirv::PointerType>(); in matchAndRewrite() local 37 ptrType.getPointeeType().cast<spirv::StructType>()); in matchAndRewrite() 43 spirv::PointerType::get(structType, ptrType.getStorageClass()); in matchAndRewrite()
|
/external/llvm-project/mlir/test/lib/Transforms/ |
D | TestSparsification.cpp | 34 Option<int32_t> ptrType{*this, "ptr-type", member 93 vectorLength, typeOption(ptrType), in runOnFunction()
|
/external/llvm-project/mlir/unittests/Dialect/SPIRV/ |
D | SerializationTest.cpp | 72 auto ptrType = spirv::PointerType::get(type, spirv::StorageClass::Uniform); in addGlobalVar() local 74 UnknownLoc::get(&context), TypeAttr::get(ptrType), in addGlobalVar()
|
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/ |
D | LLVMTypeSyntax.cpp | 146 if (auto ptrType = type.dyn_cast<LLVMPointerType>()) { in printTypeImpl() local 148 printTypeImpl(os, ptrType.getElementType(), stack); in printTypeImpl() 149 if (ptrType.getAddressSpace() != 0) in printTypeImpl() 150 os << ", " << ptrType.getAddressSpace(); in printTypeImpl()
|
D | LLVMDialect.cpp | 569 auto ptrType = fnType.dyn_cast<LLVMPointerType>(); in verify() local 570 if (!ptrType) in verify() 573 fnType = ptrType.getElementType(); in verify() 1626 auto ptrType = op.ptr().getType().cast<LLVM::LLVMType>(); in verify() local 1628 if (valType != ptrType.getPointerElementTy()) in verify() 1692 auto ptrType = op.ptr().getType().cast<LLVM::LLVMType>(); in verify() local 1693 if (!ptrType.isPointerTy()) in verify() 1697 if (cmpType != ptrType.getPointerElementTy() || cmpType != valType) in verify()
|
/external/llvm-project/mlir/lib/Conversion/GPUCommon/ |
D | GPUOpsLowering.h | 130 auto ptrType = typeConverter->convertType(type.getElementType()) in matchAndRewrite() local 137 gpuFuncOp.getLoc(), ptrType, numElements, /*alignment=*/0); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/ |
D | Serializer.cpp | 1022 if (auto ptrType = type.dyn_cast<spirv::PointerType>()) { in isInterfaceStructPtrType() local 1023 switch (ptrType.getStorageClass()) { in isInterfaceStructPtrType() 1028 return ptrType.getPointeeType().isa<spirv::StructType>(); in isInterfaceStructPtrType() 1156 if (auto ptrType = type.dyn_cast<spirv::PointerType>()) { in prepareBasicType() local 1159 ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in prepareBasicType() 1170 static_cast<uint32_t>(ptrType.getStorageClass())); in prepareBasicType() 1190 {resultID, ptrType.getStorageClass()}); in prepareBasicType() 1192 if (failed(processTypeImpl(loc, ptrType.getPointeeType(), pointeeTypeID, in prepareBasicType() 1198 operands.push_back(static_cast<uint32_t>(ptrType.getStorageClass())); in prepareBasicType()
|
D | Deserializer.cpp | 1058 auto ptrType = type.dyn_cast<spirv::PointerType>(); in processGlobalVariable() local 1059 if (!ptrType) { in processGlobalVariable() 1076 if (ptrType.getStorageClass() != storageClass) { in processGlobalVariable()
|
/external/llvm-project/mlir/include/mlir/Dialect/Linalg/Transforms/ |
D | Transforms.h | 846 ptrType(pt), indType(it) {} in SparsificationOptions() 854 SparseIntType ptrType; member
|
/external/llvm-project/clang/lib/AST/ |
D | Type.cpp | 1431 const ObjCObjectPointerType *ptrType = in VisitAttributedType() local 1433 const ObjCObjectType *objType = ptrType in VisitAttributedType() 1434 ? ptrType->getObjectType() in VisitAttributedType() 1448 if (ptrType) in VisitAttributedType()
|
/external/clang/lib/Sema/ |
D | SemaType.cpp | 3321 if (auto ptrType = type->getAs<PointerType>()) { in classifyPointerDeclarator() local 3327 type = ptrType->getPointeeType(); in classifyPointerDeclarator() 5918 const ObjCObjectPointerType *ptrType = type->getAs<ObjCObjectPointerType>(); in checkObjCKindOfType() local 5919 const ObjCObjectType *objType = ptrType ? ptrType->getObjectType() in checkObjCKindOfType() 5939 if (ptrType) { in checkObjCKindOfType()
|
D | SemaDeclAttr.cpp | 3926 if (auto ptrType = type->getAs<PointerType>()) { in isValidSwiftIndirectResultType() local 3927 type = ptrType->getPointeeType(); in isValidSwiftIndirectResultType() 3938 if (auto ptrType = type->getAs<PointerType>()) { in isValidSwiftErrorResultType() local 3939 type = ptrType->getPointeeType(); in isValidSwiftErrorResultType()
|
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/ |
D | StandardToLLVM.cpp | 1942 Value createAllocCall(Location loc, StringRef name, Type ptrType, in createAllocCall() 1963 return rewriter.create<LLVM::BitcastOp>(loc, ptrType, allocatedPtr); in createAllocCall() 4065 auto ptrType = operand.getType().cast<LLVM::LLVMType>().getPointerTo(); in promoteOneMemRefDescriptor() local 4069 builder.create<LLVM::AllocaOp>(loc, ptrType, one, /*alignment=*/0); in promoteOneMemRefDescriptor()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaType.cpp | 4013 if (auto ptrType = type->getAs<PointerType>()) { in classifyPointerDeclarator() local 4019 type = ptrType->getPointeeType(); in classifyPointerDeclarator() 7161 const ObjCObjectPointerType *ptrType = type->getAs<ObjCObjectPointerType>(); in checkObjCKindOfType() local 7162 const ObjCObjectType *objType = ptrType ? ptrType->getObjectType() in checkObjCKindOfType() 7182 if (ptrType) { in checkObjCKindOfType()
|
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
D | Sparsification.cpp | 475 dynShape, genIntType(rewriter, codegen.options.ptrType)); in genBuffers()
|
/external/skqp/src/sksl/ |
D | SkSLSPIRVCodeGenerator.cpp | 2659 SpvId ptrType = this->nextId(); in writeInterfaceBlock() local 2660 this->writeInstruction(SpvOpTypePointer, ptrType, storageClass, typeId, fConstantBuffer); in writeInterfaceBlock() 2661 this->writeInstruction(SpvOpVariable, ptrType, result, storageClass, fConstantBuffer); in writeInterfaceBlock()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGExpr.cpp | 3839 QualType ptrType = E->getBase()->getType(); in EmitArraySubscriptExpr() local 3842 SignedIndices, E->getExprLoc(), &ptrType, in EmitArraySubscriptExpr() 4915 if (auto ptrType = E->getType()->getAs<PointerType>()) { in EmitCallee() local 4917 functionType = ptrType->getPointeeType(); in EmitCallee()
|
/external/skia/src/sksl/codegen/ |
D | SkSLSPIRVCodeGenerator.cpp | 3048 SpvId ptrType = this->nextId(nullptr); in writeInterfaceBlock() local 3049 this->writeInstruction(SpvOpTypePointer, ptrType, storageClass, typeId, fConstantBuffer); in writeInterfaceBlock() 3050 this->writeInstruction(SpvOpVariable, ptrType, result, storageClass, fConstantBuffer); in writeInterfaceBlock()
|