Page MenuHomePhabricator

abidmalikwaterloo (Abid)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 7 2020, 2:43 PM (168 w, 3 d)

Recent Activity

Thu, Mar 23

abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Made changes based on the comments. No it does not check
for both tile and unroll constructs.

Thu, Mar 23, 11:37 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Tue, Mar 21

abidmalikwaterloo added inline comments to D142796: Flang semantic check support for tile and unroll OpenMP Directive..
Tue, Mar 21, 12:37 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Mon, Mar 13

abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Make correction to the format of OMP.td

Mon, Mar 13, 12:00 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Added test for tile size clause

Mon, Mar 13, 10:46 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Made corrcection in Formating

Mon, Mar 13, 10:24 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Made changes to take semantic checks for OPENMP TILE--> SIZE clause so it
can take list of integers

Mon, Mar 13, 10:02 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Mon, Mar 6

abidmalikwaterloo added a comment to D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Ping!

Mon, Mar 6, 6:41 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Mar 1 2023

abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Remove redundent code

Mar 1 2023, 8:19 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the summary of D142796: Flang semantic check support for tile and unroll OpenMP Directive..
Mar 1 2023, 6:12 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Format correction for omp-tile-size.f90

Mar 1 2023, 6:10 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Corrected the format of tests

Mar 1 2023, 6:07 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Update the patch with basic support for semantic checks of
OpenMP Tile and Unroll Constructs
OpenMP 5.1

Mar 1 2023, 5:58 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Feb 8 2023

abidmalikwaterloo updated the diff for D122255: Meta directive runtime support.

Rebase the patch to origin/main with all updates. Made changes
to make it buildable using the new changes.
(WIP).

Feb 8 2023, 12:50 PM · Restricted Project, Restricted Project, Restricted Project

Jan 31 2023

abidmalikwaterloo added a comment to D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Looks like smth is missing from your patch. There is also clang-format errors.

I just uploaded the header file to take feedback.

Well there is not much to comment on.

I will upload the implementation and test cases as well

Jan 31 2023, 2:31 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 30 2023

abidmalikwaterloo added a comment to D142796: Flang semantic check support for tile and unroll OpenMP Directive..

Looks like smth is missing from your patch. There is also clang-format errors.

Jan 30 2023, 6:20 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 27 2023

abidmalikwaterloo added reviewers for D142796: Flang semantic check support for tile and unroll OpenMP Directive.: kiranchandramohan, kiranktp, NimishMishra, peixin, TIFitis.
Jan 27 2023, 6:32 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo requested review of D142796: Flang semantic check support for tile and unroll OpenMP Directive..
Jan 27 2023, 6:28 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 25 2023

abidmalikwaterloo added a comment to D142524: [flang][OpenMP] Add parser support for order clause.

LGTM

Jan 25 2023, 3:15 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

Since the plan is to switch to the Canonical Style operation, maybe this can wait till the omp.canonical_loop changes are in?

Jan 25 2023, 3:14 PM · Restricted Project, Restricted Project, Restricted Project

Jan 10 2023

abidmalikwaterloo added a comment to D138928: Test cases for OpenMP metadirective support and related interop functionality.

@jz10. Thanks. The clang has meta-directive support for static conditions. Did you implement any new meta-directive support for your test?

Jan 10 2023, 6:55 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D138928: Test cases for OpenMP metadirective support and related interop functionality.

@jz10 did you create these tests stand-alone or tested them using a meta directive implementation?

we created them to test meta-directive implementation

Jan 10 2023, 6:23 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D138928: Test cases for OpenMP metadirective support and related interop functionality.

@jz10 did you create these tests stand-alone or tested them using a metadirective implementation?

Jan 10 2023, 9:13 AM · Restricted Project, Restricted Project, Restricted Project

Jan 5 2023

abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

Added a pretty test for omp.distrubute in ops.mlir

Jan 5 2023, 7:15 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

