LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Parallelize.cpp File Reference

#include "llvm/DerivedTypes.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "PgmDependenceGraph.h"
#include "llvm/Analysis/DataStructure/DataStructure.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/hash_set"
#include "llvm/ADT/hash_map"
#include <functional>
#include <algorithm>

Include dependency graph for Parallelize.cpp:

Go to the source code of this file.

Classes

class  Cilkifier
class  FindParallelCalls

Functions

static bool isCilk (const Function &F)
static bool isCilkMain (const Function &F)
static bool isCilk (const CallInst &CI)
static bool isSync (const CallInst &CI)

Variables

static const char *const CilkSuffix = ".llvm2cilk"
static const char *const DummySyncFuncName = "__sync.llvm2cilk"


Function Documentation

static bool isCilk const CallInst CI  )  [static]
 

Definition at line 78 of file Parallelize.cpp.

References llvm::CallInst::getCalledFunction(), and isCilk().

static bool isCilk const Function F  )  [static]
 

Definition at line 68 of file Parallelize.cpp.

References CilkSuffix, and llvm::Value::getName().

Referenced by isCilk().

static bool isCilkMain const Function F  )  [static]
 

Definition at line 73 of file Parallelize.cpp.

References CilkSuffix, and llvm::Value::getName().

static bool isSync const CallInst CI  )  [static]
 

Definition at line 82 of file Parallelize.cpp.

References DummySyncFuncName, llvm::CallInst::getCalledFunction(), and llvm::Value::getName().


Variable Documentation

const char* const CilkSuffix = ".llvm2cilk" [static]
 

Definition at line 61 of file Parallelize.cpp.

Referenced by isCilk(), isCilkMain(), and Cilkifier::TransformFunc().

const char* const DummySyncFuncName = "__sync.llvm2cilk" [static]
 

Definition at line 62 of file Parallelize.cpp.

Referenced by Cilkifier::Cilkifier(), and isSync().

RegisterOpt<Parallelize> X("parallel","Parallelize program using Cilk") [static]