Home
last modified time | relevance | path

Searched refs:semantics (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/llvm-project/llvm/test/MC/AArch64/
H A Datomic-acquire-comment.s3 ; 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 Dtype.cpp25 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::DerivedTypeSpec::Category::IntrinsicVector: in GetAlignment()
165 case semantics::DerivedTypeSpec::Category::PairVector: in GetAlignment()
166 case semantics::DerivedTypeSpec::Category::QuadVector: in GetAlignment()
241 const semantics::DerivedTypeSpec *GetDerivedTypeSpec( in GetDerivedTypeSpec()
246 const semantics in GetDerivedTypeSpec()
[all...]
H A Dcheck-expression.cpp15 #include "flang/Semantics/semantics.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 &param) const { in operator ()()
90 !sym.attrs().test(semantics::Attr::VALUE))); in operator ()()
237 bool operator()(const semantics::Symbol &symbol) { in operator ()()
241 ultimate.detailsIf<semantics::AssocEntityDetails>()}) { in operator ()()
255 } else if (!ultimate.attrs().test(semantics in operator ()()
[all...]
H A Dcharacteristics.cpp30 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::EntityDetails> || in Characterize()
110 std::is_same_v<Ty, semantics::ObjectEntityDetails> || in Characterize()
111 std::is_same_v<Ty, semantics::TypeParamDetails>) { in Characterize()
112 if (const semantics in Characterize()
[all...]
/llvm-project/flang/lib/Lower/
H A DMangler.cpp26 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::Symbol &symbol, ScopeBlockIdMap &scopeBlockIdMap, in mangleName()
108 if (Fortran::semantics in mangleName()
[all...]
H A DConvertVariable.cpp77 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::ObjectEntityDetails>()) in hasFinalization()
103 if (const Fortran::semantics::DeclTypeSpec *declTypeSpec = sym.GetType()) in hasFinalization()
104 if (const Fortran::semantics in hasFinalization()
[all...]
H A DConvertType.cpp242 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::IsUnlimitedPolymorphic(symbol)) && in genSymbolType()
280 !Fortran::semantics::IsAssumedType(symbol); in genSymbolType()
291 if (Fortran::semantics in genSymbolType()
[all...]
H A DHostAssociations.cpp64 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()
173 const Fortran::semantics::Symbol &sym, in getFromTuple()
[all …]
H A DPFTBuilder.cpp14 #include "flang/Semantics/semantics.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::Symbol *sym = in addEvaluation()
513 if (auto *details = sym->detailsIf<semantics::GenericDetails>()) in addEvaluation()
515 assert(sym->has<semantics in addEvaluation()
[all...]
H A DAllocatable.cpp284 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::GetExpr(source.v.value()); in visitAllocateOptions()
374 moldExpr = Fortran::semantics::GetExpr(mold.v.value()); in visitAllocateOptions()
377 streamExpr = Fortran::semantics in visitAllocateOptions()
[all...]
/llvm-project/flang/lib/Lower/OpenMP/
H A DDataSharingProcessor.h62 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::SemanticsContext &semaCtx;
94 void collectSymbols(semantics
[all...]
H A DDataSharingProcessor.cpp28 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::Symbol *sym, mlir::OpBuilder::InsertPoint *lastPrivIP) { in collectSymbolsForPrivatization()
147 if (sym->test(semantics in collectSymbolsForPrivatization()
[all...]
H A DClauses.cpp28 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::SemanticsContext &semaCtx) { in getSymbolAndDesignator()
124 semantics::SemanticsContext &semaCtx) {
136 semantics::SemanticsContext &semaCtx) { in makeObject()
176 semantics in getBaseObject()
[all...]
H A DOpenMP.cpp53 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::Symbol *> processedSyms; in getDeclareTargetInfo()
297 llvm::ArrayRef<const semantics::Symbol *> syms, in getDeclareTargetInfo()
300 llvm::SmallVector<const semantics in getDeclareTargetInfo()
[all...]
H A DUtils.h28 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...]
/llvm-project/flang/include/flang/Lower/
H A DBoxAnalyzer.h36 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 DSymbolMap.h160 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::SymbolRef sym, mlir::Value value,
210 void addSymbolWithBounds(semantics
[all...]
H A DAbstractConverter.h53 namespace semantics {
57 } // namespace semantics
68 using SymbolRef = Fortran::common::Reference<const Fortran::semantics::Symbol>;
70 llvm::DenseMap<const Fortran::semantics::Scope *, mlir::Type>;
95 getSymbolExtendedValue(const Fortran::semantics::Symbol &sym,
127 createHostAssociateVarClone(const Fortran::semantics::Symbol &sym,
131 createHostAssociateVarCloneDealloc(const Fortran::semantics::Symbol &sym) = 0;
142 copyHostAssociateVar(const Fortran::semantics::Symbol &sym,
152 isPresentShallowLookup(const Fortran::semantics::Symbol &sym) = 0;
163 llvm::SetVector<const Fortran::semantics
[all...]
H A DPFTBuilder.h27 #include "flang/Semantics/semantics.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::Symbol &namingSym, bool isGlobal = false)
442 const semantics::Symbol *getInitialValueSymbol() const {
446 const semantics::Symbol &getNamingSymbol() const { return *namingSymbol; }
448 const semantics::Scope &getOwningScope() const {
454 const semantics
[all...]
H A DConvertVariable.h38 namespace semantics {
40 } // namespace semantics
55 std::tuple<const Fortran::semantics::Scope *, std::size_t>;
66 bool hasDefaultInitialization(const Fortran::semantics::Symbol &sym);
70 const Fortran::semantics::Symbol &sym,
75 const Fortran::semantics::Symbol &sym,
89 const std::vector<std::pair<semantics::SymbolRef, std::size_t>>
97 const Fortran::semantics::Symbol &sym,
106 void mapSymbolAttributes(AbstractConverter &, const semantics::SymbolRef &,
122 SymMap &symMap, const Fortran::semantics
[all...]
H A DConvertType.h48 namespace semantics {
62 using SymbolRef = common::Reference<const semantics::Symbol>;
74 const Fortran::semantics::DerivedTypeSpec &);
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;
124 const Fortran::semantics::DerivedTypeDetails *currentTypeDetails = nullptr;
H A DHostAssociations.h18 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;
H A DMangler.h28 namespace semantics {
37 llvm::DenseMap<Fortran::semantics::Scope *, std::int64_t>;
45 std::string mangleName(const semantics::Symbol &, ScopeBlockIdMap &,
48 std::string mangleName(const semantics::Symbol &,
53 std::string mangleName(const semantics::DerivedTypeSpec &, ScopeBlockIdMap &);
56 std::string mangleName(std::string &, const Fortran::semantics::Scope &,
97 std::string globalNamelistDescriptorName(const Fortran::semantics::Symbol &sym);
103 std::string getRecordTypeFieldName(const Fortran::semantics::Symbol &component,
/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp37 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()
206 llvm_unreachable("Unrecognised floating semantics"); in EnumToSemantics()
252 llvm_unreachable("Unknown floating semantics"); in SemanticsToEnum()
315 unsigned int APFloatBase::semanticsPrecision(const fltSemantics &semantics) {
316 return semantics.precision;
319 APFloatBase::semanticsMaxExponent(const fltSemantics &semantics) { in semanticsPrecision()
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
[all...]
/llvm-project/flang/include/flang/Frontend/
H A DCompilerInstance.h22 #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;
151 Fortran::semantics::SemanticsContext &getSemanticsContext() { in setSemantics()
154 const Fortran::semantics::SemanticsContext &getSemanticsContext() const { in setRtTyTables()
167 Fortran::semantics::Semantics &getSemantics() { return *semantics; }
168 const Fortran::semantics
55 std::unique_ptr<Fortran::semantics::Semantics> semantics; global() variable
[all...]

12345678910>>...21