ping!

Jan 5 2023, 7:08 AM · Restricted Project, Restricted Project, Restricted Project

Jan 3 2023

abidmalikwaterloo updated the diff for D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

Updated the test case omp-unroll.f90

Jan 3 2023, 11:48 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

replace scalarIntExpr with scalarIntConstantExpr.

Jan 3 2023, 7:39 AM · Restricted Project, Restricted Project, Restricted Project

Dec 23 2022

abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

Ping!

Dec 23 2022, 3:00 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

Ping!

Dec 23 2022, 3:00 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Should I commit it to the main branch?

Dec 23 2022, 2:59 AM · Restricted Project, Restricted Project, Restricted Project

Dec 21 2022

abidmalikwaterloo updated the diff for D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

Updated the test and took care of the reviewer's comments

Dec 21 2022, 10:21 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added inline comments to D105584: [MLIR][OpenMP] Distribute Construct Operation.
Dec 21 2022, 8:37 AM · Restricted Project, Restricted Project, Restricted Project

Dec 15 2022

abidmalikwaterloo updated the diff for D122255: Meta directive runtime support.

Clean the formatting comments. The patch is out of attention
for a while. Still need to work on the context selector part
as a next step.

Dec 15 2022, 7:54 PM · Restricted Project, Restricted Project, Restricted Project

Dec 13 2022

abidmalikwaterloo added a comment to D138928: Test cases for OpenMP metadirective support and related interop functionality.

The tests do not include any runtime conditions.

Dec 13 2022, 3:24 PM · Restricted Project, Restricted Project, Restricted Project

Dec 5 2022

abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

Update the patch based on the feedback and comments.

Dec 5 2022, 10:37 AM · Restricted Project, Restricted Project, Restricted Project

Nov 28 2022

abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

Patch probably needs a rebase. A few more minor things to fix. Looks mostly ready.

Nov 28 2022, 10:27 AM · Restricted Project, Restricted Project, Restricted Project

Nov 23 2022

abidmalikwaterloo added a comment to D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

Ahh! I thought I fixed the clang-format issues. will look into it.

Nov 23 2022, 4:25 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Added support for clauses. Added a new test case.

Nov 23 2022, 10:18 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).

Added support for the clauses . Added new tests

Nov 23 2022, 9:18 AM · Restricted Project, Restricted Project, Restricted Project

Nov 21 2022

abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

There is still an issue with the clang-format of flang/lib/Parser/unparse.cpp that is causing the CI to fail.

I also completely missed that the support for sizes clause is missing. We have to add support for parsing this clause in openmp-parsers.cpp and specify the type in the OMP.td. See relevant changes below. Feel free to use the suggested change if it looks OK.

Please also add a test with the sizes clause.

