Displaying 20 results from an estimated 90000 matches similar to: "[LLVMdev] Generating a no-op with IRBuilder"
2008 Jul 31
2
[LLVMdev] Generating movq2dq using IRBuilder
Hi all,
How do I generate the movq2dq SSE2 instruction using the IRBuilder? There is
no zext from 64-bit to 128-bit (corresponding to MMX to XMM register
transfer) as far as I can tell. So I've tried inserting an i64 into a v2i64,
which generates valid code but rather a number of stores and loads on the
stack instead of a single movq2dq.
Looking though the code, I found a pattern for
2019 Jun 12
2
IRBuilder input debug
Dear Developers,
I would like get detailed info if verification of the intermediate
representation fails.
Currently I am using IRBuilder to create a module, and I encountered an
error, which I cannot trace back to the IRBuilder related call, which
caused the error:
"Instruction does not dominate all uses!
%14 = load i32, i32* @r6 <https://github.com/r6>
%11 = trunc i32 %14 to i8
LLVM
2011 Jan 28
1
[LLVMdev] How to change the type of an Instruction?
Hi, guys,
Thanks a lot for your help. As you know, I am trying to implement
something to change the types of the instructions. And I chose the trunc's
approach because it seems be simple. But I still have some problems and
questions. Would be great if you can help me.
I have used the results of my range analysis implementation to change
the intermediate representation. I am using
2019 May 12
2
Why does verifyFunction dislike this?
I am programmatically building some functions in intermediate
representation, and trying to verify them, but the verifier always reports
that there is a problem, and I can't see why. Minimal test case:
#ifdef _MSC_VER
#pragma warning(disable : 4141)
#pragma warning(disable : 4530)
#pragma warning(disable : 4624)
#endif
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Verifier.h>
2008 Jul 31
0
[LLVMdev] Generating movq2dq using IRBuilder
In the same breath I'd also like to kindly ask if someone could have a look
at the reverse operations, namely trunk from 128 to 64 bit using movdq2q,
and 128 to 32 and 64 to 32 using movd. This also seems related to Bug 2585.
Thanks again.
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Nicolas Capens
Sent: Thursday, 31 July, 2008 16:03
To:
2011 Jan 24
3
[LLVMdev] How to change the type of an Instruction?
On Mon, Jan 24, 2011 at 3:01 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> On 01/24/2011 04:41 AM, Douglas do Couto Teixeira wrote:
>
>> Hi,
>>
>> Nick, thanks for the reply.
>> I still have a problem: I only need to "clone" an Instruction, changing
>> its type. That is, I would like to keep all characteristics of the old
>> Instruction
2015 Apr 23
4
[LLVMdev] IRBuilder and "ad hoc" optimizations
Hi LLVM,
IRBuilder can fold constants (that behaviour can be controlled by Folder
type). What do you think about optionally allow IRBuilder to eliminate
no-op instructions like `add %a, 0` or `memcpy(%a, %b, 0)`?
- Paweł
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150423/4f99a092/attachment.html>
2008 Aug 01
0
[LLVMdev] Generating movq2dq using IRBuilder
Hi Dan,
Yes, they could be represented with insertelement and extractelement, but I
don't think they actually generate optimal code using movq2dq and such. Else
both bugs 2584 and 2585 would be fixed.
Anyway, I'm actually already encouraged to get involved myself. I'm quite
experienced with MMX and SSE but I'm still trying to learn more about how
LLVM does instruction selection
2011 Jan 24
0
[LLVMdev] How to change the type of an Instruction?
On 1/24/11 12:05 PM, Douglas do Couto Teixeira wrote:
>
>
> On Mon, Jan 24, 2011 at 3:01 PM, Nick Lewycky <nicholas at mxc.ca
> <mailto:nicholas at mxc.ca>> wrote:
>
> On 01/24/2011 04:41 AM, Douglas do Couto Teixeira wrote:
>
> Hi,
>
> Nick, thanks for the reply.
> I still have a problem: I only need to "clone" an
2016 Oct 27
0
What was the IR made for precisely?
On 27 Oct 2016, at 11:05, ジョウェットジェームス via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi,
> wanting to build up some language of my own, I have always thought about feeding my compiler output to a C compiler like gcc or clang, however when I learned about (considered using) LLVM IR I immediately thought it could be of some help.
>
> LLVM doesn't seem to be portable
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
I don't think it's the same problem as you described. By printing I meant
calling printf function and passing my global variable as one of the
arguments.
My code:
Instruction* InstructionVisitor::incrementGlobalKey(Instruction* I) {
IRBuilder<> Builder(I->getContext());
Builder.SetInsertPoint(I->getNextNode());
GlobalVariable* key =
2018 Apr 29
0
SCEVExpander and IRBuilder
Hi Alexandre,
Sorry I missed this -- I was on vacation when you sent this.
SCEVExpander already has an IRBuilder in it but AFAICT it isn't
exposed as a public interface. I'd be fine if you wanted to expose a
public `GetIRBuilder()` accessor that let a SCEVExpander client use
the same IRBuilder as SCEVExpander.
-- Sanjoy
On Fri, Apr 6, 2018 at 10:55 AM, Alexandre Isoard via llvm-dev
2016 Nov 02
2
RFC: Drop support for old style scalar TBAA
In https://reviews.llvm.org/D26229 I've proposed dropping support for
old style scalar TBAA metadata.
Here is the proposed commit message:
"We've had support for auto upgrading old style scalar TBAA access
metadata into the "new" struct path aware TBAA metadata for 3 years now.
The only way to actually generate old style TBAA was explicitly through
the IRBuilder API. I
2016 Oct 27
1
What was the IR made for precisely?
On 27 October 2016 at 16:18, David Chisnall via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> LLVM IR is intended as a compiler intermediate representation. It aims to be able to express anything that arbitrary source languages might want and anything that target architectures may implement, in a way that is not closely tied to either specific source languages or target architectures.
2018 Apr 06
2
SCEVExpander and IRBuilder
Hello,
I use SCEVExpander and IRBuilder to generate some code and I frequently
end-up breaking dominance because the SCEVExpander insertion point and the
IRBuilder insertion point do not advance in synchrony.
Ideally, I could build a SCEVExpander based on an existing IRBuilder (so
that they move each other). Or even better, SCEVExpander inherit from
IRBuilder and basically extend it with SCEV
2018 May 03
0
SCEVExpander and IRBuilder
Hey,
Alternatively, expose a SCEVExpander::getInsertPoint? This would proxy the
underlying IRbuilder, with no real state sharing, other than the current
insert point.
This will be less ugly than recieving the expanded SCEV value, casting to
an instruction, and feeding this to the IRBuilder.
Cheers,
siddharth
On Thu 3 May, 2018, 15:36 Philip Pfaffe via llvm-dev, <
llvm-dev at
2013 Apr 15
4
[LLVMdev] The most efficient way to compile to LLVM IR?
Hi all,
I am trying to compile my toy language to LLVM back end. (I am new
to LLVM, so my questions may sound naive)
I am looking at some tutorials about LLVM, most are about how to use
LLVM IRBuilder, however, I find the API provided by IRBuilder is quite
imperative and verbose, and the API changes so fast that most of the
tutorials are out of dated.
So I am wondering what's
2018 May 03
2
SCEVExpander and IRBuilder
Hi Alex, Sanjoy,
exposing the internal IRBuilder to users of SCEVExpander violates
information hiding, and encourages the tight coupling that makes code bases
such as Polly so hard to maintain. SCEVExpander::expandCodeFor returns a
Value that (if it's an instruction) can be used to update the insert point
of the client's IRBuilder. Is that not enough?
No hidden state, no hidden state
2011 May 12
0
[LLVMdev] Extract operations as function
Hi Manish,
> Great!! Thanks Duncan.
> By step 1 that you mentioned it seems I can write my function func(x,y,op) in
> mypass.cpp itself. Please elaborate how can add it to the module?
the minimum is to add a prototype for "func" to the module. For that you can
use getOrInsertFunction. If you want to insert the code defining "func" too,
then insert the prototype,
2016 Oct 27
4
What was the IR made for precisely?
Hi,
wanting to build up some language of my own, I have always thought about feeding my compiler output to a C compiler like gcc or clang, however when I learned about (considered using) LLVM IR I immediately thought it could be of some help.
LLVM doesn't seem to be portable though, some people seem to say "If you are generating C then why not go all the way and generate some