Home
last modified time | relevance | path

Searched refs:TypedAttr (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRAttrs.cpp203 cir::ComplexType type, mlir::TypedAttr real, in verify()
204 mlir::TypedAttr imag) { in verify()
284 auto ta = mlir::cast<TypedAttr>(*resultVal); in parse()
352 auto typedElement = mlir::dyn_cast<TypedAttr>(element); in verify()
H A DCIRDialect.cpp93 mlir::cast<mlir::TypedAttr>(value)); in materializeConstant()
331 auto at = cast<TypedAttr>(attrType); in checkConstantTypes()
344 assert(isa<TypedAttr>(attrType) && "What else could we be looking at here?"); in checkConstantTypes()
346 << cast<TypedAttr>(attrType).getType() << " not yet supported"; in checkConstantTypes()
1297 assert(mlir::isa<mlir::TypedAttr>(initialValueAttr) && in parseGlobalOpTypeAndInitialValue()
1299 auto typedAttr = mlir::cast<mlir::TypedAttr>(initialValueAttr); in parseGlobalOpTypeAndInitialValue()
2052 auto realAttr = mlir::cast<mlir::TypedAttr>(real); in fold()
2053 auto imagAttr = mlir::cast<mlir::TypedAttr>(imag); in fold()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprConstant.cpp286 SmallVectorImpl<mlir::TypedAttr> &elements, in emitArrayConstant()
287 mlir::TypedAttr filler) { in emitArrayConstant()
716 SmallVector<mlir::TypedAttr, 16> elements; in tryEmitPrivate()
730 const mlir::TypedAttr elementTyped = mlir::cast<mlir::TypedAttr>(element); in tryEmitPrivate()
740 mlir::TypedAttr typedFiller = llvm::cast_or_null<mlir::TypedAttr>(filler); in tryEmitPrivate()
H A DCIRGenDecl.cpp168 auto typedConstant = mlir::dyn_cast<mlir::TypedAttr>(constant); in emitAutoVarInit()
355 mlir::TypedAttr init = in addInitializerToStaticVarDecl()
356 mlir::cast<mlir::TypedAttr>(emitter.tryEmitForInitializer(d)); in addInitializerToStaticVarDecl()
H A DCIRGenExprComplex.cpp158 mlir::TypedAttr valueAttr = constant.getValue(); in emitConstant()
306 mlir::TypedAttr realValueAttr; in VisitImaginaryLiteral()
307 mlir::TypedAttr imagValueAttr; in VisitImaginaryLiteral()
H A DCIRGenFunction.h397 ConstantEmission(mlir::TypedAttr c, bool isReference) in ConstantEmission()
402 static ConstantEmission forReference(mlir::TypedAttr c) { in forReference()
405 static ConstantEmission forValue(mlir::TypedAttr c) { in forValue()
421 mlir::TypedAttr getValue() const { in getValue()
423 return mlir::cast<mlir::TypedAttr>(valueAndIsReference.getPointer()); in getValue()
H A DCIRGenModule.cpp738 assert(mlir::isa<mlir::TypedAttr>(init) && "This should have a type"); in emitGlobalVarDefinition()
739 auto typedInitAttr = mlir::cast<mlir::TypedAttr>(init); in emitGlobalVarDefinition()
1125 generateStringLiteral(mlir::Location loc, mlir::TypedAttr c, in generateStringLiteral()
1200 auto typedC = llvm::cast<mlir::TypedAttr>(c); in getGlobalForStringLiteral()
H A DCIRGenExpr.cpp1794 mlir::TypedAttr cstToEmit = mlir::dyn_cast_if_present<mlir::TypedAttr>(c); in tryEmitAsConstant()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRAttrConstraints.td38 string cppType = "::mlir::TypedAttr";
H A DCIRAttrs.td403 AttrBuilderWithInferredContext<(ins "mlir::TypedAttr":$real,
404 "mlir::TypedAttr":$imag), [{
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h69 cir::ConstantOp getConstant(mlir::Location loc, mlir::TypedAttr attr) { in getConstant()
83 mlir::TypedAttr getConstNullPtrAttr(mlir::Type t) { in getConstNullPtrAttr()
88 mlir::TypedAttr getZeroInitAttr(mlir::Type ty) { in getZeroInitAttr()
172 mlir::TypedAttr getConstPtrAttr(mlir::Type type, int64_t value) { in getConstPtrAttr()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/
H A DLoweringHelpers.cpp122 const auto typedConstArr = mlir::cast<mlir::TypedAttr>(constArr); in lowerConstArrayAttr()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp573 Attribute::AttrKind TypedAttr = (Attribute::AttrKind)AttrIdx; in mapAttributeTypes() local
574 if (Attrs.hasAttributeAtIndex(i, TypedAttr)) { in mapAttributeTypes()
576 Attrs.getAttributeAtIndex(i, TypedAttr).getValueAsType()) { in mapAttributeTypes()
577 Attrs = Attrs.replaceAttributeTypeAtIndex(C, i, TypedAttr, in mapAttributeTypes()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp1035 Attribute::AttrKind TypedAttr = (Attribute::AttrKind)AttrIdx; in remapInstruction() local
1037 Attrs.getAttributeAtIndex(i, TypedAttr).getValueAsType()) { in remapInstruction()
1038 Attrs = Attrs.replaceAttributeTypeAtIndex(C, i, TypedAttr, in remapInstruction()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1065 mlir::TypedAttr zeroAttr = rewriter.getZeroAttr(complexElemLLVMTy); in matchAndRewrite()