Skip to content

Commit e8636f7

Browse files
committed
[TSAR, Parallel, Parallel] Add ParallelItem class to represent the result of parallelization.
We also add classes to represent some of the DVMH directives. We split the parallelization process into two steps. In the first step, parallel directives will be attached to basic blocks. This allows us to implement the optimization of a parallel program in further commits. In the second step, DVMH directives should be inserted into the source code.
1 parent d498eb8 commit e8636f7

File tree

5 files changed

+790
-239
lines changed

5 files changed

+790
-239
lines changed

include/tsar/Support/Directives.td

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ def Assert : Directive<"assert">;
100100
def Region : Directive<"region">;
101101
def Metadata : Directive<"metadata">;
102102

103-
def DvmTemplate: Directive<"template", Dvm>;
104-
def DvmArray : Directive<"array", Dvm>;
105-
def DvmInherit : Directive<"inherit", Dvm>;
103+
def DvmTemplate : Directive<"template", Dvm>;
104+
def DvmArray : Directive<"array", Dvm>;
105+
def DvmInherit : Directive<"inherit", Dvm>;
106+
def DvmRegion : Directive<"region", Dvm>;
107+
def DvmParallel : Directive<"parallel", Dvm>;
108+
def DvmActual : Directive<"actual", Dvm>;
109+
def DvmGetActual : Directive<"get_actual", Dvm>;
106110

107111
// Define one clause.
108112
class Clause<string name, Directive parent, list<Expr> expr_list = []> {

0 commit comments

Comments
 (0)