Lines Matching defs:omp

37 namespace omp {
41 } // namespace omp
44 template <> struct ObjectT<omp::IdTy, omp::ExprTy> {
45 const omp::IdTy &id() const { return name; }
46 const std::optional<omp::ExprTy> ref() const { return omp::ExprTy{}; }
48 omp::IdTy name;
52 namespace omp {
177 } // namespace omp
180 static std::string join(const omp::List<std::string> &Strings) {
190 static std::string to_str(llvm::omp::Directive D) {
193 static std::string to_str(llvm::omp::Clause C) {
196 static std::string to_str(const omp::TypeTy &Type) { return "type"; }
197 static std::string to_str(const omp::ExprTy &Expr) { return "expr"; }
198 static std::string to_str(const omp::Object &Obj) { return Obj.id(); }
206 template <typename U> static std::string to_str(const omp::List<U> &Items) {
207 omp::List<std::string> Names;
223 omp::List<std::string> Strings;
272 StringifyClause(const omp::Clause &C)
279 std::string stringify(const omp::DirectiveWithClauses &DWC) {
283 for (const omp::Clause &C : DWC.clauses)
293 omp::clause::ReductionOperator
294 makeOp(omp::clause::DefinedOperator::IntrinsicOperator Op) {
295 return omp::clause::ReductionOperator{omp::clause::DefinedOperator{Op}};
300 using namespace llvm::omp;
307 omp::Helper Helper;
320 omp::Object x{"x"};
322 omp::List<omp::Clause> Clauses{
323 {OMPC_private, omp::clause::Private{{x}}},
326 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
337 omp::Object x{"x"};
339 omp::List<omp::Clause> Clauses{
340 {OMPC_private, omp::clause::Private{{x}}},
343 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_masked,
384 omp::Object x{"x"};
386 omp::List<omp::Clause> Clauses{
387 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
390 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
401 omp::Object x{"x"};
403 omp::List<omp::Clause> Clauses{
404 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
407 omp::ConstructDecomposition Dec(AnyVersion, Helper,
420 omp::Object x{"x"};
422 omp::List<omp::Clause> Clauses{
423 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
424 {OMPC_lastprivate, omp::clause::Lastprivate{{std::nullopt, {x}}}},
427 omp::ConstructDecomposition Dec(AnyVersion, Helper,
440 omp::Object x{"x"};
442 omp::List<omp::Clause> Clauses{
443 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
446 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_target_teams,
457 omp::Object x{"x"};
459 omp::List<omp::Clause> Clauses{
460 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
463 omp::ConstructDecomposition Dec(AnyVersion, Helper,
476 omp::Object x{"x"};
478 omp::List<omp::Clause> Clauses{
479 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
482 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_masked,
493 omp::Object x{"x"};
495 omp::List<omp::Clause> Clauses{
496 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
500 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_teams_distribute,
530 omp::Object x{"x"};
532 omp::List<omp::Clause> Clauses{
533 {OMPC_lastprivate, omp::clause::Lastprivate{{std::nullopt, {x}}}},
536 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
547 omp::Object x{"x"};
549 omp::List<omp::Clause> Clauses{
550 {OMPC_lastprivate, omp::clause::Lastprivate{{std::nullopt, {x}}}},
553 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_teams_distribute,
564 omp::Object x{"x"};
566 omp::List<omp::Clause> Clauses{
567 {OMPC_lastprivate, omp::clause::Lastprivate{{std::nullopt, {x}}}},
570 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_target_parallel_do,
590 omp::Object x{"x"};
592 omp::List<omp::Clause> Clauses{
593 {OMPC_shared, omp::clause::Shared{{x}}},
596 omp::ConstructDecomposition Dec(AnyVersion, Helper,
616 omp::Object x{"x"};
618 omp::List<omp::Clause> Clauses{
620 omp::clause::Default{
621 omp::clause::Default::DataSharingAttribute::Firstprivate}},
624 omp::ConstructDecomposition Dec(AnyVersion, Helper,
644 omp::Object x{"x"};
646 omp::List<omp::Clause> Clauses{
647 {OMPC_thread_limit, omp::clause::ThreadLimit{omp::ExprTy{}}},
650 omp::ConstructDecomposition Dec(AnyVersion, Helper,
670 omp::Object x{"x"};
672 omp::List<omp::Clause> Clauses{
674 omp::clause::Order{{omp::clause::Order::OrderModifier::Unconstrained,
675 omp::clause::Order::Ordering::Concurrent}}},
678 omp::ConstructDecomposition Dec(
707 omp::Object x{"x"};
710 omp::List<omp::Clause> Clauses{
711 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
712 {OMPC_firstprivate, omp::clause::Firstprivate{{x}}},
715 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
726 omp::Object x{"x"};
727 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
730 omp::List<omp::Clause> Clauses{
731 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
732 {OMPC_in_reduction, omp::clause::InReduction{{{Add}, {x}}}},
735 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_target_parallel,
746 omp::Object x{"x"};
749 omp::List<omp::Clause> Clauses{
750 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
751 {OMPC_linear, omp::clause::Linear{{std::nullopt, std::nullopt, {x}}}},
754 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_for,
768 omp::Object x{"x"};
771 omp::List<omp::Clause> Clauses{
772 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
773 {OMPC_lastprivate, omp::clause::Lastprivate{{std::nullopt, {x}}}},
776 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
787 omp::Object x{"x"};
790 omp::List<omp::Clause> Clauses{
791 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
792 {OMPC_private, omp::clause::Private{{x}}},
795 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
806 omp::Object x{"x"};
807 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
810 omp::List<omp::Clause> Clauses{
811 {OMPC_allocate, omp::clause::Allocate{{std::nullopt, std::nullopt, {x}}}},
812 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
815 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
852 omp::Object x{"x"};
853 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
855 omp::List<omp::Clause> Clauses{
856 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
859 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_sections,
870 omp::Object x{"x"};
871 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
873 omp::List<omp::Clause> Clauses{
874 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
877 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_parallel_masked,
888 omp::Object x{"x"};
889 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
891 omp::List<omp::Clause> Clauses{
892 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
895 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_teams_loop, Clauses);
905 omp::Object x{"x"};
906 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
908 omp::List<omp::Clause> Clauses{
909 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
912 omp::ConstructDecomposition Dec(AnyVersion, Helper,
927 omp::Object x{"x"};
928 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
929 auto TaskMod = omp::clause::Reduction::ReductionModifier::Task;
931 omp::List<omp::Clause> Clauses{
932 {OMPC_reduction, omp::clause::Reduction{{TaskMod, {Add}, {x}}}},
935 omp::ConstructDecomposition Dec(AnyVersion, Helper,
950 omp::Object x{"x"};
951 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
952 auto InscanMod = omp::clause::Reduction::ReductionModifier::Inscan;
954 omp::List<omp::Clause> Clauses{
955 {OMPC_reduction, omp::clause::Reduction{{InscanMod, {Add}, {x}}}},
958 omp::ConstructDecomposition Dec(AnyVersion, Helper,
973 omp::Object x{"x"};
974 auto Add = red::makeOp(omp::clause::DefinedOperator::IntrinsicOperator::Add);
976 omp::List<omp::Clause> Clauses{
977 {OMPC_reduction, omp::clause::Reduction{{std::nullopt, {Add}, {x}}}},
980 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_target_parallel_do,
1004 omp::List<omp::Clause> Clauses{
1006 omp::clause::If{{llvm::omp::Directive::OMPD_parallel, omp::ExprTy{}}}},
1009 omp::ConstructDecomposition Dec(AnyVersion, Helper,
1023 omp::List<omp::Clause> Clauses{
1024 {OMPC_if, omp::clause::If{{std::nullopt, omp::ExprTy{}}}},
1027 omp::ConstructDecomposition Dec(AnyVersion, Helper,
1058 omp::Object x{"x"};
1060 omp::List<omp::Clause> Clauses{
1061 {OMPC_linear, omp::clause::Linear{{std::nullopt, std::nullopt, {x}}}},
1064 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_for_simd, Clauses);
1081 omp::List<omp::Clause> Clauses{
1082 {OMPC_nowait, omp::clause::Nowait{}},
1085 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_target_parallel_for,
1101 omp::Object x{"x"};
1102 omp::List<omp::Clause> Clauses{
1103 {OMPC_linear, omp::clause::Linear{{std::nullopt, std::nullopt, {x}}}},
1106 omp::ConstructDecomposition Dec(AnyVersion, Helper, OMPD_simd, Clauses);