Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] LLVMContext: Who Creates It?"
2009 Jul 20
0
[LLVMdev] LLVMContext: Who Creates It?
Dear John,
I think you must call (YourPassManager)->doInitialization() to set the
LLVMContext object.
Nicolas
John Criswell wrote:
> Dear Owen,
>
> Are passes supposed to grab the LLVMContext from the
> Module/Function/BasicBlock passed into their
> runOn<Module/Function/BasicBlock> method, or is the PassManager supposed
> to set the pass's Context member
2012 Dec 17
3
[LLVMdev] LoopPass doFinalization() called multiple times per program?
On Sun, Dec 16, 2012 at 7:23 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Stephen,
>
>
> On 13/12/12 18:58, Stephen McGruer wrote:
>
>> I'm wondering if the documentation for LoopPass
>> (http://llvm.org/docs/**WritingAnLLVMPass.html#**LoopPass<http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass>)
>> is misleading or
>> incorrect (or
2012 Dec 17
0
[LLVMdev] LoopPass doFinalization() called multiple times per program?
Hi Chandler,
On 17/12/12 13:47, Chandler Carruth wrote:
> On Sun, Dec 16, 2012 at 7:23 AM, Duncan Sands <baldrick at free.fr
> <mailto:baldrick at free.fr>> wrote:
>
> Hi Stephen,
>
>
> On 13/12/12 18:58, Stephen McGruer wrote:
>
> I'm wondering if the documentation for LoopPass
>
2009 Jul 08
0
[LLVMdev] MAJOR API CHANGE: LLVMContext
Owen Anderson wrote:
> Notice of a major upcoming API change: The static methods for
> constructing types and constants will be going away in the future.
> Instead, the global uniquing tables that lurk behind these APIs will
> be privatized within LLVMContext instances.
>
> What this means for you: Your client application will need to create
> an LLVMContext in
2009 Jun 30
6
[LLVMdev] MAJOR API CHANGE: LLVMContext
Notice of a major upcoming API change: The static methods for
constructing types and constants will be going away in the future.
Instead, the global uniquing tables that lurk behind these APIs will
be privatized within LLVMContext instances.
What this means for you: Your client application will need to create
an LLVMContext in main(), and pass it into a few APIs (the constructor
for
2009 Jul 15
2
[LLVMdev] Alloca with LLVMContext
Dear All,
Is there a reason why the AllocaInst constructor takes an LLVMContext
argument? Can't it just determine the context from either the basic
block or instruction pointer argument?
If the constructor can infer the context automatically, that would save
one API change.
If the constructor can't infer it, would it be possible to make the
context the last parameter and have it use a
2009 May 23
1
[LLVMdev] Basic Block API
Hi,
Thank you for your answer.
But let me get it straight, when i compile code with the llvm compiler, and
my basic block pass is being processed, other passes are concurrently being
processed ?
Thanks.
On Sat, May 23, 2009 at 7:01 PM, John Criswell <criswell at cs.uiuc.edu> wrote:
> Rotem Varon wrote:
> > Hi,
> >
> > Is there an API for getting (within a basic block
2009 Jul 15
0
[LLVMdev] Alloca with LLVMContext
On Jul 15, 2009, at 8:14 AM, John Criswell wrote:
> Dear All,
>
> Is there a reason why the AllocaInst constructor takes an LLVMContext
> argument? Can't it just determine the context from either the basic
> block or instruction pointer argument?
BasicBlocks and Instructions don't necessarily have contexts, if
they're not attached to a module. You can also
2012 Dec 16
0
[LLVMdev] LoopPass doFinalization() called multiple times per program?
Hi Stephen,
On 13/12/12 18:58, Stephen McGruer wrote:
> I'm wondering if the documentation for LoopPass
> (http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass) is misleading or
> incorrect (or if I'm just missing something.) The documentation states:
>
> "The doFinalization method ... is called when the pass framework has finished
> calling runOnLoop
2010 Feb 27
2
[LLVMdev] RegisterPass isAnalysis parameter
On Feb 25, 2010, at 5:45 PM, David A. Greene wrote:
> The RegisterPass template takes care of notifying the PassManager
> that the pass exists. One of the advantages of PassManager is
> that it decouples pass execution from the rest of the infrastructure
> so the class need not be visible to anything outside the
> implementation
> of the pass itself.
Even though the
2012 Dec 13
2
[LLVMdev] LoopPass doFinalization() called multiple times per program?
I'm wondering if the documentation for LoopPass (
http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass) is misleading or
incorrect (or if I'm just missing something.) The documentation states:
"The doFinalization method ... is called when the pass framework has
finished calling
runOnLoop<http://llvm.org/docs/WritingAnLLVMPass.html#runOnLoop> for
every loop in the program being
2009 Jul 15
2
[LLVMdev] Alloca with LLVMContext
On Wed, Jul 15, 2009 at 8:52 AM, Owen Anderson<resistor at mac.com> wrote:
>
> On Jul 15, 2009, at 8:14 AM, John Criswell wrote:
>
> Dear All,
>
> Is there a reason why the AllocaInst constructor takes an LLVMContext
> argument? Can't it just determine the context from either the basic
> block or instruction pointer argument?
>
> BasicBlocks and
2013 Nov 26
2
[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass
Hello,
using the LLVM API, I've build one very simple function that adds two
ConstantInts and returns the result.
I noticed that, when I emit IR code, it is optimized to a simple "ret
i16 42" when I add 40 and 2. I'd like to see the operations that are
necessary to compute the result, though.
Can I somehow disable this optimization in the pass, leading to more
verbose IR code?
2012 Apr 09
2
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi,
I don't think the code you pasted can be the correct code, where does FibF
come from?
Anyway, the problem is that you're calling the FibF from Module A, however
you defined it for Module B.
You need to insert the FibF function into the Module that you're running.
To do this override "virtual bool doInitialization(Module &M);" and insert
FibF into M.
Joey
2012/4/9
2010 Oct 08
2
[LLVMdev] MAJOR API CHANGE: Pass initialization without static constructors
On Oct 8, 2010, at 1:05 PM, John Criswell wrote:
> On 10/8/10 1:29 PM, Owen Anderson wrote:
>> Hello fellow LLVM-ers,
>>
>> As those of you who follow llvm-commits have probably noticed, I've been hard at work reworking our pass infrastructure to perform pass initialization/registration without static constructors. This is a boon for clients of the LLVM libraries, as
2009 Jul 08
1
[LLVMdev] MAJOR API CHANGE: LLVMContext
On Jul 8, 2009, at 7:57 AM, John Criswell wrote:
> Owen Anderson wrote:
> Can you give a brief example of where to find the LLVMContext within a
> ModulePass or FunctionPass? Is this just the context stored within
> the
> Module or Function passed to runOnModule/runOnFunction?
Passes have a protected Context member, which is set for them by the
PassManager, if you don't
2009 Jul 01
0
[LLVMdev] MAJOR API CHANGE: LLVMContext
To ease this transition, I have added a getGlobalContext() API. If
you're only ever planning to use LLVM on a single thread, it will be
completely safe to simply pass this value to every API that takes an
LLVMContext.
--Owen
On Jun 30, 2009, at 3:38 PM, Owen Anderson wrote:
> Notice of a major upcoming API change: The static methods for
> constructing types and constants will
2015 Aug 02
2
[LLVMdev] Unable to generate obj file using llc for bpf
Dear there,
I wasn't able to generate obj file for bpf using llc:
llc -march bpf -filetype=obj foo.bc
Anyone knows what is the missing part in their backend? I want to make it
work for my project.
Thanks,
Xiaochu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150802/e0b55467/attachment.html>
2011 Mar 22
2
[LLVMdev] LLVM optimization passes crash when running on second thread
Hello,
I am trying to modify my LLVM-based compiler to perform an initial, no-optimization compilation synchronously on startup and then perform an asynchronous, optimized recompilation in the background, and I am getting in one of the optimization passes.
- I am using the official release of LLVM 2.8
- I have compiled LLVM with threading enabled; I am running llvm::llvm_start_multithreaded() on
2012 Apr 09
3
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi all,
Im trying to instrument this hello function right before the instruction that call the "puts" function(the source code is as follow).
Now I can compile the pass without errors, but when run the pass with opt tool, it broke down. The diagnose is something like
Referencing function in another module!
%CallCheck = call i32 @fib()
Broken module found, compilation aborted!
Does