Lines Matching refs:lower
41 static mlir::Value genScalarValue(Fortran::lower::AbstractConverter &converter, in genScalarValue()
43 const Fortran::lower::SomeExpr &expr, in genScalarValue()
44 Fortran::lower::SymMap &symMap, in genScalarValue()
45 Fortran::lower::StatementContext &context) { in genScalarValue()
48 return fir::getBase(Fortran::lower::createSomeExtendedExpression( in genScalarValue()
68 genInitializerExprValue(Fortran::lower::AbstractConverter &converter, in genInitializerExprValue()
70 const Fortran::lower::SomeExpr &expr, in genInitializerExprValue()
71 Fortran::lower::StatementContext &stmtCtx) { in genInitializerExprValue()
77 Fortran::lower::SymMap emptyMap; in genInitializerExprValue()
78 return Fortran::lower::createSomeInitializerExpression(loc, converter, expr, in genInitializerExprValue()
100 static fir::GlobalOp defineGlobal(Fortran::lower::AbstractConverter &converter,
101 const Fortran::lower::pft::Variable &var,
105 static mlir::Location genLocation(Fortran::lower::AbstractConverter &converter, in genLocation()
115 static fir::GlobalOp declareGlobal(Fortran::lower::AbstractConverter &converter, in declareGlobal()
116 const Fortran::lower::pft::Variable &var, in declareGlobal()
158 fir::ExtendedValue Fortran::lower::genExtAddrInInitializer( in genExtAddrInInitializer()
159 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in genExtAddrInInitializer()
160 const Fortran::lower::SomeExpr &addr) { in genExtAddrInInitializer()
161 Fortran::lower::SymMap globalOpSymMap; in genExtAddrInInitializer()
162 Fortran::lower::AggregateStoreMap storeMap; in genExtAddrInInitializer()
163 Fortran::lower::StatementContext stmtCtx; in genExtAddrInInitializer()
171 auto var = Fortran::lower::pft::Variable(*sym, /*global=*/true); in genExtAddrInInitializer()
172 Fortran::lower::instantiateVariable(converter, var, globalOpSymMap, in genExtAddrInInitializer()
175 return Fortran::lower::createInitializerAddress(loc, converter, addr, in genExtAddrInInitializer()
180 mlir::Value Fortran::lower::genInitialDataTarget( in genInitialDataTarget()
181 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in genInitialDataTarget()
182 mlir::Type boxType, const Fortran::lower::SomeExpr &initialTarget) { in genInitialDataTarget()
183 Fortran::lower::SymMap globalOpSymMap; in genInitialDataTarget()
184 Fortran::lower::AggregateStoreMap storeMap; in genInitialDataTarget()
185 Fortran::lower::StatementContext stmtCtx; in genInitialDataTarget()
199 auto var = Fortran::lower::pft::Variable(*sym, /*global=*/true); in genInitialDataTarget()
200 Fortran::lower::instantiateVariable(converter, var, globalOpSymMap, in genInitialDataTarget()
205 box = fir::getBase(Fortran::lower::createSomeArrayBox( in genInitialDataTarget()
208 fir::ExtendedValue addr = Fortran::lower::createInitializerAddress( in genInitialDataTarget()
263 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in genDefaultInitializerValue()
265 Fortran::lower::StatementContext &stmtCtx) { in genDefaultInitializerValue()
376 static fir::GlobalOp defineGlobal(Fortran::lower::AbstractConverter &converter, in defineGlobal()
377 const Fortran::lower::pft::Variable &var, in defineGlobal()
409 global = Fortran::lower::createDenseGlobal( in defineGlobal()
429 Fortran::lower::genInitialDataTarget(converter, loc, symTy, expr); in defineGlobal()
446 Fortran::lower::StatementContext stmtCtx( in defineGlobal()
457 Fortran::lower::StatementContext stmtCtx( in defineGlobal()
495 const Fortran::lower::pft::Variable &var) { in getLinkageAttribute()
512 static void instantiateGlobal(Fortran::lower::AbstractConverter &converter, in instantiateGlobal()
513 const Fortran::lower::pft::Variable &var, in instantiateGlobal()
514 Fortran::lower::SymMap &symMap) { in instantiateGlobal()
518 std::string globalName = Fortran::lower::mangle::mangleName(sym); in instantiateGlobal()
531 Fortran::lower::StatementContext stmtCtx; in instantiateGlobal()
542 static mlir::Value createNewLocal(Fortran::lower::AbstractConverter &converter, in createNewLocal()
544 const Fortran::lower::pft::Variable &var, in createNewLocal()
551 std::string nm = Fortran::lower::mangle::mangleName(var.getSymbol());
563 mustBeDefaultInitializedAtRuntime(const Fortran::lower::pft::Variable &var) { in mustBeDefaultInitializedAtRuntime()
579 defaultInitializeAtRuntime(Fortran::lower::AbstractConverter &converter, in defaultInitializeAtRuntime()
580 const Fortran::lower::pft::Variable &var, in defaultInitializeAtRuntime()
581 Fortran::lower::SymMap &symMap) { in defaultInitializeAtRuntime()
607 static void instantiateLocal(Fortran::lower::AbstractConverter &converter, in instantiateLocal()
608 const Fortran::lower::pft::Variable &var, in instantiateLocal()
609 Fortran::lower::SymMap &symMap) { in instantiateLocal()
611 Fortran::lower::StatementContext stmtCtx; in instantiateLocal()
622 static void insertAggregateStore(Fortran::lower::AggregateStoreMap &storeMap, in insertAggregateStore()
623 const Fortran::lower::pft::Variable &var, in insertAggregateStore()
626 Fortran::lower::AggregateStoreKey key = {var.getOwningScope(), off}; in insertAggregateStore()
633 getAggregateStore(Fortran::lower::AggregateStoreMap &storeMap, in getAggregateStore()
634 const Fortran::lower::pft::Variable &alias) { in getAggregateStore()
635 Fortran::lower::AggregateStoreKey key = {alias.getOwningScope(), in getAggregateStore()
644 const Fortran::lower::pft::Variable::AggregateStore &st) { in mangleGlobalAggregateStore()
645 return Fortran::lower::mangle::mangleName(st.getNamingSymbol()); in mangleGlobalAggregateStore()
650 getAggregateType(Fortran::lower::AbstractConverter &converter, in getAggregateType()
651 const Fortran::lower::pft::Variable::AggregateStore &st) { in getAggregateType()
668 Fortran::lower::AbstractConverter &converter, in defineGlobalAggregateStore()
669 const Fortran::lower::pft::Variable::AggregateStore &aggregate, in defineGlobalAggregateStore()
688 Fortran::lower::StatementContext stmtCtx; in defineGlobalAggregateStore()
699 Fortran::lower::StatementContext stmtCtx; in defineGlobalAggregateStore()
715 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in declareGlobalAggregateStore()
716 const Fortran::lower::pft::Variable::AggregateStore &aggregate, in declareGlobalAggregateStore()
729 instantiateAggregateStore(Fortran::lower::AbstractConverter &converter, in instantiateAggregateStore()
730 const Fortran::lower::pft::Variable &var, in instantiateAggregateStore()
731 Fortran::lower::AggregateStoreMap &storeMap) { in instantiateAggregateStore()
784 static void instantiateAlias(Fortran::lower::AbstractConverter &converter, in instantiateAlias()
785 const Fortran::lower::pft::Variable &var, in instantiateAlias()
786 Fortran::lower::SymMap &symMap, in instantiateAlias()
787 Fortran::lower::AggregateStoreMap &storeMap) { in instantiateAlias()
803 Fortran::lower::StatementContext stmtCtx; in instantiateAlias()
837 Fortran::lower::AbstractConverter &converter, in getTypeOfCommonWithInit()
912 getCommonBlockGlobal(Fortran::lower::AbstractConverter &converter, in getCommonBlockGlobal()
915 std::string commonName = Fortran::lower::mangle::mangleName(common); in getCommonBlockGlobal()
931 declareCommonBlock(Fortran::lower::AbstractConverter &converter, in declareCommonBlock()
935 std::string commonName = Fortran::lower::mangle::mangleName(common); in declareCommonBlock()
975 mlir::Location loc, Fortran::lower::AbstractConverter &converter, in finalizeCommonBlockDefinition()
996 Fortran::lower::StatementContext stmtCtx; in finalizeCommonBlockDefinition()
1000 ? Fortran::lower::genInitialDataTarget( in finalizeCommonBlockDefinition()
1019 void Fortran::lower::defineCommonBlocks( in defineCommonBlocks()
1020 Fortran::lower::AbstractConverter &converter, in defineCommonBlocks()
1038 static void instantiateCommon(Fortran::lower::AbstractConverter &converter, in instantiateCommon()
1040 const Fortran::lower::pft::Variable &var, in instantiateCommon()
1041 Fortran::lower::SymMap &symMap) { in instantiateCommon()
1047 if (Fortran::lower::SymbolBox symBox = symMap.lookupSymbol(common)) in instantiateCommon()
1072 Fortran::lower::StatementContext stmtCtx; in instantiateCommon()
1116 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in lowerExplicitLowerBounds()
1117 const Fortran::lower::BoxAnalyzer &box, in lowerExplicitLowerBounds()
1118 llvm::SmallVectorImpl<mlir::Value> &result, Fortran::lower::SymMap &symMap, in lowerExplicitLowerBounds()
1119 Fortran::lower::StatementContext &stmtCtx) { in lowerExplicitLowerBounds()
1131 auto expr = Fortran::lower::SomeExpr{*low}; in lowerExplicitLowerBounds()
1144 lowerExplicitExtents(Fortran::lower::AbstractConverter &converter, in lowerExplicitExtents()
1145 mlir::Location loc, const Fortran::lower::BoxAnalyzer &box, in lowerExplicitExtents()
1148 Fortran::lower::SymMap &symMap, in lowerExplicitExtents()
1149 Fortran::lower::StatementContext &stmtCtx) { in lowerExplicitExtents()
1161 auto expr = Fortran::lower::SomeExpr{*up}; in lowerExplicitExtents()
1180 lowerExplicitCharLen(Fortran::lower::AbstractConverter &converter, in lowerExplicitCharLen()
1181 mlir::Location loc, const Fortran::lower::BoxAnalyzer &box, in lowerExplicitCharLen()
1182 Fortran::lower::SymMap &symMap, in lowerExplicitCharLen()
1183 Fortran::lower::StatementContext &stmtCtx) { in lowerExplicitCharLen()
1190 if (llvm::Optional<Fortran::lower::SomeExpr> lenExpr = box.getCharLenExpr()) in lowerExplicitCharLen()
1233 void Fortran::lower::mapSymbolAttributes( in mapSymbolAttributes()
1234 AbstractConverter &converter, const Fortran::lower::pft::Variable &var, in mapSymbolAttributes()
1235 Fortran::lower::SymMap &symMap, Fortran::lower::StatementContext &stmtCtx, in mapSymbolAttributes()
1254 Fortran::lower::getDummyProcedureType(sym, converter); in mapSymbolAttributes()
1263 Fortran::lower::BoxAnalyzer ba; in mapSymbolAttributes()
1274 if (Fortran::lower::SymbolBox symbox = symMap.lookupSymbol(sym)) in mapSymbolAttributes()
1294 fir::MutableBoxValue box = Fortran::lower::createMutableBox( in mapSymbolAttributes()
1359 auto genValue = [&](const Fortran::lower::SomeExpr &expr) { in mapSymbolAttributes()
1373 Fortran::lower::SomeExpr highEx{*high}; in mapSymbolAttributes()
1409 auto expr = Fortran::lower::SomeExpr{*low}; in mapSymbolAttributes()
1418 auto expr = Fortran::lower::SomeExpr{*low}; in mapSymbolAttributes()
1426 auto expr = Fortran::lower::SomeExpr{*high}; in mapSymbolAttributes()
1441 [&](llvm::Optional<Fortran::lower::SomeExpr> charLen) -> mlir::Value { in mapSymbolAttributes()
1454 [&](const Fortran::lower::details::ScalarSym &) { in mapSymbolAttributes()
1482 [&](const Fortran::lower::details::ScalarStaticChar &x) { in mapSymbolAttributes()
1486 Fortran::lower::SymbolBox symBox = symMap.lookupSymbol(sym); in mapSymbolAttributes()
1506 [&](const Fortran::lower::details::ScalarDynamicChar &x) { in mapSymbolAttributes()
1512 Fortran::lower::SymbolBox symBox = symMap.lookupSymbol(sym); in mapSymbolAttributes()
1538 [&](const Fortran::lower::details::StaticArray &x) { in mapSymbolAttributes()
1567 assert(isDummy || Fortran::lower::isExplicitShape(sym) || in mapSymbolAttributes()
1574 [&](const Fortran::lower::details::DynamicArray &x) { in mapSymbolAttributes()
1599 assert(Fortran::lower::isExplicitShape(sym) || in mapSymbolAttributes()
1615 assert(Fortran::lower::isExplicitShape(sym)); in mapSymbolAttributes()
1623 [&](const Fortran::lower::details::StaticArrayStaticChar &x) { in mapSymbolAttributes()
1629 Fortran::lower::SymbolBox symBox = symMap.lookupSymbol(sym); in mapSymbolAttributes()
1672 assert(Fortran::lower::isExplicitShape(sym)); in mapSymbolAttributes()
1680 [&](const Fortran::lower::details::StaticArrayDynamicChar &x) { in mapSymbolAttributes()
1689 Fortran::lower::SymbolBox symBox = symMap.lookupSymbol(sym); in mapSymbolAttributes()
1744 assert((!mustBeDummy) && (Fortran::lower::isExplicitShape(sym))); in mapSymbolAttributes()
1752 [&](const Fortran::lower::details::DynamicArrayStaticChar &x) { in mapSymbolAttributes()
1804 assert(Fortran::lower::isExplicitShape(sym)); in mapSymbolAttributes()
1812 [&](const Fortran::lower::details::DynamicArrayDynamicChar &x) { in mapSymbolAttributes()
1878 assert(Fortran::lower::isExplicitShape(sym)); in mapSymbolAttributes()
1886 [&](const Fortran::lower::BoxAnalyzer::None &) { in mapSymbolAttributes()
1892 void Fortran::lower::defineModuleVariable( in defineModuleVariable()
1893 AbstractConverter &converter, const Fortran::lower::pft::Variable &var) { in defineModuleVariable()
1903 const Fortran::lower::pft::Variable::AggregateStore &aggregate = in defineModuleVariable()
1918 std::string globalName = Fortran::lower::mangle::mangleName(sym); in defineModuleVariable()
1923 void Fortran::lower::instantiateVariable(AbstractConverter &converter, in instantiateVariable()
1925 Fortran::lower::SymMap &symMap, in instantiateVariable()
1942 void Fortran::lower::mapCallInterfaceSymbols( in mapCallInterfaceSymbols()
1943 AbstractConverter &converter, const Fortran::lower::CallerInterface &caller, in mapCallInterfaceSymbols()
1945 Fortran::lower::AggregateStoreMap storeMap; in mapCallInterfaceSymbols()
1947 for (Fortran::lower::pft::Variable var : in mapCallInterfaceSymbols()
1948 Fortran::lower::pft::buildFuncResultDependencyList(result)) { in mapCallInterfaceSymbols()
1967 Fortran::lower::SymbolBox hostValue = in mapCallInterfaceSymbols()
1990 void Fortran::lower::createRuntimeTypeInfoGlobal( in createRuntimeTypeInfoGlobal()
1991 Fortran::lower::AbstractConverter &converter, mlir::Location loc, in createRuntimeTypeInfoGlobal()
1994 std::string globalName = Fortran::lower::mangle::mangleName(typeInfoSym); in createRuntimeTypeInfoGlobal()
1995 auto var = Fortran::lower::pft::Variable(typeInfoSym, /*global=*/true); in createRuntimeTypeInfoGlobal()