/llvm-project/llvm/test/MC/AArch64/ |
H A D | atomic-acquire-comment.s | 3 ; CHECK: ldaddab w3, wzr, [x5] ; acquire semantics dropped since destination is zero 4 ; CHECK: ldaddah w5, wzr, [x0] ; acquire semantics dropped since destination is zero 5 ; CHECK: ldadda w7, wzr, [x5] ; acquire semantics dropped since destination is zero 6 ; CHECK: ldadda x9, xzr, [sp] ; acquire semantics dropped since destination is zero 12 ; CHECK: ldaddalb w3, wzr, [x5] ; acquire semantics dropped since destination is zero 13 ; CHECK: ldaddalh w5, wzr, [x0] ; acquire semantics dropped since destination is zero 14 ; CHECK: ldaddal w7, wzr, [x5] ; acquire semantics dropped since destination is zero 15 ; CHECK: ldaddal x9, xzr, [sp] ; acquire semantics dropped since destination is zero 21 ; CHECK: ldclrab w3, wzr, [x5] ; acquire semantics dropped since destination is zero 22 ; CHECK: ldclrah w5, wzr, [x0] ; acquire semantics dropped since destination is zero [all …]
|
/llvm-project/flang/lib/Evaluate/ |
H A D | type.cpp | 15 #include "flang/Semantics/scope.h" 16 #include "flang/Semantics/symbol.h" 17 #include "flang/Semantics/tools.h" 18 #include "flang/Semantics/type.h" 25 namespace Fortran::semantics { namespace 90 if (semantics::IsAssumedSizeArray(symbol)) { in IsPassedViaDescriptor() 115 } // namespace Fortran::semantics 119 DynamicType::DynamicType(int k, const semantics::ParamValue &pv) in DynamicType() 159 case semantics::DerivedTypeSpec::Category::DerivedType: in GetAlignment() 164 case semantics in GetAlignment() [all...] |
H A D | check-expression.cpp | 15 #include "flang/Semantics/semantics.h" 16 #include "flang/Semantics/symbol.h" 17 #include "flang/Semantics/tools.h" 46 return INVARIANT || semantics::IsKindTypeParameter(inq.parameter()); in operator ()() 48 bool operator()(const semantics::Symbol &symbol) const { in operator ()() 52 ultimate.has<semantics::TypeParamDetails>() || in operator ()() 54 !symbol.attrs().test(semantics::Attr::VALUE)); in operator ()() 57 bool operator()(const semantics::ParamValue ¶m) const { in operator ()() 90 !sym.attrs().test(semantics in operator ()() [all...] |
H A D | characteristics.cpp | 17 #include "flang/Semantics/scope.h" 18 #include "flang/Semantics/symbol.h" 19 #include "flang/Semantics/tools.h" 30 static void CopyAttrs(const semantics::Symbol &src, A &dst, in CopyAttrs() 31 const std::initializer_list<std::pair<semantics::Attr, B>> &pairs) { in CopyAttrs() 86 const semantics::Symbol &symbol, FoldingContext &context, in Characterize() 91 [&](const semantics::ProcEntityDetails &proc) { in Characterize() 101 [&](const semantics::AssocEntityDetails &assoc) { in Characterize() 104 [&](const semantics::ProcBindingDetails &binding) { in Characterize() 109 if constexpr (std::is_same_v<Ty, semantics in Characterize() [all...] |
/llvm-project/flang/lib/Lower/ |
H A D | Mangler.cpp | 15 #include "flang/Semantics/tools.h" 26 ancestors(const Fortran::semantics::Scope &scope, in ancestors() 28 llvm::SmallVector<const Fortran::semantics::Scope *> scopes; in ancestors() 38 case Fortran::semantics::Scope::Kind::Module: in ancestors() 41 case Fortran::semantics::Scope::Kind::Subprogram: in ancestors() 44 case Fortran::semantics::Scope::Kind::MainProgram: in ancestors() 50 case Fortran::semantics::Scope::Kind::BlockConstruct: { in ancestors() 68 ancestors(const Fortran::semantics::Symbol &symbol, in ancestors() 76 const Fortran::semantics::Scope &scope, in mangleName() 87 const Fortran::semantics in mangleName() [all...] |
H A D | ConvertVariable.cpp | 43 #include "flang/Semantics/runtime-type-info.h" 44 #include "flang/Semantics/tools.h" 77 const Fortran::semantics::Symbol &sym) { in hasDefaultInitialization() 78 if (sym.has<Fortran::semantics::ObjectEntityDetails>() && sym.size()) in hasDefaultInitialization() 79 if (!Fortran::semantics::IsAllocatableOrPointer(sym)) in hasDefaultInitialization() 80 if (const Fortran::semantics::DeclTypeSpec *declTypeSpec = sym.GetType()) in hasDefaultInitialization() 81 if (const Fortran::semantics::DerivedTypeSpec *derivedTypeSpec = in hasDefaultInitialization() 93 const bool ignorePointer = Fortran::semantics::IsIntentOut(sym); in hasDefaultInitialization() 101 static bool hasFinalization(const Fortran::semantics::Symbol &sym) { in hasFinalization() 102 if (sym.has<Fortran::semantics in hasFinalization() [all...] |
H A D | ConvertType.cpp | 18 #include "flang/Semantics/tools.h" 19 #include "flang/Semantics/type.h" 242 mlir::Type genSymbolType(const Fortran::semantics::Symbol &symbol, in genSymbolType() 252 const Fortran::semantics::Symbol &ultimate = symbol.GetUltimate(); in genSymbolType() 254 if (Fortran::semantics::IsProcedurePointer(ultimate)) { in genSymbolType() 260 if (const Fortran::semantics::DeclTypeSpec *type = ultimate.GetType()) { in genSymbolType() 261 if (const Fortran::semantics::IntrinsicTypeSpec *tySpec = in genSymbolType() 269 } else if (const Fortran::semantics::DerivedTypeSpec *tySpec = in genSymbolType() 278 bool isPolymorphic = (Fortran::semantics::IsPolymorphic(symbol) || in genSymbolType() 279 Fortran::semantics in genSymbolType() [all...] |
H A D | HostAssociations.cpp | 24 #include "flang/Semantics/tools.h" 64 static bool isDerivedWithLenParameters(const Fortran::semantics::Symbol &sym) { in isDerivedWithLenParameters() 67 return Fortran::semantics::CountLenParameters(*derived) != 0; in isDerivedWithLenParameters() 73 static void bindCapturedSymbol(const Fortran::semantics::Symbol &sym, in bindCapturedSymbol() 125 const Fortran::semantics::Symbol &, in visit() 132 const Fortran::semantics::Symbol &sym, in visit() 138 const Fortran::semantics::Symbol &sym, in visit() 144 const Fortran::semantics::Symbol &sym, in visit() 156 const Fortran::semantics::Symbol &sym) { in getType() 162 const Fortran::semantics::Symbol &) { in instantiateHostTuple() [all …]
|
H A D | PFTBuilder.cpp | 14 #include "flang/Semantics/semantics.h" 15 #include "flang/Semantics/tools.h" 68 void dumpScope(const semantics::Scope *scope, int depth = -1); 76 PFTBuilder(const semantics::SemanticsContext &semanticsContext) in PFTBuilder() 143 const Fortran::semantics::Symbol &procSym = callName->symbol->GetUltimate(); in checkForFPEnvironmentCalls() 146 const Fortran::semantics::Symbol &modSym = *procSym.owner().symbol(); in checkForFPEnvironmentCalls() 147 if (!modSym.attrs().test(Fortran::semantics::Attr::INTRINSIC)) in checkForFPEnvironmentCalls() 369 const semantics::SemanticsContext &semanticsContext) { in enterFunction() 511 const semantics in addEvaluation() [all...] |
H A D | Allocatable.cpp | 38 #include "flang/Semantics/tools.h" 39 #include "flang/Semantics/type.h" 284 static const Fortran::semantics::Symbol & in unwrapSymbol() 296 const Fortran::lower::SomeExpr *expr = Fortran::semantics::GetExpr(allocObj); in genMutableBoxValue() 329 const Fortran::semantics::DeclTypeSpec &type; in hasCoarraySpec() 338 const Fortran::semantics::Symbol &getSymbol() const { in getShapeSpecs() 348 const Fortran::semantics::Symbol &symbol = unwrapSymbol(allocObj); in unwrapAllocation() 362 statExpr = Fortran::semantics::GetExpr(statVar); in visitAllocateOptions() 365 errMsgExpr = Fortran::semantics::GetExpr(errMsgVar); in visitAllocateOptions() 371 sourceExpr = Fortran::semantics in visitAllocateOptions() [all...] |
/llvm-project/flang/lib/Lower/OpenMP/ |
H A D | DataSharingProcessor.h | 20 #include "flang/Semantics/symbol.h" 62 llvm::DenseMap<semantics::Symbol *, const parser::OpenMPConstruct *> 67 bool isSymbolDefineBy(const semantics::Symbol *symbol, 74 llvm::SetVector<const semantics::Symbol *> explicitlyPrivatizedSymbols; 75 llvm::SetVector<const semantics::Symbol *> defaultSymbols; 76 llvm::SetVector<const semantics::Symbol *> implicitSymbols; 77 llvm::SetVector<const semantics::Symbol *> preDeterminedSymbols; 78 llvm::SetVector<const semantics::Symbol *> allPrivatizedSymbols; 80 llvm::DenseMap<const semantics::Symbol *, mlir::omp::PrivateClauseOp> 83 semantics [all...] |
H A D | DataSharingProcessor.cpp | 22 #include "flang/Semantics/tools.h" 28 const semantics::Symbol *symbol, lower::pft::Evaluation &eval) const { in isSymbolDefineBy() 38 lower::AbstractConverter &converter, semantics::SemanticsContext &semaCtx, in DataSharingProcessor() 82 for (const semantics::Symbol *sym : allPrivatizedSymbols) in insertDeallocs() 83 if (semantics::IsAllocatable(sym->GetUltimate())) { in insertDeallocs() 113 void DataSharingProcessor::cloneSymbol(const semantics::Symbol *sym) { in insertDeallocs() 114 bool isFirstPrivate = sym->test(semantics::Symbol::Flag::OmpFirstPrivate); 140 const semantics::Symbol *sym, mlir::OpBuilder::InsertPoint *copyAssignIP) { 141 if (sym->test(semantics::Symbol::Flag::OmpFirstPrivate)) in collectSymbolsForPrivatization() 146 const semantics in collectSymbolsForPrivatization() [all...] |
H A D | Clauses.cpp | 15 #include "flang/Semantics/expression.h" 16 #include "flang/Semantics/openmp-modifiers.h" 17 #include "flang/Semantics/symbol.h" 28 using SymbolWithDesignator = std::tuple<semantics::Symbol *, MaybeExpr>; in getClauseIdForClass() 40 static semantics::Symbol *symbol_addr(const evaluate::SymbolRef &ref) { in getClauseId() 46 return const_cast<semantics::Symbol *>(&ref.get()); 72 const semantics::Symbol *symbol = std::get<0>(sd); in visit() 102 semantics::SemanticsContext &semaCtx) { in verify() 108 semantics::SemanticsContext &semaCtx) { in verify() 116 semantics in getSymbolAndDesignator() [all...] |
H A D | OpenMP.cpp | 36 #include "flang/Semantics/openmp-directive-sets.h" 37 #include "flang/Semantics/tools.h" 53 semantics::SemanticsContext &semaCtx, 59 semantics::SemanticsContext &semaCtx, in getCollapsedLoopEval() 71 semantics::SemanticsContext &, in getCollapsedLoopEval() 140 llvm::SmallVectorImpl<const semantics::Symbol *> &ivOut) { in threadPrivatizeVars() 187 llvm::SmallVector<const semantics::Symbol *> iv; in threadPrivatizeVars() 221 &firOpBuilder](const semantics::Symbol &sym, in createAndSetPrivatizedLoopVar() 283 [&bindSingleMapLike](llvm::ArrayRef<const semantics::Symbol *> syms, in getDeclareTargetInfo() 288 llvm::SmallVector<const semantics in getDeclareTargetInfo() [all...] |
H A D | Utils.h | 28 namespace semantics { 30 } // namespace semantics 48 std::pair<mlir::omp::DeclareTargetCaptureClause, const semantics::Symbol &>; 109 semantics::SemanticsContext &semaCtx); 123 Fortran::semantics::SemanticsContext &semaCtx, 127 llvm::SmallVectorImpl<const semantics::Symbol *> &mapSyms); 131 Fortran::semantics::SemanticsContext &semaCtx); 134 const Object &object, Fortran::semantics::SemanticsContext &semaCtx); 138 semantics::SemanticsContext &semaCtx, lower::StatementContext &stmtCtx, 144 semantics [all...] |
H A D | Clauses.h | 14 #include "flang/Semantics/expression.h" 15 #include "flang/Semantics/semantics.h" 16 #include "flang/Semantics/symbol.h" 25 namespace Fortran::semantics { 31 using SomeExpr = semantics::SomeExpr; 32 using MaybeExpr = semantics::MaybeExpr; 38 Fortran::semantics::Symbol *symbol; 79 Fortran::semantics::Symbol *sym() const { return identity.symbol; } 108 semantics [all...] |
/llvm-project/llvm/lib/Support/ |
H A D | APFloat.cpp | 37 llvm_unreachable("Unexpected semantics"); \ 102 /* Represents floating point arithmetic semantics. */ 116 /* Number of bits actually used in the semantics. */ 123 /* Whether this semantics has an encoding for Zero */ 126 /* Whether this semantics can represent signed values */ in isRepresentableBy() 163 const llvm::fltSemantics &APFloatBase::EnumToSemantics(Semantics S) { 206 llvm_unreachable("Unrecognised floating semantics"); in EnumToSemantics() 209 APFloatBase::Semantics in EnumToSemantics() 252 llvm_unreachable("Unknown floating semantics"); in SemanticsToEnum() 315 unsigned int APFloatBase::semanticsPrecision(const fltSemantics &semantics) { 317 semanticsPrecision(const fltSemantics & semantics) semanticsPrecision() argument 321 semanticsMaxExponent(const fltSemantics & semantics) semanticsMaxExponent() argument 325 semanticsMinExponent(const fltSemantics & semantics) semanticsMinExponent() argument 328 semanticsSizeInBits(const fltSemantics & semantics) semanticsSizeInBits() argument 331 semanticsIntSizeInBits(const fltSemantics & semantics,bool isSigned) semanticsIntSizeInBits() argument 361 exponentZero(const fltSemantics & semantics) exponentZero() argument 366 exponentInf(const fltSemantics & semantics) exponentInf() argument 371 exponentNaN(const fltSemantics & semantics) exponentNaN() argument 5249 Storage(IEEEFloat F,const fltSemantics & Semantics) Storage() argument 5277 APFloat(const fltSemantics & Semantics,StringRef S) APFloat() argument 5322 getAllOnesValue(const fltSemantics & Semantics) getAllOnesValue() argument [all...] |
/llvm-project/flang/include/flang/Lower/ |
H A D | BoxAnalyzer.h | 36 ScalarSym(const Fortran::semantics::Symbol &sym) : sym{&sym} {} in ScalarSym() 39 const Fortran::semantics::Symbol &symbol() const { return *sym; } in symbol() 46 const Fortran::semantics::Symbol *sym; 51 ScalarStaticChar(const Fortran::semantics::Symbol &sym, int64_t len) in ScalarStaticChar() 64 ScalarStaticDerived(const Fortran::semantics::Symbol &sym, in ScalarStaticDerived() 74 ScalarDynamicChar(const Fortran::semantics::Symbol &sym, in ScalarDynamicChar() 77 ScalarDynamicChar(const Fortran::semantics::Symbol &sym) in ScalarDynamicChar() 95 ScalarDynamicDerived(const Fortran::semantics::Symbol &sym, in ScalarDynamicDerived() 120 StaticArray(const Fortran::semantics::Symbol &sym, in StaticArray() 131 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicBound() [all …]
|
H A D | SymbolMap.h | 21 #include "flang/Semantics/symbol.h" 160 void addSymbol(semantics::SymbolRef sym, const fir::ExtendedValue &ext, 164 void addSymbol(semantics::SymbolRef sym, mlir::Value value, 170 void addCharSymbol(semantics::SymbolRef sym, mlir::Value value, 174 void addCharSymbol(semantics::SymbolRef sym, const SymbolBox::Char &value, 180 void addSymbolWithShape(semantics::SymbolRef sym, mlir::Value value, 185 void addSymbolWithShape(semantics::SymbolRef sym, 191 void addCharSymbolWithShape(semantics::SymbolRef sym, mlir::Value value, 197 void addCharSymbolWithShape(semantics::SymbolRef sym, 204 void addSymbolWithBounds(semantics [all...] |
H A D | PFTBuilder.h | 25 #include "flang/Semantics/attr.h" 26 #include "flang/Semantics/scope.h" 27 #include "flang/Semantics/semantics.h" 28 #include "flang/Semantics/symbol.h" 405 Nominal(const semantics::Symbol *symbol, int depth, bool global) 407 const semantics::Symbol *symbol{}; 428 const Fortran::semantics::Symbol &namingSym, 432 AggregateStore(const semantics::Symbol &initialValueSym, 433 const semantics [all...] |
H A D | ConvertType.h | 48 namespace semantics { 53 } // namespace semantics 62 using SymbolRef = common::Reference<const semantics::Symbol>; 74 const Fortran::semantics::DerivedTypeSpec &); 80 /// Translate a Fortran::semantics::Symbol to an mlir::Type. 91 bool isDerivedTypeWithLenParameters(const semantics::Symbol &); 107 ComponentReverseIterator(const Fortran::semantics::DerivedTypeSpec &derived) { in ComponentReverseIterator() 119 const Fortran::semantics::DerivedTypeSpec &advanceToParentType(); 122 void setCurrentType(const Fortran::semantics::DerivedTypeSpec &derived); 123 const Fortran::semantics::DerivedTypeSpec *currentParentType = nullptr; [all …]
|
H A D | HostAssociations.h | 18 namespace semantics { 21 } // namespace semantics 42 const llvm::SetVector<const Fortran::semantics::Symbol *> &symbols, 43 const Fortran::semantics::Scope &hostScope); 57 bool isAssociated(const Fortran::semantics::Symbol &symbol) const { in isAssociated() 63 llvm::SetVector<const Fortran::semantics::Symbol *> tupleSymbols; 66 llvm::SetVector<const Fortran::semantics::Symbol *> globalSymbols; 72 const Fortran::semantics::Scope *hostScope;
|
/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 31 llvm_unreachable("Unexpected semantics"); \ 78 /// full extended precision). Adding a new format that obeys IEEE semantics 150 /// \name Floating Point Semantics. 152 enum Semantics { enum 158 // The IBM double-double semantics. Such a number consists of a pair of 168 // These are legacy semantics for the fallback, inaccurate implementation 180 // Currently, these semantics are used in the following way: 191 // semantics. 256 static const llvm::fltSemantics &EnumToSemantics(Semantics S); 257 static Semantics SemanticsToEnu 673 const fltSemantics *semantics; global() variable 707 const fltSemantics *Semantics; global() variable 812 const fltSemantics *semantics; global() member 823 Storage(const fltSemantics & Semantics,ArgTypes &&...Args) Storage() argument 900 usesLayout(const fltSemantics & Semantics) usesLayout() argument 960 APFloat(const fltSemantics & Semantics) APFloat() argument 962 APFloat(const fltSemantics & Semantics,integerPart I) APFloat() argument 967 APFloat(const fltSemantics & Semantics,uninitializedTag) APFloat() argument 969 APFloat(const fltSemantics & Semantics,const APInt & I) APFloat() argument [all...] |
/llvm-project/flang/include/flang/Frontend/ |
H A D | CompilerInstance.h | 21 #include "flang/Semantics/runtime-type-info.h" 22 #include "flang/Semantics/semantics.h" 56 std::unique_ptr<Fortran::semantics::Semantics> semantics; 58 std::unique_ptr<Fortran::semantics::RuntimeDerivedTypeTables> rtTyTables; 60 std::unique_ptr<Fortran::semantics::SemanticsContext> semaContext; 64 /// The stream for diagnostics from Semantics 67 /// The stream for diagnostics from Semantics i 55 std::unique_ptr<Fortran::semantics::Semantics> semantics; global() variable [all...] |
/llvm-project/flang/docs/ |
H A D | ImplementingASemanticCheck.md | 121 checking is implemented in the files `lib/Semantics/semantics.cpp`. 123 `lib/Semantics/semantics.cpp`: 146 node. Here's the declaration I put into `lib/Semantics/check-do.h`: 158 the file `lib/Semantics/check-do.cpp` where most of the semantic checking for 163 functions in `lib/Semantics/semantics.cpp` to emit messages if 210 typedCall; // filled by semantics 220 `evaluate::Expr` node collecting `semantics [all...] |