diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-01 16:49:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-01 16:49:57 +0000 |
commit | a0201eaca86296981a6bd4038e3b5e51487cb6af (patch) | |
tree | 5bef50832f84f6fd5b0bad938d0f6a25da04ba54 /lib/Transforms | |
parent | 09a670587a770ccf64207c933d95bc62bb56ffcf (diff) |
Dead files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/IPO/Cilkifier.cpp | 52 | ||||
-rw-r--r-- | lib/Transforms/IPO/Cilkifier.h | 35 |
2 files changed, 0 insertions, 87 deletions
diff --git a/lib/Transforms/IPO/Cilkifier.cpp b/lib/Transforms/IPO/Cilkifier.cpp deleted file mode 100644 index 272b3d8177..0000000000 --- a/lib/Transforms/IPO/Cilkifier.cpp +++ /dev/null @@ -1,52 +0,0 @@ -//===- Cilkifier.cpp - Support routines for Cilk code gen. ------*- C++ -*-===// -// -// This is located here so that the code generator (dis) does not have to -// include and link with the libtipo.a archive containing class Cilkifier -// and the rest of the automatic parallelization code. -//===----------------------------------------------------------------------===// - - -#include "Cilkifier.h" -#include "llvm/Function.h" -#include "llvm/iOther.h" -#include "llvm/DerivedTypes.h" - -//---------------------------------------------------------------------------- -// Global constants used in marking Cilk functions and function calls. -// These should be used only by the auto-parallelization pass. -//---------------------------------------------------------------------------- - -const std::string CilkSuffix(".llvm2cilk"); -const std::string DummySyncFuncName("__sync.llvm2cilk"); - -//---------------------------------------------------------------------------- -// Routines to identify Cilk functions, calls to Cilk functions, and syncs. -//---------------------------------------------------------------------------- - -bool isCilk(const Function& F) -{ - assert(F.hasName()); - return (F.getName().rfind(CilkSuffix) == - F.getName().size() - CilkSuffix.size()); -} - -bool isCilkMain(const Function& F) -{ - assert(F.hasName()); - return (F.getName() == std::string("main") + CilkSuffix); -} - - -bool isCilk(const CallInst& CI) -{ - return (CI.getCalledFunction() != NULL && isCilk(*CI.getCalledFunction())); -} - -bool isSync(const CallInst& CI) -{ - return (CI.getCalledFunction() != NULL && - CI.getCalledFunction()->getName() == DummySyncFuncName); -} - - -//---------------------------------------------------------------------------- diff --git a/lib/Transforms/IPO/Cilkifier.h b/lib/Transforms/IPO/Cilkifier.h deleted file mode 100644 index be79ab6b22..0000000000 --- a/lib/Transforms/IPO/Cilkifier.h +++ /dev/null @@ -1,35 +0,0 @@ -//===- Cilkifier.h - Support routines for Cilk code generation --*- C++ -*-===// -// -// This is located here so that the code generator (dis) does not have to -// include and link with the libtipo.a archive containing class Cilkifier -// and the rest of the automatic parallelization code. -//===----------------------------------------------------------------------===// - -#ifndef LLVM_SUPPORT_CILKIFIER_H -#define LLVM_SUPPORT_CILKIFIER_H - -#include <string> -class Function; -class CallInst; - - -//---------------------------------------------------------------------------- -// Global constants used in marking Cilk functions and function calls. -// These should be used only by the auto-parallelization pass. -//---------------------------------------------------------------------------- - -extern const std::string CilkSuffix; -extern const std::string DummySyncFuncName; - -//---------------------------------------------------------------------------- -// Routines to identify Cilk functions, calls to Cilk functions, and syncs. -//---------------------------------------------------------------------------- - -extern bool isCilk (const Function& F); -extern bool isCilkMain (const Function& F); -extern bool isCilk (const CallInst& CI); -extern bool isSync (const CallInst& CI); - -//===----------------------------------------------------------------------===// - -#endif |