| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/ |
| H A D | CIRAttrs.cpp | 203 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 D | CIRDialect.cpp | 93 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 D | CIRGenExprConstant.cpp | 286 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 D | CIRGenDecl.cpp | 168 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 D | CIRGenExprComplex.cpp | 158 mlir::TypedAttr valueAttr = constant.getValue(); in emitConstant() 306 mlir::TypedAttr realValueAttr; in VisitImaginaryLiteral() 307 mlir::TypedAttr imagValueAttr; in VisitImaginaryLiteral()
|
| H A D | CIRGenFunction.h | 397 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 D | CIRGenModule.cpp | 738 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 D | CIRGenExpr.cpp | 1794 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 D | CIRAttrConstraints.td | 38 string cppType = "::mlir::TypedAttr";
|
| H A D | CIRAttrs.td | 403 AttrBuilderWithInferredContext<(ins "mlir::TypedAttr":$real, 404 "mlir::TypedAttr":$imag), [{
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/ |
| H A D | CIRBaseBuilder.h | 69 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 D | LoweringHelpers.cpp | 122 const auto typedConstArr = mlir::cast<mlir::TypedAttr>(constArr); in lowerConstArrayAttr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 573 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 D | ValueMapper.cpp | 1035 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 D | LowerToLLVM.cpp | 1065 mlir::TypedAttr zeroAttr = rewriter.getZeroAttr(complexElemLLVMTy); in matchAndRewrite()
|