diff --git a/flang/lib/Parser/openmp-parsers.cpp b/flang/lib/Parser/openmp-parsers.cpp
index b4d41c899e96..032e3c6cf8ca 100644
--- a/flang/lib/Parser/openmp-parsers.cpp
+++ b/flang/lib/Parser/openmp-parsers.cpp
@@ -263,6 +263,8 @@ TYPE_PARSER(
     "SIMD"_id >> construct<OmpClause>(construct<OmpClause::Simd>()) ||
     "SIMDLEN" >> construct<OmpClause>(construct<OmpClause::Simdlen>(
                      parenthesized(scalarIntConstantExpr))) ||
+    "SIZES" >> construct<OmpClause>(construct<OmpClause::Sizes>(
+                   parenthesized(nonemptyList(scalarIntExpr)))) ||
     "THREADS" >> construct<OmpClause>(construct<OmpClause::Threads>()) ||
     "THREAD_LIMIT" >> construct<OmpClause>(construct<OmpClause::ThreadLimit>(
                           parenthesized(scalarIntExpr))) ||
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td
index 5f1d335ef04f..cac10c4c690f 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -67,7 +67,11 @@ def OMPC_Private : Clause<"private"> {
   let clangClass = "OMPPrivateClause";
   let flangClass = "OmpObjectList";
 }
-def OMPC_Sizes: Clause<"sizes"> { let clangClass = "OMPSizesClause"; }
+def OMPC_Sizes: Clause<"sizes"> {
+  let clangClass = "OMPSizesClause";
+  let flangClass = "ScalarIntExpr";
+  let isValueList = true;
+}
 def OMPC_Full: Clause<"full"> { let clangClass = "OMPFullClause"; }
 def OMPC_Partial: Clause<"partial"> { let clangClass = "OMPPartialClause"; }
 def OMPC_FirstPrivate : Clause<"firstprivate"> {
Nov 21 2022, 1:04 PM · Restricted Project, Restricted Project, Restricted Project

Nov 17 2022

abidmalikwaterloo updated the diff for D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Fixed the problem with clang-format

Nov 17 2022, 10:57 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo requested review of D138229: [flang][OpenMP] Parser support for the unroll construct (5.1).
Nov 17 2022, 10:51 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the summary of D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).
Nov 17 2022, 9:44 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

The build is failing. See inline for issue.

    "TILE" >> pure(llvm::omp::Directive::OMPD_tile))
    ^
/var/lib/buildkite-agent/builds/llvm-project/flang/lib/Parser/type-parser-implementation.h:23:9: note: macro 'TYPE_PARSER' defined here
#define TYPE_PARSER(pexpr) \
        ^
