Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] alloca not in first bb behaving differently"
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
It's not great IR, but it doesn't look like it should actually crash, just (without SROA) produce comparatively bad code. The alloca is only referenced in the basic block that it exists. If this isn't expected to work, then we should probably improve the documentation of alloca in the language reference.
David
> On 5 Apr 2015, at 04:55, Eric Christopher <echristo at
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
Thanks all.
David why do you say it is particularly bad IR (other than not having gone
through SROA). Is it the multiple blocks for early returns? That is how I'm
supporting early returns in the middle of a basic block. I couldn't find
any other way.
On Sun, Apr 5, 2015 at 6:24 AM, David Jones <djones at xtreme-eda.com> wrote:
> Data point:
>
> I use (rarely) alloca in
2015 Apr 17
2
[LLVMdev] Is bitcast now needed in LLVM?
I always thought that bitcast was a no-op internal llvm thing to fit the IR
type system.
I currently use sitofp, but I see your point.
On Fri, Apr 17, 2015 at 1:04 AM, James Molloy <james at jamesmolloy.co.uk>
wrote:
> Hi Dave,
>
> You can still bitcast between i32 and float, for example.
>
> Cheers,
>
> James
>
> On Fri, 17 Apr 2015 at 09:03 Dave Pitsbawn
2014 Oct 13
5
[LLVMdev] writing llvm ir not in c++
Is it possible to write LLVM IR but not using C++?
I'm exceedingly terrible at C++.
I was thinking, isn't it possible to write the IR using Java? I effectively
have emit some sort of binary op codes to be passed into llvm right?
The same thing for if I wanted to integrate a GC? Could the interfacing be
done in any other language?
-------------- next part --------------
An HTML
2015 Jun 02
3
[LLVMdev] LLVM June Social on Thursday?
I generally see an announcement on the list for the social events .. but I
haven't seen one yet for June.
It will be my first social if we're having this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150601/630af906/attachment.html>
2015 Mar 27
2
[LLVMdev] MCJIT finalizeObject output to use in external process
Thanks, Andy.
I'm now thinking about the case where the generated code has references to
memory addresses in the IR (the only case I suppose is call
remoteProcessADDR). I know this is not LLVM specific but what happens when
that ADDR changes due to process restart or different machine. I know this
is the clients responsibility to put the right address in the call
instruction, but generally
2015 Apr 17
3
[LLVMdev] Is bitcast now needed in LLVM?
Seems like a new change in LLVM has made it so that bitcast of bitcast i8*
%1 to %Foo* meaningless?
If I'm correct is there any need for the bitcast anymore?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150417/e5bfbc64/attachment.html>
2015 Mar 26
2
[LLVMdev] MCJIT finalizeObject output to use in external process
No, I was asking how to extract the code from MCJIT, and you said it use a
custom memory manager.
When you say that I must treat each section as a block, do you mean that
there is inter-block relative offsets need to be maintained? Or that when I
get a section, I must copy it to target process memory as a one-shot
contiguous block. If it's second, I think we're ok.
On Wed, Mar 25, 2015
2015 Mar 14
2
[LLVMdev] LLVM from C# or .NET
I recently saw a post about being able to call LLVM APIs from .NET using a
C# library.
I'm thinking if it'll produce the same code as using the LLVM C++ API. Will
it be less efficient?
If it is the same why wouldn't every one use a higher level language like
C# or Java to write their compiler?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2015 Mar 25
2
[LLVMdev] MCJIT finalizeObject output to use in external process
Aha. Thanks.
Seems like I need to call mapSectionAddress with the target address. But
how I copy the code? What function would I call?
On Wed, Mar 25, 2015 at 4:32 PM, Kaylor, Andrew <andrew.kaylor at intel.com>
wrote:
> Yes, that is one of the intended use models for MCJIT.
>
>
>
> If you look at the source for ‘lli’ you’ll find an option called
> “remote-mcjit” which
2014 Oct 13
2
[LLVMdev] writing llvm ir not in c++
On 10/13/14 11:44 AM, Eli Bendersky wrote:
> On Mon, Oct 13, 2014 at 10:35 AM, Dave Pitsbawn <dpitsbawn at gmail.com> wrote:
>
>> Is it possible to write LLVM IR but not using C++?
>>
>> I'm exceedingly terrible at C++.
>>
>> I was thinking, isn't it possible to write the IR using Java?
>>
>
>
> You can use llvmpy (Python bindings
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields
in a SQLite backend on-the-fly.
The point of the message is not security, I know that''s broken, but
whether there''s a technique that provides on-the-fly save/read
filters. Of course the solution would need to work transparently in
joins, so
user.posts.last.title
would do the right thing if title
2006 Jul 21
1
Capistrano before and after tasks
I try to extend db:test:copy_structure task to poulate test database
with some existing data everytime i run it.
It seems that "after_" task is not called as should be:
> namespace :db do
> namespace :test do
> task :after_clone_structure do
> puts "after_clone_structure_to_test"
> end
> end
> end
Anyone know what I am doing wrong?
2006 Jan 03
2
Stopping a save from the before_save
What''s the better thing to do in a before_save if you don''t want the
save to continue?
raise an exception, or do an errors.add or both?
Thanks,
Chris Nolan.ca
http://kweschun.com/ - Do you have a Kweschun?
2007 Jan 04
6
after_update attributes problem
Hey guys,
I''m having a hard time w/ the after_update callback on rails... As
far as I can tell, when I define a after_update callback on a model,
the attributes of the object have the same values that they had
*before* Base.save was called. I''m probably wrong so here''s the code:
UNIT TEST:
def test_register_item_adjusts_account_balance
account =
2015 Mar 25
2
[LLVMdev] MCJIT finalizeObject output to use in external process
A need has arisen to generate code using MCJIT but not in the target
process instead in a different process (and possibly even different machine
though not in the scope).
Reading through the tutorials and MCJIT design document, it seems like this
is possible or was kept in mind during design of MCJIT.
How do I achieve this? Are there examples?
Dave
-------------- next part --------------
An
2015 Apr 18
2
[LLVMdev] Does LLVM optimize rudimentary i16 -> i32 conversions
In my language there are a lot of i16 definitions, but almost all of the
time they are upgraded to i32 because my add operations only happen on i32.
So to be representative to my language definition, I have a lots of
Sext/Zext and Truncs pretty much every time I add or subtract.
As soon as I pass through InstCombine things look much nicer, all the
upcasts and downcasts go away, but my test cases
2006 Aug 16
4
Deploying only what you need with Capistrano?
The recent Rails security issue highlighted a concern I''ve had about Rails
deploys; namely, you shouldn''t deploy anything to production that you don''t
need there. Rails apps have a number of scripts--potential security holes or
DOS targets in this case--along with all the other application code you
need. There''s no reason you should have script/server, console,
2008 Apr 30
6
best practice for object transaction?
I have a new @offer that needs to generate a document if saved. But
that''s all or nothing:
transaction do
@offer.save!
generate_document
end
# handle exceptions if needed
If save! fails everything is fine, but if generate_document raises an
exception @offer is left as a model with timestamps, id, which is not
a new_record? anymore (though the database was
2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of
documents acts_as_ferret does. Something like MyModel.disable_indexing
MyModel.enable_indexing would be perfect. I need this because I do some
indexing that requires visiting the parents of the model objects and my
import method imports the children first, so the information isn''t there
yet. I''d like to