mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
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
This commit is contained in:
parent
03e6fa5804
commit
c8ea11cf8e
26
include/llvm/Transforms/Parallelize.h
Normal file
26
include/llvm/Transforms/Parallelize.h
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user