search for: permodulepass

Displaying 10 results from an estimated 10 matches for "permodulepass".

Did you mean: permodulepasses
2006 Sep 03
0
[LLVMdev] llvm-gcc4: Enable various optimizations at -O1/-O2
...various llvm optimizations at -O1/-O2/-O3. This means instead of $ llvm-gcc4 --emit-llvm foo.c -o foo.bc $ opt foo.bc -o foo_optimized.bc $ llc foo_optimized.bc -o foo.o One can directly use $ llvm-gcc4 -O2 foo.c -o foo.o to get optimized foo.o - Devang + + if (optimize > 0) { + + + PerModulePasses->add(createRaiseAllocationsPass()); // call % malloc -> malloc inst + PerModulePasses->add(createCFGSimplificationPass()); // Clean up disgusting code + PerModulePasses->add(createPromoteMemoryToRegisterPass());// Kill useless allocas + PerModulePasses->add(cre...
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
...+51,7 @@ #include "llvm/Support/Streams.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" +#include "llvm/System/Program.h" #include <cassert> #undef VISIBILITY_HIDDEN extern "C" { @@ -272,6 +273,10 @@ PerModulePasses = new PassManager(); PerModulePasses->add(new TargetData(*TheTarget->getTargetData())); + // If writing to stdout, set binary mode. + if (asm_out_file == stdout) + sys::Program::ChangeStdoutToBinary(); + // Emit an LLVM .bc file to the output. This is used when passed // -e...
2008 Apr 14
2
[LLVMdev] standard passes
> If you're running opt on the command line directly, then use the > "-p" option. See "-help" for more information on that. > > -bw > I have a couple of more questions. 1. Does -std-compile-opts of opt do the same optimization with llvm-gcc with -O[1-3] options? If I want to debug into passes through llvm-gcc, how do I set a breakpoint right before pass
2013 Jul 17
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...whether to emit a diagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Th...
2013 Jul 17
4
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...whether to emit a diagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Th...
2013 Jul 17
3
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...whether to emit a diagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Th...
2013 Jul 20
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...whether to emit a diagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Th...
2013 Jul 17
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
On Tue, Jul 16, 2013 at 9:34 PM, Bob Wilson <bob.wilson at apple.com> wrote: > > On Jul 16, 2013, at 5:51 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > > On Tue, Jul 16, 2013 at 5:21 PM, Quentin Colombet <qcolombet at apple.com> > wrote: > > ** Advices Needed ** > > 1. Decide whether or not we want such capabilities (if we do not we may >
2013 Jul 17
2
[LLVMdev] [RFC] Add warning capabilities in LLVM.
On Jul 16, 2013, at 5:51 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Tue, Jul 16, 2013 at 5:21 PM, Quentin Colombet <qcolombet at apple.com> wrote: >> ** Advices Needed ** >> >> 1. Decide whether or not we want such capabilities (if we do not we may just >> add sporadically the support for a new warning/group of warning/error). >> 2. Come
2007 Apr 30
1
[LLVMdev] llvm-gcc build broken
...as not declared in this scope /projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:226: error: expected type-specifier before `OStream' /projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:226: error: expected `;' before `OStream' /projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:228: error: `PerModulePasses' was not declared in this scope /projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:228: error: expected type-specifier before `PassManager' /projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:228: error: expected `;' before `PassManager' /projects/compiler/llvm-gcc/gcc/llvm-backend.c...