Home
last modified time | relevance | path

Searched refs:TypeAttr (Results 1 – 25 of 61) sorted by relevance

123

/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_pdl_ops_ext.py48 def _get_type_attr(type: Union[TypeAttr, Type]) -> TypeAttr: argument
51 return TypeAttr.get(type)
258 type: Optional[Union[TypeAttr, Type]] = None, argument
271 types: Sequence[Union[TypeAttr, Type]] = [], argument
H A D_ml_program_ops_ext.py48 type = TypeAttr.get(type)
67 return FunctionType(TypeAttr(self.attributes["function_type"]).value)
H A D_func_ops_ext.py58 type = TypeAttr.get(type)
77 return FunctionType(TypeAttr(self.attributes["function_type"]).value)
214 func_op.attributes["function_type"] = TypeAttr.get(function_type)
/llvm-project-15.0.7/mlir/lib/IR/
H A DFunctionInterfaces.cpp155 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in insertFunctionArguments()
199 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in insertFunctionResults()
221 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionArguments()
242 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionResults()
284 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in setFunctionType()
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/
H A Dmlir-support.cpp37 mlir::Attribute TypeAttr = mlir::TypeAttr::get(IndexType); variable
H A Dmlir-support.gdb125 # CHECK-LABEL: +print TypeAttr
126 print TypeAttr
127 # CHECK: typeID = mlir::TypeID::get<mlir::TypeAttr>()
/llvm-project-15.0.7/mlir/lib/Dialect/MLProgram/IR/
H A DMLProgramOps.cpp85 TypeAttr &typeAttr, Attribute &attr) { in parseTypedInitialValue()
96 typeAttr = TypeAttr::get(type); in parseTypedInitialValue()
101 TypeAttr type, Attribute attr) { in printTypedInitialValue()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DAttributes.td39 class TypeAttr<string S, list<AttrProperty> P> : Attr<S, P>;
75 def ByVal : TypeAttr<"byval", [ParamAttr]>;
78 def ByRef : TypeAttr<"byref", [ParamAttr]>;
103 def ElementType : TypeAttr<"elementtype", [ParamAttr]>;
118 def InAlloca : TypeAttr<"inalloca", [ParamAttr]>;
211 def Preallocated : TypeAttr<"preallocated", [FnAttr, ParamAttr]>;
257 def StructRet : TypeAttr<"sret", [ParamAttr]>;
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestFunc.cpp39 typesToInsert.push_back(insert[1].cast<TypeAttr>().getValue()); in runOnOperation()
76 typesToInsert.push_back(insert[1].cast<TypeAttr>().getValue()); in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Utils/
H A DQuantUtils.h63 TypeAttr buildQTypeAttrFromMinMax(OpBuilder builder, Type inputDType,
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp334 TypeAttr
340 return TypeAttr::get(buildQTypeFromMinMax(builder, inputDtype, minAttr, in buildQTypeAttrFromMinMax()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAttr.h111 class TypeAttr : public Attr {
113 TypeAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in TypeAttr() function
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypePrinter.cpp401 auto TypeAttr = C.find(DW_AT_type); in appendTemplateParameters() local
403 appendQualifiedName(TypeAttr ? resolveReferencedType(C, *TypeAttr) in appendTemplateParameters()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantOps.cpp48 if (auto typeAttr = quantSpec.dyn_cast<TypeAttr>()) { in isValidQuantizationSpec()
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-attribute.td281 TypeAttr:$type_attr
299 …ttr && !(((tblgen_some_type_attr.isa<::mlir::TypeAttr>())) && ((tblgen_some_type_attr.cast<::mlir:…
302 …n_type_attr && !(((tblgen_type_attr.isa<::mlir::TypeAttr>())) && ((tblgen_type_attr.cast<::mlir::T…
H A Dop-python-bindings.td210 // CHECK: _ods_ir.TypeAttr(_ods_result_type_source_attr).value
211 // CHECK: if _ods_ir.TypeAttr.isinstance(_ods_result_type_source_attr) else
214 let arguments = (ins TypeAttr:$type);
221 let arguments = (ins TypeAttr:$type);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttr.td590 class TypeAttr : Attr;
1905 def BTFTypeTag : TypeAttr {
2015 def ObjCKindOf : TypeAttr {
2358 def Regparm : TypeAttr {
2434 def NoDeref : TypeAttr {
2854 def ObjCGC : TypeAttr {
2906 def VectorSize : TypeAttr {
3563 def Ptr32 : TypeAttr {
3568 def Ptr64 : TypeAttr {
3573 def SPtr : TypeAttr {
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/
H A DPDLToPDLInterp.cpp345 if (TypeAttr typeAttr = rawTypeAttr.dyn_cast<TypeAttr>()) in getValueAt()
403 loc, val, ans->getValue().cast<TypeAttr>(), success, failure); in generate()
618 if (TypeAttr type = typeOp.typeAttr()) { in generateRewriter()
812 if (TypeAttr typeAttr = typeOp.typeAttr()) { in generateRewriter()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DDecorateCompositeTypeLayoutPass.cpp54 op, TypeAttr::get(decoratedType), globalVarAttrs); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVStructureOps.td381 TypeAttr:$type,
393 OpBuilder<(ins "TypeAttr":$type,
402 OpBuilder<(ins "TypeAttr":$type, "ArrayRef<NamedAttribute>":$namedAttrs),
415 $_state.addAttribute("type", TypeAttr::get(type));
655 TypeAttr:$type,
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinAttributes.cpp266 return unwrap(attr).isa<TypeAttr>(); in mlirAttributeIsAType()
270 return wrap(TypeAttr::get(unwrap(type))); in mlirTypeAttrGet()
274 return wrap(unwrap(attr).cast<TypeAttr>().getValue()); in mlirTypeAttrGetValue()
/llvm-project-15.0.7/mlir/unittests/Dialect/SPIRV/
H A DSerializationTest.cpp75 UnknownLoc::get(&context), TypeAttr::get(ptrType), in addGlobalVar()
/llvm-project-15.0.7/mlir/lib/Dialect/EmitC/IR/
H A DEmitC.cpp105 if (!tArg.isa<TypeAttr>() && !tArg.isa<IntegerAttr>() && in verify()
/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dpython_test.py191 inferred.results[1], TypeAttr.get(IndexType.get()))
/llvm-project-15.0.7/mlir/test/python/
H A Dpython_test_ops.td100 let arguments = (ins AnyType:$input, TypeAttr:$type);

123