Home
last modified time | relevance | path

Searched refs:OpaqueType (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DExpectedTypes.h34 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 DExpectedTypes.cpp66 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 DCodeComplete.cpp1418 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 DExpectedTypeTest.cpp42 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 DEmitC.cpp72 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 Dmangle-address-space.cpp15 struct OpaqueType;
16 typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinTypes.cpp372 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 DAttributeTest.cpp154 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 DTypeUtilities.cpp48 if (auto opaque = type.dyn_cast<mlir::OpaqueType>()) in isOpaqueTypeWithName()
H A DDialect.cpp69 return OpaqueType::get(ns, parser.getFullSymbolSpec()); in parseType()
H A DBuiltinTypes.cpp208 LogicalResult OpaqueType::verify(function_ref<InFlightDiagnostic()> emitError, in verify()
323 return type.isa<ComplexType, FloatType, IntegerType, OpaqueType, VectorType, in isValidElementType()
H A DAsmPrinter.cpp2065 .Case<OpaqueType>([&](OpaqueType opaqueTy) { in printType()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DDialectSymbolParser.cpp287 return OpaqueType::getChecked([&] { return emitError(loc); }, in parseExtendedType()
/llvm-project-15.0.7/mlir/test/python/ir/
H A Dbuiltin_types.py483 opaque = OpaqueType.get("dialect", "type")
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp933 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 Dir.pyi72 "OpaqueType",
829 class OpaqueType(Type):
832 def get(*args, **kwargs) -> OpaqueType: ...
/llvm-project-15.0.7/mlir/lib/Target/Cpp/
H A DTranslateToCpp.cpp1006 if (auto oType = type.dyn_cast<emitc::OpaqueType>()) { in emitType()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOpBase.td494 class OpaqueType<string dialect, string name, string summary>
496 summary, "::mlir::OpaqueType">,
497 BuildableType<"::mlir::OpaqueType::get("
H A DBuiltinTypes.td594 // OpaqueType
/llvm-project-15.0.7/mlir/docs/Rationale/
H A DRationale.md449 type has not been registered the type is modeled as an 'OpaqueType'. This allows