Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Dec 15, 2023
1 parent d450316 commit be92149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
20 changes: 1 addition & 19 deletions libclambcc/ClamBCExtendPHIsTo64Bit/ClamBCExtendPHIsTo64Bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "Common/ClamBCUtilities.h"

#include <llvm/Support/DataTypes.h>
//#include "ClamBCTargetMachine.h"
#include <llvm/ADT/STLExtras.h>
#include <llvm/Analysis/ConstantFolding.h>
#include <llvm/IR/DebugInfo.h>
Expand Down Expand Up @@ -122,12 +121,10 @@ class ClamBCExtendPHIsTo64Bit : public PassInfoMixin<ClamBCExtendPHIsTo64Bit >
public:
static char ID;

explicit ClamBCExtendPHIsTo64Bit()
/* : ModulePass(ID) */ {}
explicit ClamBCExtendPHIsTo64Bit() {}

virtual ~ClamBCExtendPHIsTo64Bit() {}

//virtual bool runOnModule(Module &m)
virtual PreservedAnalyses run(Module & m, ModuleAnalysisManager & MAM)
{

Expand All @@ -150,18 +147,6 @@ class ClamBCExtendPHIsTo64Bit : public PassInfoMixin<ClamBCExtendPHIsTo64Bit >
}
};

#if 0
char ClamBCExtendPHIsTo64Bit::ID = 0;
static RegisterPass<ClamBCExtendPHIsTo64Bit> X("clambc-extend-phis-to-64bit", "ClamBCExtendPHIsTo64Bit Pass",
false /* Only looks at CFG */,
false /* Analysis Pass */);

llvm::ModulePass *createClamBCExtendPHIsTo64Bit()
{
return new ClamBCExtendPHIsTo64Bit();
}
#else

// This part is the new way of registering your pass
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
llvmGetPassPluginInfo() {
Expand All @@ -185,6 +170,3 @@ llvmGetPassPluginInfo() {




#endif

7 changes: 1 addition & 6 deletions libclambcc/ClamBCLogicalCompiler/ClamBCLogicalCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,8 @@ namespace ClamBCLogicalCompiler
class ClamBCLogicalCompiler : public PassInfoMixin<ClamBCLogicalCompiler>
{
public:
#if 0
static char ID;
#endif
ClamBCLogicalCompiler()
/* : ModulePass(ID) */ {}
ClamBCLogicalCompiler() {}

//virtual bool runOnModule(Module &M);
virtual PreservedAnalyses run(Module & m, ModuleAnalysisManager & MAM);
virtual void getAnalysisUsage(AnalysisUsage &AU) const
{
Expand Down

0 comments on commit be92149

Please sign in to comment.