Skip to content

Commit

Permalink
add C entry for julia_licm pass
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Nov 12, 2020
1 parent 59a6ca4 commit c5367d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/llvm-julia-licm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <llvm/Transforms/Utils/LoopUtils.h>

#include "llvm-pass-helpers.h"
#include "julia.h"

#define DEBUG_TYPE "julia-licm"

Expand Down Expand Up @@ -132,3 +133,8 @@ Pass *createJuliaLICMPass()
{
return new JuliaLICMPass();
}

extern "C" JL_DLLEXPORT void LLVMExtraJuliaLICMPass(LLVMPassManagerRef PM)
{
unwrap(PM)->add(createJuliaLICMPass());
}

0 comments on commit c5367d8

Please sign in to comment.