Halide
CanonicalizeGPUVars.h
Go to the documentation of this file.
1 #ifndef HALIDE_CANONICALIZE_GPU_VARS_H
2 #define HALIDE_CANONICALIZE_GPU_VARS_H
3 
4 /** \file
5  * Defines the lowering pass that canonicalize the GPU var names over.
6  */
7 
8 #include "Expr.h"
9 
10 namespace Halide {
11 namespace Internal {
12 
13 /** Canonicalize GPU var names into some pre-determined block/thread names
14  * (i.e. __block_id_x, __thread_id_x, etc.). The x/y/z/w order is determined
15  * by the nesting order: innermost is assigned to x and so on. */
16 Stmt canonicalize_gpu_vars(Stmt s);
17 
18 } // namespace Internal
19 } // namespace Halide
20 
21 #endif
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AddAtomicMutex.h:21
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Expr.h
Halide::Internal::canonicalize_gpu_vars
Stmt canonicalize_gpu_vars(Stmt s)
Canonicalize GPU var names into some pre-determined block/thread names (i.e.