Skip to content

Commit

Permalink
Add skeleton of PassManager
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 8, 2011
1 parent a0cab9b commit b536820
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/parrot/library/LLVM/PassManager.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class LLVM::PassManager is LLVM::Opaque {
method create() {
self.create(%LLVM::F<CreatePassManager>());
}
}

# vim: ft=perl6
4 changes: 4 additions & 0 deletions runtime/parrot/library/Rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $(LIBRARY_DIR)/LLVM.pbc : \
$(LIBRARY_DIR)/LLVM/Context.pir \
$(LIBRARY_DIR)/LLVM/Function.pir \
$(LIBRARY_DIR)/LLVM/Module.pir \
$(LIBRARY_DIR)/LLVM/PassManager.pir \
$(LIBRARY_DIR)/LLVM/Type.pir \
$(LIBRARY_DIR)/LLVM/Value.pir
$(PARROT) -o $@ $(LIBRARY_DIR)/llvm_lib.pir
Expand Down Expand Up @@ -60,6 +61,9 @@ $(LIBRARY_DIR)/LLVM/Function.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/Function.pm
$(LIBRARY_DIR)/LLVM/Module.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/Module.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM/Module.pm

$(LIBRARY_DIR)/LLVM/PassManager.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/PassManager.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM/PassManager.pm

$(LIBRARY_DIR)/LLVM/Type.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/Type.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM/Type.pm

Expand Down
1 change: 1 addition & 0 deletions runtime/parrot/library/llvm_lib.pir
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.include "runtime/parrot/library/LLVM/Context.pir"
.include "runtime/parrot/library/LLVM/Function.pir"
.include "runtime/parrot/library/LLVM/Module.pir"
.include "runtime/parrot/library/LLVM/PassManager.pir"
.include "runtime/parrot/library/LLVM/Type.pir"
.include "runtime/parrot/library/LLVM/Value.pir"

Expand Down

0 comments on commit b536820

Please sign in to comment.