disable new LLVM pass manager for now

This commit is contained in:
Godmar Back 2022-04-03 10:48:25 -04:00
parent 6d4fabbc7d
commit 91b0f7b037

View File

@ -28,12 +28,12 @@ mdriver: $(OBJS)
libMallocInstrumented.so: mm.c list.c memlib.c mallocanalysis.c libMallocInstrumented.so: mm.c list.c memlib.c mallocanalysis.c
# This compiles and instruments mm.c # This compiles and instruments mm.c
clang $(CLANGFLAGS) mm.c -o mm.bc clang $(CLANGFLAGS) mm.c -o mm.bc
LD_LIBRARY_PATH=$(INST_BUILD_LOC)/lib opt -load libLLVMMallocInjectorPass.so -mallocinjector mm.bc -o mm-instrumented.bc LD_LIBRARY_PATH=$(INST_BUILD_LOC)/lib opt -enable-new-pm=0 -load libLLVMMallocInjectorPass.so -mallocinjector mm.bc -o mm-instrumented.bc
llc $(LLCFLAGS) mm-instrumented.bc -o mm-instrumented.o llc $(LLCFLAGS) mm-instrumented.bc -o mm-instrumented.o
# This compiles and instruments list.c # This compiles and instruments list.c
clang $(CLANGFLAGS) list.c -o list.bc clang $(CLANGFLAGS) list.c -o list.bc
LD_LIBRARY_PATH=$(INST_BUILD_LOC)/lib opt -load libLLVMMallocInjectorPass.so -mallocinjector list.bc -o list-instrumented.bc LD_LIBRARY_PATH=$(INST_BUILD_LOC)/lib opt -enable-new-pm=0 -load libLLVMMallocInjectorPass.so -mallocinjector list.bc -o list-instrumented.bc
llc $(LLCFLAGS) list-instrumented.bc -o list-instrumented.o llc $(LLCFLAGS) list-instrumented.bc -o list-instrumented.o
# Now, simply build memlib and mallocanalysis # Now, simply build memlib and mallocanalysis