diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-12-10 00:42:22 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-12-10 00:42:22 +0000 |
| commit | 41aab86c4041f8f0ffb268a92b574d29199c8418 (patch) | |
| tree | 99b4a79829874d60901dc3368c667de4c3e94608 /llvm | |
| parent | 3425529fc585fc26c66432cf53624a0392578ab0 (diff) | |
| download | bcm5719-llvm-41aab86c4041f8f0ffb268a92b574d29199c8418.tar.gz bcm5719-llvm-41aab86c4041f8f0ffb268a92b574d29199c8418.zip | |
The pass Parallelize automatically parallelizes a program using the
Cilk multi-threaded runtime system to execute parallel code. This file
exposes some routines needed for code generation for that pass.
llvm-svn: 4961
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Transforms/Parallelize.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/Parallelize.h b/llvm/include/llvm/Transforms/Parallelize.h new file mode 100644 index 00000000000..94e49f12b54 --- /dev/null +++ b/llvm/include/llvm/Transforms/Parallelize.h @@ -0,0 +1,26 @@ +//===- Parallelize.h - Auto parallelization using DS Graphs -----*- C++ -*-===// +// +// Externally visible routines related to the IPO pass Parallelize in +// lib/Transforms/IPO/Parallelize.cpp. That pass automatically parallelizes +// a program using the Cilk multi-threaded runtime system to execute +// parallel code. The routines here are used only to identify functions +// marked as Cilk operations. +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_PARALLELIZE_H +#define LLVM_TRANSFORMS_PARALLELIZE_H + +class Function; +class CallInst; + +//---------------------------------------------------------------------------- +// Routines to identify Cilk functions, calls to Cilk functions, and syncs. +//---------------------------------------------------------------------------- + +extern bool isCilk(const Function& F); +extern bool isCilk(const CallInst& CI); +extern bool isSync(const CallInst& CI); + +//===----------------------------------------------------------------------===// + +#endif |

