Add unmasked { } statement.
This reestablishes an "all on" execution mask for the gang, which can be useful for nested parallelism..
This commit is contained in:
17
stmt.h
17
stmt.h
@@ -297,6 +297,23 @@ public:
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
class UnmaskedStmt : public Stmt {
|
||||
public:
|
||||
UnmaskedStmt(Stmt *stmt, SourcePos pos);
|
||||
|
||||
void EmitCode(FunctionEmitContext *ctx) const;
|
||||
void Print(int indent) const;
|
||||
|
||||
Stmt *TypeCheck();
|
||||
int EstimateCost() const;
|
||||
|
||||
Stmt *stmts;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/** @brief Statement implementation for a 'return' or 'coherent' return
|
||||
statement in the program. */
|
||||
class ReturnStmt : public Stmt {
|
||||
|
||||
Reference in New Issue
Block a user