/external/llvm-project/flang/test/Fir/ |
D | fir-ops.fir | 3 // RUN: tco -emit-fir %s | tco -emit-fir | FileCheck %s 4 // UNSUPPORTED: !fir 6 // CHECK-LABEL: func private @it1() -> !fir.int<4> 7 // CHECK: func private @box1() -> !fir.boxchar<2> 8 // CHECK: func private @box2() -> !fir.boxproc<(i32, i32) -> i64> 9 // CHECK: func private @box3() -> !fir.box<!fir.type<derived3{f:f32}>> 10 func private @it1() -> !fir.int<4> 11 func private @box1() -> !fir.boxchar<2> 12 func private @box2() -> !fir.boxproc<(i32, i32) -> i64> 13 func private @box3() -> !fir.box<!fir.type<derived3{f:f32}>> [all …]
|
D | fir-types.fir | 3 // RUN: tco -emit-fir %s | tco -emit-fir | FileCheck %s 4 // UNSUPPORTED: !fir 7 // CHECK-LABEL: func private @it1() -> !fir.int<4> 8 // CHECK-LABEL: func private @it2() -> !fir.real<8> 9 // CHECK-LABEL: func private @it3() -> !fir.complex<8> 10 // CHECK-LABEL: func private @it4() -> !fir.logical<1> 11 // CHECK-LABEL: func private @it5() -> !fir.char<1> 12 func private @it1() -> !fir.int<4> 13 func private @it2() -> !fir.real<8> 14 func private @it3() -> !fir.complex<8> [all …]
|
/external/llvm-project/flang/lib/Lower/ |
D | CharacterExpr.cpp | 19 static fir::CharacterType getCharacterType(mlir::Type type) { in getCharacterType() 20 if (auto boxType = type.dyn_cast<fir::BoxCharType>()) in getCharacterType() 22 if (auto refType = type.dyn_cast<fir::ReferenceType>()) in getCharacterType() 24 if (auto seqType = type.dyn_cast<fir::SequenceType>()) { in getCharacterType() 28 if (auto charType = type.dyn_cast<fir::CharacterType>()) in getCharacterType() 33 static fir::CharacterType getCharacterType(const fir::CharBoxValue &box) { in getCharacterType() 37 static bool needToMaterialize(const fir::CharBoxValue &box) { in needToMaterialize() 38 return box.getBuffer().getType().isa<fir::SequenceType>() || in needToMaterialize() 39 box.getBuffer().getType().isa<fir::CharacterType>(); in needToMaterialize() 42 static std::optional<fir::SequenceType::Extent> [all …]
|
D | ConvertExpr.cpp | 13 mlir::Value fir::getBase(const fir::ExtendedValue &ex) { in getBase() 15 [](const fir::UnboxedValue &x) { return x; }, in getBase() 21 llvm::raw_ostream &fir::operator<<(llvm::raw_ostream &os, in operator <<() 22 const fir::CharBoxValue &box) { in operator <<() 28 llvm::raw_ostream &fir::operator<<(llvm::raw_ostream &os, in operator <<() 29 const fir::ArrayBoxValue &box) { in operator <<() 44 llvm::raw_ostream &fir::operator<<(llvm::raw_ostream &os, in operator <<() 45 const fir::CharArrayBoxValue &box) { in operator <<() 60 llvm::raw_ostream &fir::operator<<(llvm::raw_ostream &os, in operator <<() 61 const fir::BoxValue &box) { in operator <<() [all …]
|
D | FIRBuilder.cpp | 21 return fir::createFuncOp(loc, module, name, ty); in createFunction() 30 fir::GlobalOp 33 return modOp.lookupSymbol<fir::GlobalOp>(name); in getNamedGlobal() 37 assert(!eleTy.isa<fir::ReferenceType>()); in getRefType() 38 return fir::ReferenceType::get(eleTy); in getRefType() 63 if (auto firType = realType.dyn_cast<fir::RealType>()) { in createRealZeroConstant() 85 return create<fir::AllocaOp>(loc, ty, nm, llvm::None, indices, attrs); in allocateLocal() 98 assert(!type.isa<fir::ReferenceType>() && "cannot be a reference"); in createTemporary() 99 auto ae = create<fir::AllocaOp>(loc, type, name, llvm::None, shape); in createTemporary() 106 fir::GlobalOp Fortran::lower::FirOpBuilder::createGlobal( in createGlobal() [all …]
|
D | IntrinsicCall.cpp | 102 fir::ExtendedValue genIntrinsicCall(llvm::StringRef name, 104 llvm::ArrayRef<fir::ExtendedValue> arg); 138 fir::ExtendedValue genLen(mlir::Type, llvm::ArrayRef<fir::ExtendedValue>); 139 fir::ExtendedValue genLenTrim(mlir::Type, llvm::ArrayRef<fir::ExtendedValue>); 165 fir::ExtendedValue outlineInWrapper(ExtendedGenerator, llvm::StringRef name, 167 llvm::ArrayRef<fir::ExtendedValue> args); 175 fir::ExtendedValue 177 llvm::ArrayRef<fir::ExtendedValue> args, bool outline); 440 if (auto r{t.dyn_cast<fir::RealType>()}) in getFloatingPointWidth() 442 if (auto cplx{t.dyn_cast<fir::CplxType>()}) in getFloatingPointWidth() [all …]
|
D | ConvertType.cpp | 89 return fir::RealType::get(context, 10); in genFIRType() 95 return fir::RealType::get(context, 16); in genFIRType() 150 return fir::LogicalType::get(context, KIND); in genFIRType() 160 return fir::CharacterType::get(context, KIND); in genFIRType() 170 return fir::CplxType::get(context, KIND); in genFIRType() 282 return fir::SequenceType::get(trivialShape(ptr->itemBytes()), byteTy); in gen() 314 fir::SequenceType::Shape genSeqShape(Fortran::semantics::SymbolRef symbol) { in genSeqShape() 316 fir::SequenceType::Shape bounds; in genSeqShape() 320 fir::SequenceType::Shape genSeqShape(Fortran::semantics::SymbolRef symbol, in genSeqShape() 321 fir::SequenceType::Extent charLen) { in genSeqShape() [all …]
|
D | Mangler.cpp | 68 Fortran::lower::mangle::mangleName(fir::NameUniquer &uniquer, in mangleName() 120 auto result = fir::NameUniquer::deconstruct(name); in demangleName() 132 if (auto refT{t.dyn_cast<fir::ReferenceType>()}) in typeToString() 137 if (auto cplx{t.dyn_cast<fir::CplxType>()}) { in typeToString() 140 if (auto real{t.dyn_cast<fir::RealType>()}) { in typeToString() 146 if (auto logical{t.dyn_cast<fir::LogicalType>()}) { in typeToString() 149 if (auto character{t.dyn_cast<fir::CharacterType>()}) { in typeToString() 152 if (auto boxCharacter{t.dyn_cast<fir::BoxCharType>()}) { in typeToString() 158 std::string fir::mangleIntrinsicProcedure(llvm::StringRef intrinsic, in mangleIntrinsicProcedure()
|
D | RTBuilder.h | 58 return fir::ReferenceType::get(f(context)); 71 return fir::ReferenceType::get(mlir::IntegerType::get(8, context)); 81 return fir::ReferenceType::get(mlir::IntegerType::get(16, context)); 87 return fir::ReferenceType::get(mlir::IntegerType::get(32, context)); 93 return fir::ReferenceType::get( 94 fir::PointerType::get(mlir::IntegerType::get(8, context))); 107 return fir::ReferenceType::get(f(context)); 130 return fir::ReferenceType::get(f(context)); 143 return fir::ReferenceType::get(f(context)); 156 return fir::ReferenceType::get(f(context)); [all …]
|
D | ComplexExpr.cpp | 19 builder.getContext(), complexType.cast<fir::CplxType>().getFKind()); in getComplexPartType() 27 mlir::Value Fortran::lower::ComplexExprHelper::createComplex(fir::KindTy kind, in createComplex() 30 auto complexTy = fir::CplxType::get(builder.getContext(), kind); in createComplex() 31 mlir::Value und = builder.create<fir::UndefOp>(loc, complexTy); in createComplex() 38 mlir::Value und = builder.create<fir::UndefOp>(loc, cplxTy); in createComplex()
|
D | CharacterRuntime.cpp | 52 return argTy.cast<fir::SequenceType>().getShape()[0]; in getLength() 71 if (auto charTy = ty.dyn_cast<fir::CharacterType>()) in discoverKind() 73 if (auto eleTy = fir::dyn_cast_ptrEleTy(ty)) in discoverKind() 75 if (auto arrTy = ty.dyn_cast<fir::SequenceType>()) in discoverKind() 77 if (auto boxTy = ty.dyn_cast<fir::BoxCharType>()) in discoverKind() 79 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in discoverKind()
|
/external/freetype/src/base/ |
D | ftlcdfil.c | 103 FT_UInt fir[5]; in ft_lcd_filter_fir() local 108 fir[2] = weights[2] * val; in ft_lcd_filter_fir() 109 fir[3] = weights[3] * val; in ft_lcd_filter_fir() 110 fir[4] = weights[4] * val; in ft_lcd_filter_fir() 113 fir[1] = fir[2] + weights[1] * val; in ft_lcd_filter_fir() 114 fir[2] = fir[3] + weights[2] * val; in ft_lcd_filter_fir() 115 fir[3] = fir[4] + weights[3] * val; in ft_lcd_filter_fir() 116 fir[4] = weights[4] * val; in ft_lcd_filter_fir() 121 fir[0] = fir[1] + weights[0] * val; in ft_lcd_filter_fir() 122 fir[1] = fir[2] + weights[1] * val; in ft_lcd_filter_fir() [all …]
|
/external/llvm-project/flang/include/flang/Lower/ |
D | CharacterExpr.h | 48 mlir::Value createBlankConstant(fir::CharacterType type); 119 fir::ExtendedValue toExtendedValue(mlir::Value character, 123 fir::CharBoxValue materializeValue(const fir::CharBoxValue &str); 124 fir::CharBoxValue toDataLengthPair(mlir::Value character); 125 mlir::Type getReferenceType(const fir::CharBoxValue &c) const; 126 mlir::Value createEmbox(const fir::CharBoxValue &str); 127 mlir::Value createLoadCharAt(const fir::CharBoxValue &str, mlir::Value index); 128 void createStoreCharAt(const fir::CharBoxValue &str, mlir::Value index, 130 void createCopy(const fir::CharBoxValue &dest, const fir::CharBoxValue &src, 132 void createPadding(const fir::CharBoxValue &str, mlir::Value lower, [all …]
|
D | FIRBuilder.h | 40 explicit FirOpBuilder(mlir::Operation *op, const fir::KindMapping &kindMap) in FirOpBuilder() 57 const fir::KindMapping &getKindMap() { return kindMap; } in getKindMap() 106 fir::GlobalOp createGlobal(mlir::Location loc, mlir::Type type, 111 fir::GlobalOp createGlobal(mlir::Location loc, mlir::Type type, 117 fir::GlobalOp createGlobalConstant(mlir::Location loc, mlir::Type type, 124 fir::GlobalOp 134 fir::StringLitOp createStringLit(mlir::Location loc, mlir::Type eleTy, 146 fir::GlobalOp getNamedGlobal(llvm::StringRef name) { in getNamedGlobal() 150 static fir::GlobalOp getNamedGlobal(mlir::ModuleOp module, 192 const fir::KindMapping &kindMap;
|
/external/llvm-project/flang/lib/Optimizer/Dialect/ |
D | FIROps.cpp | 21 using namespace fir; 31 if (auto st = inType.dyn_cast<fir::SequenceType>()) { in verifyInType() 36 if (shape[i] != fir::SequenceType::getUnknownExtent()) in verifyInType() 41 } else if (auto rt = inType.dyn_cast<fir::RecordType>()) { in verifyInType() 51 } else if (auto rt = inType.dyn_cast<fir::PointerType>()) { in verifyInType() 59 if (auto rt = inType.dyn_cast<fir::RecordType>()) in verifyRecordLenParams() 70 mlir::OpFoldResult fir::AddfOp::fold(llvm::ArrayRef<mlir::Attribute> opnds) { in fold() 79 mlir::Type fir::AllocaOp::getAllocatedType() { in getAllocatedType() 84 mlir::Type fir::AllocaOp::wrapResultType(mlir::Type intype) { in wrapResultType() 91 mlir::Type fir::AllocaOp::getRefTy(mlir::Type ty) { in getRefTy() [all …]
|
D | FIRType.cpp | 18 using namespace fir; 184 return ty.isa<mlir::IntegerType>() || ty.isa<fir::IntType>(); in isaIntegerType() 302 return !fir::isa_ref_type(ty); in singleIndirectionLevel() 310 mlir::Type fir::parseFirType(FIROpsDialect *, mlir::DialectAsmParser &parser) { in parseFirType() 357 namespace fir { namespace 859 .Case<fir::ReferenceType, fir::PointerType, fir::HeapType>( in dyn_cast_ptrEleTy() 868 CharacterType fir::CharacterType::get(mlir::MLIRContext *ctxt, KindTy kind) { in get() 872 int fir::CharacterType::getFKind() const { return getImpl()->getFKind(); } in getFKind() 876 DimsType fir::DimsType::get(mlir::MLIRContext *ctxt, unsigned rank) { in get() 880 unsigned fir::DimsType::getRank() const { return getImpl()->getRank(); } in getRank() [all …]
|
D | FIRAttr.cpp | 17 using namespace fir; 19 namespace fir { namespace 205 if (auto exact = attr.dyn_cast<fir::ExactTypeAttr>()) { in printFirAttribute() 206 os << fir::ExactTypeAttr::getAttrName() << '<'; in printFirAttribute() 209 } else if (auto sub = attr.dyn_cast<fir::SubclassAttr>()) { in printFirAttribute() 210 os << fir::SubclassAttr::getAttrName() << '<'; in printFirAttribute() 213 } else if (attr.dyn_cast_or_null<fir::PointIntervalAttr>()) { in printFirAttribute() 214 os << fir::PointIntervalAttr::getAttrName(); in printFirAttribute() 215 } else if (attr.dyn_cast_or_null<fir::ClosedIntervalAttr>()) { in printFirAttribute() 216 os << fir::ClosedIntervalAttr::getAttrName(); in printFirAttribute() [all …]
|
D | FIRDialect.cpp | 14 using namespace fir; 16 fir::FIROpsDialect::FIROpsDialect(mlir::MLIRContext *ctx) in FIROpsDialect() 30 fir::FIROpsDialect::~FIROpsDialect() { in ~FIROpsDialect() 34 mlir::Type fir::FIROpsDialect::parseType(mlir::DialectAsmParser &parser) const { in parseType() 38 void fir::FIROpsDialect::printType(mlir::Type ty, in printType() 44 fir::FIROpsDialect::parseAttribute(mlir::DialectAsmParser &parser, in parseAttribute() 49 void fir::FIROpsDialect::printAttribute(mlir::Attribute attr, in printAttribute()
|
/external/llvm-project/flang/include/flang/Optimizer/Dialect/ |
D | FIROps.td | 23 let name = "fir"; 24 let cppNamespace = "::fir"; 29 def fir_Type : Type<CPred<"fir::isa_fir_or_std_type($_self)">, 33 def fir_CharacterType : Type<CPred<"$_self.isa<fir::CharacterType>()">, 35 def fir_ComplexType : Type<CPred<"$_self.isa<fir::CplxType>()">, 37 def fir_IntegerType : Type<CPred<"$_self.isa<fir::IntType>()">, 39 def fir_LogicalType : Type<CPred<"$_self.isa<fir::LogicalType>()">, 41 def fir_RealType : Type<CPred<"$_self.isa<fir::RealType>()">, 54 def fir_RecordType : Type<CPred<"$_self.isa<fir::RecordType>()">, 58 def fir_SequenceType : Type<CPred<"$_self.isa<fir::SequenceType>()">, [all …]
|
D | FIROpsSupport.h | 16 namespace fir { 20 if (auto load = dyn_cast<fir::LoadOp>(op)) in nonVolatileLoad() 27 return isa<fir::CallOp>(op) || isa<fir::DispatchOp>(op) || in isaCall() 58 fir::GlobalOp createGlobalOp(mlir::Location loc, mlir::ModuleOp module,
|
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | compound_packet_unittest.cc | 41 Fir fir; in TEST() local 42 fir.AddRequestTo(kRemoteSsrc, kSeqNo); in TEST() 48 compound.Append(&fir); in TEST() 56 EXPECT_EQ(1, parser.fir()->num_packets()); in TEST() 62 Fir fir; in TEST() local 63 fir.AddRequestTo(kRemoteSsrc, kSeqNo); in TEST() 70 leaf.Append(&fir); in TEST() 84 EXPECT_EQ(1, parser.fir()->num_packets()); in TEST() 89 Fir fir; in TEST() local 90 fir.AddRequestTo(kRemoteSsrc, kSeqNo); in TEST() [all …]
|
D | fir_unittest.cc | 49 Fir fir; in TEST() local 50 fir.SetSenderSsrc(kSenderSsrc); in TEST() 51 fir.AddRequestTo(kRemoteSsrc, kSeqNr); in TEST() 53 rtc::Buffer packet = fir.Build(); in TEST() 60 Fir fir; in TEST() local 61 fir.SetSenderSsrc(kSenderSsrc); in TEST() 62 fir.AddRequestTo(kRemoteSsrc, kSeqNr); in TEST() 63 fir.AddRequestTo(kRemoteSsrc + 1, kSeqNr + 1); in TEST() 65 rtc::Buffer packet = fir.Build(); in TEST()
|
/external/llvm-project/flang/lib/Optimizer/Support/ |
D | KindMapping.cpp | 18 using Bitsize = fir::KindMapping::Bitsize; 19 using KindTy = fir::KindMapping::KindTy; 20 using LLVMTypeID = fir::KindMapping::LLVMTypeID; 21 using MatchResult = fir::KindMapping::MatchResult; 174 fir::KindMapping::KindMapping(mlir::MLIRContext *context, llvm::StringRef map) in KindMapping() 182 fir::KindMapping::KindMapping(mlir::MLIRContext *context) in KindMapping() 185 MatchResult fir::KindMapping::badMapString(const llvm::Twine &ptr) { in badMapString() 191 MatchResult fir::KindMapping::parse(llvm::StringRef kindMap) { in parse() 221 Bitsize fir::KindMapping::getCharacterBitsize(KindTy kind) const { in getCharacterBitsize() 225 Bitsize fir::KindMapping::getIntegerBitsize(KindTy kind) const { in getIntegerBitsize() [all …]
|
D | InternalNames.cpp | 72 std::string fir::NameUniquer::toLower(llvm::StringRef name) { in toLower() 76 std::string fir::NameUniquer::intAsString(std::int64_t i) { in intAsString() 81 std::string fir::NameUniquer::doKind(std::int64_t kind) { in doKind() 88 std::string fir::NameUniquer::doKinds(llvm::ArrayRef<std::int64_t> kinds) { in doKinds() 95 std::string fir::NameUniquer::doCommonBlock(llvm::StringRef name) { in doCommonBlock() 101 fir::NameUniquer::doConstant(llvm::ArrayRef<llvm::StringRef> modules, in doConstant() 110 fir::NameUniquer::doDispatchTable(llvm::ArrayRef<llvm::StringRef> modules, in doDispatchTable() 119 std::string fir::NameUniquer::doGenerated(llvm::StringRef name) { in doGenerated() 124 std::string fir::NameUniquer::doIntrinsicTypeDescriptor( in doIntrinsicTypeDescriptor() 153 fir::NameUniquer::doProcedure(llvm::ArrayRef<llvm::StringRef> modules, in doProcedure() [all …]
|
/external/llvm-project/flang/include/flang/Optimizer/Transforms/ |
D | Passes.td | 20 let summary = "Promotes fir.loop and fir.where to affine.for and affine.if where possible"; 24 let constructor = "fir::createPromoteToAffinePass()"; 32 let constructor = "fir::createCSEPass()"; 36 let summary = "Convert affine dialect, fir.select_type to standard dialect"; 40 let constructor = "fir::createControlFlowLoweringPass()"; 48 let constructor = "fir::createFirToCfgPass()";
|