Home
last modified time | relevance | path

Searched refs:Direction (Results 1 – 25 of 79) sorted by relevance

1234

/llvm-project/llvm/lib/Analysis/
H A DFunctionPropertiesAnalysis.cpp71 int64_t Direction) { in updateForBB() argument
72 assert(Direction == 1 || Direction == -1); in updateForBB()
73 BasicBlockCount += Direction; in updateForBB()
75 (Direction * getNumBlocksFromCond(BB)); in updateForBB()
80 DirectCallsToDefinedFunctions += Direction; in updateForBB()
83 LoadInstCount += Direction; in updateForBB()
85 StoreInstCount += Direction; in updateForBB()
88 TotalInstructionCount += Direction * BB.sizeWithoutDebug(); in updateForBB()
93 BasicBlocksWithSingleSuccessor += Direction; in updateForBB()
[all...]
H A DDependenceGraphBuilder.cpp144 enum Direction { in createPiBlocks() enum
180 const Direction Dir) { in createPiBlocks()
185 << (Dir == Direction::Incoming ? "incoming)" : "outgoing)") in createPiBlocks()
188 assert((Dir == Direction::Incoming || Dir == Direction::Outgoing) && in createPiBlocks()
196 if (Dir == Direction::Incoming) { in createPiBlocks()
199 } else if (Dir == Direction::Outgoing) { in createPiBlocks()
213 reconnectEdges(N, SCCNode, &PiNode, Direction::Incoming); in createPiBlocks()
216 reconnectEdges(SCCNode, N, &PiNode, Direction::Outgoing); in createPiBlocks()
H A DDependenceAnalysis.cpp293 unsigned char Direction = DV[Level - 1].Direction; in isDirectionNegative()
294 if (Direction == Dependence::DVEntry::EQ) in isDirectionNegative()
296 if (Direction == Dependence::DVEntry::GT || in isDirectionNegative()
297 Direction == Dependence::DVEntry::GE) in isDirectionNegative()
312 unsigned char Direction = DV[Level - 1].Direction; in normalize()
315 unsigned char RevDirection = Direction & Dependence::DVEntry::EQ; in normalize()
316 if (Direction & Dependence::DVEntry::LT) in normalize()
318 if (Direction in normalize()
292 unsigned char Direction = DV[Level - 1].Direction; isDirectionNegative() local
311 unsigned char Direction = DV[Level - 1].Direction; normalize() local
684 unsigned Direction = getDirection(II); dump() local
[all...]
/llvm-project/flang/runtime/
H A Dio-stmt.h43 template <Direction, typename CHAR = char>
45 template <Direction> class InternalListIoStatementState;
46 template <Direction, typename CHAR = char>
48 template <Direction> class ExternalListIoStatementState;
49 template <Direction> class ExternalUnformattedIoStatementState;
50 template <Direction, typename CHAR = char> class ChildFormattedIoStatementState;
51 template <Direction> class ChildListIoStatementState;
52 template <Direction> class ChildUnformattedIoStatementState;
56 template <Direction D>
57 using IoDirectionState = std::conditional_t<D == Direction
[all...]
H A Dio-stmt.cpp89 template <Direction DIR> in InternalIoStatementState()
94 template <Direction DIR> in Emit()
99 template <Direction DIR> in Emit()
102 if constexpr (DIR == Direction::Input) {
103 Crash("InternalIoStatementState<Direction::Input>::Emit() called");
109 template <Direction DIR> in AdvanceRecord()
116 template <Direction DIR> in AdvanceRecord()
126 template <Direction DIR> void InternalIoStatementState<DIR>::BackspaceRecord() { in EndIoStatement()
130 template <Direction DIR> int InternalIoStatementState<DIR>::EndIoStatement() {
138 template <Direction DI in HandleRelativePosition()
[all...]
H A Dinternal-unit.cpp19 template <Direction DIR>
30 template <Direction DIR>
48 template <Direction DIR> in Emit()
51 if constexpr (DIR == Direction::Input) { in Emit()
52 handler.Crash("InternalDescriptorUnit<Direction::Input>::Emit() called"); in Emit()
82 template <Direction DIR> in GetNextInputBytes()
86 if constexpr (DIR == Direction::Output) { in GetNextInputBytes()
87 handler.Crash("InternalDescriptorUnit<Direction::Output>::" in GetNextInputBytes()
104 template <Direction DIR> in AdvanceRecord()
126 template <Direction DI in BlankFill()
[all...]
H A Dunit.h122 Direction, Fortran::common::optional<bool> isUnformatted,
142 RT_API_ATTRS Iostat SetDirection(Direction);
208 template <bool ANY_DIR = true, Direction DIR = Direction::Output>
218 Direction direction_{Direction::Output};
236 ExternalFormattedIoStatementState<Direction::Output>,
237 ExternalFormattedIoStatementState<Direction::Input>,
238 ExternalListIoStatementState<Direction::Output>,
239 ExternalListIoStatementState<Direction
[all...]
H A Ddescriptor-io.h47 template <int KIND, Direction DIR>
58 if constexpr (DIR == Direction::Output) { in FormattedIntegerIO()
81 template <int KIND, Direction DIR> in FormattedRealIO()
92 if constexpr (DIR == Direction::Output) { in FormattedRealIO()
114 template <int KIND, Direction DIR> in FormattedComplexIO()
121 io.get_if<ListDirectedStatementState<Direction::Output>>() != nullptr}; in FormattedComplexIO()
140 } else if constexpr (DIR == Direction::Output) { in FormattedComplexIO()
162 template <typename A, Direction DIR> in FormattedCharacterIO()
169 auto *listOutput{io.get_if<ListDirectedStatementState<Direction::Output>>()}; in FormattedCharacterIO()
178 if constexpr (DIR == Direction in FormattedCharacterIO()
[all...]
H A Dformat.cpp14 InternalFormattedIoStatementState<Direction::Output>>;
16 InternalFormattedIoStatementState<Direction::Input>>;
18 ExternalFormattedIoStatementState<Direction::Output>>;
20 ExternalFormattedIoStatementState<Direction::Input>>;
21 template class FormatControl<ChildFormattedIoStatementState<Direction::Output>>;
22 template class FormatControl<ChildFormattedIoStatementState<Direction::Input>>;
H A Dio-api.cpp53 template <Direction DIR>
67 return BeginInternalArrayListIO<Direction::Output>( in IODEF()
74 return BeginInternalArrayListIO<Direction::Input>( in IODEF()
78 template <Direction DIR>
94 return BeginInternalArrayFormattedIO<Direction::Output>(descriptor, format, in IODEF()
103 return BeginInternalArrayFormattedIO<Direction::Input>(descriptor, format, in IODEF()
108 template <Direction DIR>
110 std::conditional_t<DIR == Direction::Input, const char, char> *internal, in BeginInternalListIO()
123 return BeginInternalListIO<Direction::Output>(internal, internalLength, in IODEF()
130 return BeginInternalListIO<Direction in IODEF()
[all...]
H A Dio-api-minimal.cpp26 return BeginExternalListIO<Direction::Output, ExternalListIoStatementState>( in IODEF()
38 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarIntegerOutput()
72 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarRealOutput()
92 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarComplexOutput()
93 if (io.get_if<ListDirectedStatementState<Direction::Output>>() != nullptr) { in FormattedScalarComplexOutput()
124 io.get_if<ListDirectedStatementState<Direction::Output>>()}) { in IODEF()
126 } else if (io.CheckFormattedStmtType<Direction::Output>("OutputAscii")) { in IODEF()
137 io.get_if<ListDirectedStatementState<Direction::Output>>()}) { in IODEF()
139 } else if (io.CheckFormattedStmtType<Direction::Output>("OutputAscii")) { in IODEF()
H A Dunit.cpp109 RUNTIME_CHECK(handler, direction_ == Direction::Input); in Receive()
137 RUNTIME_CHECK(handler, direction_ == Direction::Input); in GetNextInputBytes()
204 RUNTIME_CHECK(handler, direction_ == Direction::Input); in BeginReadingRecord()
229 DoEndfile<false, Direction::Input>(handler); in FinishReadingRecord()
248 RUNTIME_CHECK(handler, direction_ == Direction::Input && beganReadingRecord_); in FinishReadingRecord()
293 if (direction_ == Direction::Input) { in AdvanceRecord()
296 } else { // Direction::Output in AdvanceRecord()
373 } else if (leftTabLimit && direction_ == Direction::Input) { in BackspaceRecord()
685 if (!impliedEndfile_ && leftTabLimit && direction_ == Direction::Output) { in DoEndfile()
696 template <bool ANY_DIR, Direction DI in DoEndfile()
[all...]
H A Dexternal-unit.cpp60 Direction dir, Fortran::common::optional<bool> isUnformatted, in LookUpOrCreateAnonymous()
69 if (dir == Direction::Output) { in LookUpOrCreateAnonymous()
73 dir == Direction::Input ? OpenStatus::Unknown : OpenStatus::Replace, in LookUpOrCreateAnonymous()
220 Iostat ExternalFileUnit::SetDirection(Direction direction) { in SetDirection()
221 if (direction == Direction::Input) { in SetDirection()
223 direction_ = Direction::Input; in SetDirection()
230 if (direction_ == Direction::Input) { in SetDirection()
237 direction_ = Direction::Output; in SetDirection()
255 handler.SignalError(out.SetDirection(Direction::Output)); in CreateUnitMap()
263 handler.SignalError(in.SetDirection(Direction in CreateUnitMap()
[all...]
H A Dinternal-unit.h25 template <Direction DIR> class InternalDescriptorUnit : public ConnectionState {
28 std::conditional_t<DIR == Direction::Input, const char *, char *>;
56 extern template class InternalDescriptorUnit<Direction::Output>;
57 extern template class InternalDescriptorUnit<Direction::Input>;
H A Dedit-output.h94 IoStatementState &, ListDirectedStatementState<Direction::Output> &, bool);
99 ListDirectedStatementState<Direction::Output> &, const CHAR *,
102 IoStatementState &, ListDirectedStatementState<Direction::Output> &,
105 IoStatementState &, ListDirectedStatementState<Direction::Output> &,
108 IoStatementState &, ListDirectedStatementState<Direction::Output> &,
H A Dpseudo-unit.cpp38 Direction direction, Fortran::common::optional<bool>, in LookUpOrCreateAnonymous()
40 if (direction != Direction::Output) { in LookUpOrCreateAnonymous()
82 Iostat ExternalFileUnit::SetDirection(Direction direction) { in SetDirection()
83 if (direction != Direction::Output) { in SetDirection()
H A Dio-api-common.h34 Direction direction, Fortran::common::optional<bool> isUnformatted, in GetOrCreateUnit()
51 template <Direction DIR, template <Direction> class STATE, typename... A>
/llvm-project/clang/test/Index/
H A Doverriding-method-comments.mm22 …><Parameters><Parameter><Name>AAA</Name><Index>0</Index><Direction isExplicit="1">in</Direction><D…
31 …><Parameters><Parameter><Name>BBB</Name><Index>0</Index><Direction isExplicit="1">in</Direction><D…
37 …><Parameters><Parameter><Name>III</Name><Index>0</Index><Direction isExplicit="1">in</Direction><D…
51Direction isExplicit="1">in</Direction><Discussion><Para> input value </Para></Discussion></Parame…
57Direction isExplicit="1">in</Direction><Discussion><Para> input value </Para></Discussion></Parame…
64 …><Parameters><Parameter><Name>AAA</Name><Index>0</Index><Direction isExplicit="0">in</Direction><D…
70 …><Parameters><Parameter><Name>BBB</Name><Index>0</Index><Direction isExplicit="0">in</Direction><D…
76 …><Parameters><Parameter><Name>CCC</Name><Index>0</Index><Direction isExplicit="0">in</Direction><D…
81 …><Parameters><Parameter><Name>RRR</Name><Index>0</Index><Direction isExplicit="0">in</Direction><D…
86 …><Parameters><Parameter><Name>PPP</Name><Index>0</Index><Direction isExplicit="0">in</Direction><D…
[all …]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DPathMappingTests.cpp86 llvm::StringRef RawMappings, PathMapping::Direction Dir) { in mapsProperly()
99 PathMapping::Direction::ClientToServer)); in TEST()
105 PathMapping::Direction::ClientToServer)); in TEST()
112 PathMapping::Direction::ClientToServer)); in TEST()
119 PathMapping::Direction::ServerToClient)); in TEST()
125 PathMapping::Direction::ClientToServer)); in TEST()
131 PathMapping::Direction::ClientToServer)); in TEST()
138 PathMapping::Direction::ClientToServer)); in TEST()
145 R"(C:\home=/workarea)", PathMapping::Direction::ClientToServer)); in TEST()
/llvm-project/clang-tools-extra/clangd/
H A DPathMapping.cpp21 PathMapping::Direction Dir, in doPathMapping()
32 const std::string &From = Dir == PathMapping::Direction::ClientToServer in doPathMapping()
35 const std::string &To = Dir == PathMapping::Direction::ClientToServer in doPathMapping()
48 void applyPathMappings(llvm::json::Value &V, PathMapping::Direction Dir, in applyPathMappings()
87 applyPathMappings(Params, PathMapping::Direction::ClientToServer, Mappings); in onNotify()
93 applyPathMappings(Params, PathMapping::Direction::ClientToServer, Mappings); in onCall()
100 applyPathMappings(*Result, PathMapping::Direction::ClientToServer, in onReply()
118 applyPathMappings(Params, PathMapping::Direction::ServerToClient, Mappings); in notify()
124 applyPathMappings(Params, PathMapping::Direction::ServerToClient, Mappings); in call()
131 applyPathMappings(*Result, PathMapping::Direction::ServerToClient, in reply()
H A DPathMapping.h40 enum class Direction { ClientToServer, ServerToClient }; enum
54 PathMapping::Direction Dir,
60 void applyPathMappings(llvm::json::Value &Params, PathMapping::Direction Dir,
/llvm-project/mlir/lib/Analysis/Presburger/
H A DSimplex.cpp33 using Direction = Simplex::Direction;
186 bool signMatchesDirection(const DynamicAPInt &elem, Direction direction) { in signMatchesDirection()
188 return direction == Direction::Up ? elem > 0 : elem < 0; in flippedDirection()
191 Direction flippedDirection(Direction direction) {
192 return direction == Direction::Up ? Direction::Down : Simplex::Direction::Up;
887 Simplex::findPivot(int row, Direction directio in findPivot()
32 using Direction = Simplex::Direction; global() typedef
[all...]
/llvm-project/llvm/lib/CodeGen/
H A DMachineLoopUtils.cpp26 MachineBasicBlock *llvm::PeelSingleBlockLoop(LoopPeelDirection Direction, in PeelSingleBlockLoop() argument
39 if (Direction == LPD_Front) in PeelSingleBlockLoop()
57 if (Direction == LPD_Back) { in PeelSingleBlockLoop()
90 if (Direction == LPD_Front) { in PeelSingleBlockLoop()
110 if (Direction == LPD_Front) { in PeelSingleBlockLoop()
/llvm-project/mlir/include/mlir/Analysis/Presburger/
H A DSimplex.h693 enum class Direction { Up, Down }; enum
717 MaybeOptimum<Fraction> computeRowOptimum(Direction direction, unsigned row);
724 MaybeOptimum<Fraction> computeOptimum(Direction direction,
833 std::optional<Pivot> findPivot(int row, Direction direction) const;
844 Direction direction, unsigned col) const;
857 MaybeOptimum<Fraction> computeOptimum(Direction direction, Unknown &u);
/llvm-project/llvm/unittests/Analysis/
H A DLoopInfoTest.cpp286 Loop::LoopBounds::Direction::Increasing); in TEST()
345 Loop::LoopBounds::Direction::Increasing); in TEST()
404 Loop::LoopBounds::Direction::Increasing); in TEST()
463 Loop::LoopBounds::Direction::Increasing); in TEST()
522 Loop::LoopBounds::Direction::Increasing); in TEST()
582 Loop::LoopBounds::Direction::Increasing); in TEST()
638 EXPECT_EQ(Bounds->getDirection(), Loop::LoopBounds::Direction::Unknown); in TEST()
697 Loop::LoopBounds::Direction::Increasing); in TEST()
756 Loop::LoopBounds::Direction::Decreasing); in TEST()
814 EXPECT_EQ(Bounds->getDirection(), Loop::LoopBounds::Direction::Unknown); in TEST()
[all …]

1234