| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ExpectedTypes.h | 34 class OpaqueType { 37 static llvm::Optional<OpaqueType> 41 static llvm::Optional<OpaqueType> fromType(ASTContext &Ctx, QualType Type); 49 friend bool operator==(const OpaqueType &L, const OpaqueType &R) { 52 friend bool operator!=(const OpaqueType &L, const OpaqueType &R) { 57 static llvm::Optional<OpaqueType> encode(ASTContext &Ctx, QualType Type); 58 explicit OpaqueType(std::string Data);
|
| H A D | ExpectedTypes.cpp | 66 llvm::Optional<OpaqueType> OpaqueType::encode(ASTContext &Ctx, QualType T) { in encode() 75 return OpaqueType(std::string(Encoded.str())); in encode() 78 OpaqueType::OpaqueType(std::string Data) : Data(std::move(Data)) {} in OpaqueType() function in clang::clangd::OpaqueType 80 llvm::Optional<OpaqueType> OpaqueType::fromType(ASTContext &Ctx, in fromType() 85 llvm::Optional<OpaqueType> 86 OpaqueType::fromCompletionResult(ASTContext &Ctx, in fromCompletionResult()
|
| H A D | CodeComplete.cpp | 1418 llvm::Optional<OpaqueType> PreferredType; // Initialized once Sema runs. 1646 OpaqueType::fromType(Recorder->CCSema->getASTContext(), in runWithSema() 1881 if (auto CompletionType = OpaqueType::fromCompletionResult( in addCandidate()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | ExpectedTypeTest.cpp | 42 llvm::Optional<OpaqueType> fromCompletionResult(const NamedDecl *D) { in fromCompletionResult() 43 return OpaqueType::fromCompletionResult( in fromCompletionResult() 68 auto Type = OpaqueType::fromType(astCtx(), typeOf(Name)); in buildEquivClasses() 143 OpaqueType IntTy = *OpaqueType::fromType(astCtx(), typeOf("int_")); in TEST_F() 146 OpaqueType IntPtrTy = *OpaqueType::fromType(astCtx(), typeOf("int_ptr")); in TEST_F() 165 auto IntPtrTy = *OpaqueType::fromType(astCtx(), typeOf("int_ptr_")); in TEST_F()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/EmitC/IR/ |
| H A D | EmitC.cpp | 72 return ((input.isa<IntegerType, FloatType, IndexType, emitc::OpaqueType, in areCastCompatible() 74 (output.isa<IntegerType, FloatType, IndexType, emitc::OpaqueType, in areCastCompatible() 227 Type emitc::OpaqueType::parse(AsmParser &parser) { in parse() 246 void emitc::OpaqueType::print(AsmPrinter &printer) const { in print()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-address-space.cpp | 15 struct OpaqueType; 16 typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinTypes.cpp | 372 bool mlirTypeIsAOpaque(MlirType type) { return unwrap(type).isa<OpaqueType>(); } in mlirTypeIsAOpaque() 377 OpaqueType::get(StringAttr::get(unwrap(ctx), unwrap(dialectNamespace)), in mlirOpaqueTypeGet() 382 return wrap(unwrap(type).cast<OpaqueType>().getDialectNamespace().strref()); in mlirOpaqueTypeGetDialectNamespace() 386 return wrap(unwrap(type).cast<OpaqueType>().getTypeData()); in mlirOpaqueTypeGetData()
|
| /llvm-project-15.0.7/mlir/unittests/IR/ |
| H A D | AttributeTest.cpp | 154 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST() 163 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST() 213 Type stringTy = OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | TypeUtilities.cpp | 48 if (auto opaque = type.dyn_cast<mlir::OpaqueType>()) in isOpaqueTypeWithName()
|
| H A D | Dialect.cpp | 69 return OpaqueType::get(ns, parser.getFullSymbolSpec()); in parseType()
|
| H A D | BuiltinTypes.cpp | 208 LogicalResult OpaqueType::verify(function_ref<InFlightDiagnostic()> emitError, in verify() 323 return type.isa<ComplexType, FloatType, IntegerType, OpaqueType, VectorType, in isValidElementType()
|
| H A D | AsmPrinter.cpp | 2065 .Case<OpaqueType>([&](OpaqueType opaqueTy) { in printType()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | DialectSymbolParser.cpp | 287 return OpaqueType::getChecked([&] { return emitError(loc); }, in parseExtendedType()
|
| /llvm-project-15.0.7/mlir/test/python/ir/ |
| H A D | builtin_types.py | 483 opaque = OpaqueType.get("dialect", "type")
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 933 llvm::Optional<OpaqueType> TypeStorage; in addDeclaration() 935 TypeStorage = OpaqueType::fromCompletionResult(*ASTCtx, SymbolCompletion); in addDeclaration()
|
| /llvm-project-15.0.7/mlir/python/mlir/_mlir_libs/_mlir/ |
| H A D | ir.pyi | 72 "OpaqueType", 829 class OpaqueType(Type): 832 def get(*args, **kwargs) -> OpaqueType: ...
|
| /llvm-project-15.0.7/mlir/lib/Target/Cpp/ |
| H A D | TranslateToCpp.cpp | 1006 if (auto oType = type.dyn_cast<emitc::OpaqueType>()) { in emitType()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | OpBase.td | 494 class OpaqueType<string dialect, string name, string summary> 496 summary, "::mlir::OpaqueType">, 497 BuildableType<"::mlir::OpaqueType::get("
|
| H A D | BuiltinTypes.td | 594 // OpaqueType
|
| /llvm-project-15.0.7/mlir/docs/Rationale/ |
| H A D | Rationale.md | 449 type has not been registered the type is modeled as an 'OpaqueType'. This allows
|