/var/lib/buildkite-agent/builds/llvm-project/flang/lib/Parser/openmp-parsers.cpp:285:1: error: unknown type name 'TYPE_PARSER'
TYPE_PARSER(sourced(construct<OmpLoopDirective>(first(
^
/var/lib/buildkite-agent/builds/llvm-project/flang/lib/Parser/openmp-parsers.cpp:321:1: error: expected unqualified-id
TYPE_PARSER(sourced(construct<OmpBeginLoopDirective>(
^
/var/lib/buildkite-agent/builds/llvm-project/flang/lib/Parser/type-parser-implementation.h:24:3: note: expanded from macro 'TYPE_PARSER'
  template <> \
  ^

Also, please clang-format the following files,

flang/lib/Parser/openmp-parsers.cpp
flang/lib/Parser/unparse.cpp
Nov 17 2022, 7:11 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Made changes to openmp-parsers.cpp as pinpointed by the reviewer.

Nov 17 2022, 6:58 AM · Restricted Project, Restricted Project, Restricted Project

Nov 16 2022

abidmalikwaterloo updated the diff for D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Updated the patch based on the comments. Also added simple test case.

Nov 16 2022, 10:21 AM · Restricted Project, Restricted Project, Restricted Project

Nov 15 2022

abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

I have a question about the test: The following passed the test

! RUN: %flang_fc1 -fdebug-unparse -fopenmp %s | FileCheck --ignore-case %s
! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
Nov 15 2022, 12:35 PM · Restricted Project, Restricted Project, Restricted Project

Nov 7 2022

abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

corrected the syntex of the code

Nov 7 2022, 9:06 AM · Restricted Project, Restricted Project, Restricted Project

Nov 4 2022

abidmalikwaterloo added inline comments to D105584: [MLIR][OpenMP] Distribute Construct Operation.
Nov 4 2022, 11:48 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

Ping!
Does this need any further change? Seems okay to me.

Nov 4 2022, 8:17 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

Seems that everything has been taken care of. It was accidentally out of my radar (do not know why). I will go through it once again and update it.

Nov 4 2022, 3:24 AM · Restricted Project, Restricted Project, Restricted Project

Nov 2 2022

abidmalikwaterloo updated the diff for D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

Model Tile Construct as OpenMPLoopConstruct.
The patch contains the basic support.

Nov 2 2022, 11:42 AM · Restricted Project, Restricted Project, Restricted Project

Oct 31 2022

abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

It looks that the tile construct can be modeled as OpenMPLoopConstruct. But, how it will be linked to OmpLoopDirective? I am getting the following error:

Oct 31 2022, 11:14 AM · Restricted Project, Restricted Project, Restricted Project

Oct 27 2022

abidmalikwaterloo added a comment to D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).

@kiranchandramohan : You mean we should have :

Oct 27 2022, 7:28 AM · Restricted Project, Restricted Project, Restricted Project

Oct 20 2022

abidmalikwaterloo added a comment to D136279: [flang][OpenMP] Added parser support for Tile Construct.

This patch has been abandoned
check the following
https://reviews.llvm.org/D136359

Oct 20 2022, 7:34 AM · Restricted Project, Restricted Project
abidmalikwaterloo requested review of D136359: [flang][OpenMP] Added parser support for Tile Construct ( OpenMP 5.1).
Oct 20 2022, 7:31 AM · Restricted Project, Restricted Project, Restricted Project

Oct 19 2022

abidmalikwaterloo abandoned D136279: [flang][OpenMP] Added parser support for Tile Construct.

Yes. Something went wrong. No changes showed up. I will submit it again.

Oct 19 2022, 1:55 PM · Restricted Project, Restricted Project
abidmalikwaterloo requested review of D136279: [flang][OpenMP] Added parser support for Tile Construct.
Oct 19 2022, 12:06 PM · Restricted Project, Restricted Project

Oct 11 2022

abidmalikwaterloo added a comment to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

In case:

Oct 11 2022, 7:06 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Oct 10 2022

abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Oct 10 2022, 8:02 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Sep 20 2022

abidmalikwaterloo updated the diff for D122255: Meta directive runtime support.

Updated the PrintStmt.cpp according to the comments

Sep 20 2022, 12:44 PM · Restricted Project, Restricted Project, Restricted Project

Sep 15 2022

abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Sep 15 2022, 11:30 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Sep 12 2022

abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Sep 12 2022, 6:22 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Aug 31 2022

abidmalikwaterloo added a comment to D122255: Meta directive runtime support.

I will work on the patch in parts. I am planning to submit taking care of comments except for comments for SemaOpenMP and code generation.

Aug 31 2022, 7:07 AM · Restricted Project, Restricted Project, Restricted Project

Aug 19 2022

abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 19 2022, 12:40 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Aug 18 2022

abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 18 2022, 8:11 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added inline comments to D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 18 2022, 6:34 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Aug 15 2022

abidmalikwaterloo updated the summary of D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 15 2022, 12:41 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a reviewer for D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR.: raghavendhra.
Aug 15 2022, 12:40 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo requested review of D131915: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 15 2022, 12:39 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

[MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR

Looks like it's not the complete revision. There are almost no diffs anymore.

Aug 15 2022, 11:17 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo abandoned D131907: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 15 2022, 11:05 AM · Restricted Project, Restricted Project
abidmalikwaterloo requested review of D131907: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..
Aug 15 2022, 11:05 AM · Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

[MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR

Aug 15 2022, 10:57 AM · Restricted Project, Restricted Project, Restricted Project

Aug 8 2022

abidmalikwaterloo added a comment to D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

@abidmalikwaterloo Can you please check your last patch pushed for review? https://buildkite.com/llvm-project/diff-checks/builds/117796 states it can not apply your patch something to do with the usage of diff --update <patch>? Can you please check?

@raghavendhra I tried to correct it but could not figure out the solution. Do you have any? I am not experienced with the phabricator framework. One solution is to submit another patch with all changes till today and abandon this one.

Sorry, I am new to phabricator as well. I use "arc diff" to upload my revisions for review after addressing review comments. If no one responds probably I am fine with new review and abandoning this one.

Did you try arc diff --update D105255 from your branch?

Aug 8 2022, 3:25 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D130851: [MLIR][OpenMP] Unroll Construct operation.
  • The full clause does not have an operand, it is more similar to a flag like nowait.

nowait is unitAtt. full can be treated the same way. I am considering it as boolean with 0 as false and 1 as true <

full(0) or full(1) feels clunkier than a flag. $full_operand is also an Optional, does it mean that full() is valid as well? Any reason to not also make it a unitAtt?

I will make it UnitAtt.

Partial Clause has unroll factor which is an integer expression. There is no sentinal value, I think!

I think I oversaw that it is an Optional<>, hence None would be that sentinel.

Aug 8 2022, 10:15 AM · Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

@abidmalikwaterloo Can you please check your last patch pushed for review? https://buildkite.com/llvm-project/diff-checks/builds/117796 states it can not apply your patch something to do with the usage of diff --update <patch>? Can you please check?

Aug 8 2022, 9:53 AM · Restricted Project, Restricted Project, Restricted Project

Aug 2 2022

abidmalikwaterloo added a comment to D130851: [MLIR][OpenMP] Unroll Construct operation.

I am not familiar with the MLIR tablegen format, but there might two issues:

  • The full clause does not have an operand, it is more similar to a flag like nowait.

nowait is unitAtt. full can be treated the same way. I am considering it as boolean with 0 as false and 1 as true <

  • The partial clauses operand is optional. $partial_operand is AnyInteger. Is there a sentinal value for $partial_operand if the clauses operand is omitted?
Aug 2 2022, 4:04 PM · Restricted Project, Restricted Project

Jul 31 2022

abidmalikwaterloo retitled D130851: [MLIR][OpenMP] Unroll Construct operation from [MLIR][OpenMP] Unroll operation for the OMP dialect. to [MLIR][OpenMP] Unroll Construct operation.
Jul 31 2022, 2:41 PM · Restricted Project, Restricted Project
abidmalikwaterloo added reviewers for D130851: [MLIR][OpenMP] Unroll Construct operation: Meinersbur, kiranktp, kiranchandramohan.
Jul 31 2022, 12:07 PM · Restricted Project, Restricted Project
abidmalikwaterloo requested review of D130851: [MLIR][OpenMP] Unroll Construct operation.
Jul 31 2022, 12:05 PM · Restricted Project, Restricted Project

Jul 28 2022

abidmalikwaterloo added a reviewer for D130741: [MLIR][OpenMP] tile Construct Operation: shraiysh.
Jul 28 2022, 6:35 PM · Restricted Project, Restricted Project
abidmalikwaterloo retitled D130741: [MLIR][OpenMP] tile Construct Operation from This patch defines the tile operation for OMP Dialects to [MLIR][OpenMP] tile Construct Operation.
Jul 28 2022, 6:32 PM · Restricted Project, Restricted Project
abidmalikwaterloo requested review of D130741: [MLIR][OpenMP] tile Construct Operation.
Jul 28 2022, 6:28 PM · Restricted Project, Restricted Project

Jul 27 2022

abidmalikwaterloo added a comment to D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

I just updated the patch. Something went wrong. I used arc diff --update <patch> for uploading. However, it seems it is not comparing the last submitted patch.

Jul 27 2022, 10:10 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

Added assembly format
changed the type of mape_type_modifier

Jul 27 2022, 9:57 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added inline comments to D122255: Meta directive runtime support.
Jul 27 2022, 5:48 AM · Restricted Project, Restricted Project, Restricted Project

Jul 21 2022

abidmalikwaterloo added inline comments to D122255: Meta directive runtime support.
Jul 21 2022, 11:56 AM · Restricted Project, Restricted Project, Restricted Project

Jul 14 2022

abidmalikwaterloo added a comment to D127037: [OpenMP][IRBuilder][OpenACC] Move common code from OpenACCToLLVMIRTranslation to Utils/DirectiveToLLVMIRTranslation so that it can be used between OpenACC and OpenMP..

@raghavendhra @kiranchandramohan After listening to your presentation today, I am inclined towards keeping it separate. There is a big assumption that OpenMP and OpenACC will move hand in hand which might be true now but in the future, it might not be true.

Jul 14 2022, 9:17 AM · Restricted Project, Restricted Project, Restricted Project

Jul 12 2022

abidmalikwaterloo added a comment to D122255: Meta directive runtime support.

Ping!

Jul 12 2022, 12:18 PM · Restricted Project, Restricted Project, Restricted Project

Jul 11 2022

abidmalikwaterloo added a comment to D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

Why not adding the assembly format directly for these operations like your patch D105584?

Jul 11 2022, 5:46 PM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D105255: [MLIR][OpenMP] Added target data, exit data, and enter data operation definition for MLIR..

Update ops.mlir test cases. llvm-lit is working and all tests are passing

Jul 11 2022, 12:04 PM · Restricted Project, Restricted Project, Restricted Project

Jul 6 2022

abidmalikwaterloo updated the diff for D122255: Meta directive runtime support.

Updated and clean the code based on the comments from
the reviewer!

Jul 6 2022, 12:23 PM · Restricted Project, Restricted Project, Restricted Project

Jul 5 2022

abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

Removed unrelated changes in CMakefile.txt

Jul 5 2022, 10:06 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.

update the changes

Jul 5 2022, 8:55 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

Updated DistributeOp::verify as per reviewer's comments

Jul 5 2022, 8:54 AM · Restricted Project, Restricted Project, Restricted Project

Jun 30 2022

abidmalikwaterloo added a reviewer for D122255: Meta directive runtime support: ABataev.
Jun 30 2022, 11:26 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added inline comments to D122255: Meta directive runtime support.
Jun 30 2022, 11:19 AM · Restricted Project, Restricted Project, Restricted Project

Jun 29 2022

abidmalikwaterloo updated the diff for D105584: [MLIR][OpenMP] Distribute Construct Operation.

Update the patch for assembly format. Change the WSLoopControl
to LoopControl. Added DistributeOp to parent of Yield OP. Added
one test case

Jun 29 2022, 11:35 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.
// CHECK-LABEL: omp_DistributeOp
func.func @omp_DistributeOp(%lb : index, %ub : index, %step : index, %data_var : memref<i32>, %chunk_var : i32) -> () {
   // CHECK: omp.DistributeOp collapse(2)
  "omp.DistributeOp" (%lb, %ub, %step) ({
    ^bb0(%iv: index):
     omp.yield
  }) {operand_segment_sizes = dense<[1,1,1,0,0]> : vector<5xi32>, collapse_val = 2} :
    (index, index, index) -> ()
 
 return
 }

Is this a valid test case for the operation?

Should it be "omp.distribute" (%lb, %ub, %step) ({?

Yes. It should be. The rest should be okay? But, the test is failing.

Jun 29 2022, 10:52 AM · Restricted Project, Restricted Project, Restricted Project
abidmalikwaterloo added a comment to D105584: [MLIR][OpenMP] Distribute Construct Operation.
// CHECK-LABEL: omp_DistributeOp
func.func @omp_DistributeOp(%lb : index, %ub : index, %step : index, %data_var : memref<i32>, %chunk_var : i32) -> () {
   // CHECK: omp.DistributeOp collapse(2)
  "omp.DistributeOp" (%lb, %ub, %step) ({
    ^bb0(%iv: index):
     omp.yield
  }) {operand_segment_sizes = dense<[1,1,1,0,0]> : vector<5xi32>, collapse_val = 2} :
    (index, index, index) -> ()
 
 return
 }

Is this a valid test case for the operation?

Should it be "omp.distribute" (%lb, %ub, %step) ({?

Jun 29 2022, 1:45 AM · Restricted Project, Restricted Project, Restricted Project