search for: addpassestoemitwholefile

Displaying 13 results from an estimated 13 matches for "addpassestoemitwholefile".

2009 Jul 16
3
[LLVMdev] Handling of built-in functions
...two steps can be made inside a ModulePass. The definition of TargetMachine allows for any pass manager deriving form BasicPass to be passed to AddPassesToEmitFile. However, I see that llc uses a FunctionPassManager for all the passes. A (module)PassManager is used only if the target implements AddPassesToEmitWholeFile but the comments on the base class discourage this path. Am I approaching the problem the wrong way? I haven't worked much on case b) but my idea was to use a similar approach but instead of writing the built-in function implementation in straight C an asm block would be used to insert the...
2008 Nov 25
1
[LLVMdev] AddReadAttrs vs. TargetMachine?
Hi, I want to invoke the AddReadAttrs pass with my software backend (derived from TargetMachine like CBackend). CBackend uses addPassesToEmitWholeFile-method for invoking several passes. I tried to use the same method, but it failed on runtime. Running llc with my backend produces (mac os x 10.5 and llvm 2.4): dyld: lazy symbol binding failed: Symbol not found: __ZN4llvm22createAddReadAttrsPassEv Referenced from: /myproject/build/Release/...
2009 Jul 20
2
[LLVMdev] Handling of built-in functions
...ModulePass. The definition of TargetMachine allows for any pass >> manager deriving form BasicPass to be passed to AddPassesToEmitFile. >> However, I see that llc uses a FunctionPassManager for all the passes. A >> (module)PassManager is used only if the target implements >> AddPassesToEmitWholeFile but the comments on the base class discourage >> this path. Am I approaching the problem the wrong way? >> >> I haven't worked much on case b) but my idea was to use a similar >> approach but instead of writing the built-in function implementation in >> straight C...
2010 Apr 22
0
[LLVMdev] 2.7 release notes
...></li> +</ul></li> </ul> </div> There were others, which are not documented, but I'm not sure I understand completely the change, so probably someone else should reword that to fit in ReleaseNotes.html: - New argument DisableVerify to llvm::TargetMachine::addPassesToEmitWholeFile (it has a default value, but one must update the declaration of redefinition of this function in derived classes). - TargetAsmInfo changed to MCAsmInfo in back-end writters. -- Matthieu Moy http://www-verimag.imag.fr/~moy/
2009 Jul 20
0
[LLVMdev] Handling of built-in functions
...e > inside a ModulePass. The definition of TargetMachine allows for any pass > manager deriving form BasicPass to be passed to AddPassesToEmitFile. > However, I see that llc uses a FunctionPassManager for all the passes. A > (module)PassManager is used only if the target implements > AddPassesToEmitWholeFile but the comments on the base class discourage > this path. Am I approaching the problem the wrong way? > > I haven't worked much on case b) but my idea was to use a similar > approach but instead of writing the built-in function implementation in > straight C an asm block would b...
2007 Jan 22
2
[LLVMdev] addPassesToEmit(Whole)File changes?
Hi folks, just installed the new llvm 1.9 build and noticed that my code no longer worked. It seems something has changed with addPassesToEmitFile(). First, the arguments to that method changed so that it no longer takes a PassManager, but only a FunctionPassManager. Instead there is a addPassesToEmitWholeFile() method, but that is marked as optional, and when I change my code to use that there is no output (only an empty file). I tried changing to code to use a FunctionPassManager, but that then requires the run() call to be changed to individual functions, and I am not convinced I want to do t...
2009 Jul 21
3
[LLVMdev] Handling of built-in functions
...ModulePass. The definition of TargetMachine allows for any pass >> manager deriving form BasicPass to be passed to AddPassesToEmitFile. >> However, I see that llc uses a FunctionPassManager for all the passes. A >> (module)PassManager is used only if the target implements >> AddPassesToEmitWholeFile but the comments on the base class discourage >> this path. Am I approaching the problem the wrong way? >> >> I haven't worked much on case b) but my idea was to use a similar >> approach but instead of writing the built-in function implementation in >> straight C...
2009 Jul 20
0
[LLVMdev] Handling of built-in functions
...e > inside a ModulePass. The definition of TargetMachine allows for any pass > manager deriving form BasicPass to be passed to AddPassesToEmitFile. > However, I see that llc uses a FunctionPassManager for all the passes. A > (module)PassManager is used only if the target implements > AddPassesToEmitWholeFile but the comments on the base class discourage > this path. Am I approaching the problem the wrong way? > > I haven't worked much on case b) but my idea was to use a similar > approach but instead of writing the built-in function implementation in > straight C an asm block would b...
2009 Jul 21
0
[LLVMdev] Handling of built-in functions
...definition of TargetMachine allows for any pass >>> manager deriving form BasicPass to be passed to AddPassesToEmitFile. >>> However, I see that llc uses a FunctionPassManager for all the passes. A >>> (module)PassManager is used only if the target implements >>> AddPassesToEmitWholeFile but the comments on the base class discourage >>> this path. Am I approaching the problem the wrong way? >>> >>> I haven't worked much on case b) but my idea was to use a similar >>> approach but instead of writing the built-in function implementation in >...
2010 Apr 22
8
[LLVMdev] 2.7 release notes
Ok, the LLVM 2.7 release notes are in near final shape. Please take a look and suggest improvements (or, better yet, just commit improvements if you have commit access): http://llvm.org/docs/ReleaseNotes.html Things still needed are marked with FIXMEs. These include: 1. Clang needs a blurb describing what's new in 2.7. Have the clang folks been doing anything for the last 6 months? 2. I
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
Hi folks, just installed the new llvm 1.9 build and noticed that my code no longer worked. It seems something has changed with addPassesToEmitFile(). First, the arguments to that method changed so that it no longer takes a PassManager, but only a FunctionPassManager. Instead there is a addPassesToEmitWholeFile() method, but that is marked as optional, and when I change my code to use that there is no output (only an empty file). I tried changing to code to use a FunctionPassManager, but that then requires the run() call to be changed to individual functions, and I am not convinced I want to do t...
2010 Apr 22
1
[LLVMdev] 2.7 release notes
...lt;/ul> > > </div> > > There were others, which are not documented, but I'm not sure I > understand completely the change, so probably someone else should > reword that to fit in ReleaseNotes.html: > > - New argument DisableVerify to > llvm::TargetMachine::addPassesToEmitWholeFile (it has a default > value, but one must update the declaration of redefinition of this > function in derived classes). > > - TargetAsmInfo changed to MCAsmInfo in back-end writters. > > -- > Matthieu Moy > http://www-verimag.imag.fr/~moy/
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
...just installed the new llvm 1.9 build and noticed that my code no > longer worked. It seems something has changed with > addPassesToEmitFile(). First, the arguments to that method changed so > that it no longer takes a PassManager, but only a > FunctionPassManager. Instead there is a addPassesToEmitWholeFile() > method, but that is marked as optional, and when I change my code to > use that there is no output (only an empty file). Right, you want to use addPassesToEmitFile if you want the native code generators to work. > I tried changing to code to use a FunctionPassManager, but that then...