Displaying 20 results from an estimated 40000 matches similar to: "[LLVMdev] Determing C Types"
2012 Apr 16
2
[LLVMdev] Determing C Types
If what you're trying to do is use LLVM as a target-independent bitcode representation, you should be aware that it's not made for that purpose. In fact, it's specifically *not* target-independent, no matter what the types are.
For you initial question, you cannot map back from LLVM IR to C types, because the two have little to do with each other.
-bw
On Apr 16, 2012, at 2:43 PM,
2012 Apr 16
0
[LLVMdev] Determing C Types
So what I would like to do is redefine the widths for the types, making the
type widths more portable and less target dependent, is this possible
within llvm?
On Mon, Apr 16, 2012 at 2:32 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> What is the best way to determine the type of an arbitrary int? For
> example, find whether it is a char, short, int, long, long, etc?
>
2012 Apr 16
0
[LLVMdev] Determing C Types
Bill,
Thanks, yes, I realize that's not what it's for; however, it looks like
with a little tweaking it would be possible but I'd rather not change the
LLVM base code. Guess I'll just have to write my own code to do this,
thanks.
Also, the initial question, so there's no way to tell if int8 was a char
in LLVM?
Thanks.
On Mon, Apr 16, 2012 at 3:14 PM, Bill Wendling
2012 Apr 16
1
[LLVMdev] Determing C Types
Chars don't exist in LLVM. Clang may map char to be i8, but LLVM doesn't
know the difference.
Joey
On 17 April 2012 00:14, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Bill,
>
> Thanks, yes, I realize that's not what it's for; however, it looks like
> with a little tweaking it would be possible but I'd rather not change the
> LLVM base code. Guess
2011 Dec 13
1
[LLVMdev] Fwd: GetElementPtr
---------- Forwarded message ----------
From: Ryan Taylor <ryta1203 at gmail.com>
Date: Mon, Dec 12, 2011 at 4:58 PM
Subject: Re: [LLVMdev] GetElementPtr
To: Eli Friedman <eli.friedman at gmail.com>
Sorry,
So what I'm trying to ask is are the widths given (32, 64) for the index
and the offset the widths of the index and offset values or the width of
the type they are
2011 Dec 13
6
[LLVMdev] GetElementPtr
By LLVM do you mean the backend? I'm not using the backend, so is that i32
on the 0 index the type of the index value or the type of the value to
which exists at that index?
it seems the pointer itself has no width, it's arbitrary and is handled in
the lowering and is target dependent on the bus width.
Basically, when I am computing offset I need to know the sizes for add. The
size of
2011 Dec 13
0
[LLVMdev] GetElementPtr
So in this example:
%idx = getelementptr { float*, i32 }* %MyStruct, i64 0, i32 1
Why is it picking i64 for the index but i32 for the offset?
On Mon, Dec 12, 2011 at 4:58 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: Ryan Taylor <ryta1203 at gmail.com>
> Date: Mon, Dec 12, 2011 at 4:58 PM
> Subject: Re:
2012 Mar 22
3
[LLVMdev] Target Data
I see, thanks.
However, if I -emit-llvm and then append the "target datalayout" string
(then operate on that emitted llvm), I can then change the data type sizes
and alignments, correct?
Thanks.
On Thu, Mar 22, 2012 at 2:25 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Mar 21, 2012, at 5:57 PM, Ryan Taylor wrote:
>
> > Is it possible to change the
2012 Mar 22
0
[LLVMdev] Fwd: Target Data
---------- Forwarded message ----------
From: Ryan Taylor <ryta1203 at gmail.com>
Date: Thu, Mar 22, 2012 at 2:56 PM
Subject: Re: [LLVMdev] Target Data
To: Chris Lattner <clattner at apple.com>
So I read that link yesterday and it says that it uses some default unless
they are overridden by the datalayout keyword, which from what I can tell
can only be put in an LLVM IR file to be
2011 Dec 06
8
[LLVMdev] GetElementPtr
Does a transform exist to breakdown the GEP?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111206/e88dddfe/attachment.html>
2017 Mar 04
7
Why ISel Shifts operations can only be expanded for Value type vector ?
On Saturday, March 4, 2017, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Why you can't still expand it through MUL with a Custom lowering? Or am I
> missing something?
>
> Yes we can but problem occurs when we know that it is shift with constant
value than if we return ISD::MUL with constant imm operand than LLVM will
convert it to SHL again because the constant will be
2012 Jan 12
4
[LLVMdev] Extract Loop Failing
It looks like this problem only exists on nested loops, ideas?
On Thu, Jan 12, 2012 at 11:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Is it not a good idea to try and extract loops that have multiple exits?
>
>
> On Thu, Jan 12, 2012 at 10:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
>
>> I am trying to use ExtractLoop() but I am getting segFaults:
2012 Sep 11
3
[LLVMdev] Fwd: Build Error from Intrinsics.td
ulimit -s = 8192
set "ulimit -c unlimited"
On Tue, Sep 11, 2012 at 3:03 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> John,
>
> Thanks for responding. No, I don't see a limit from ulimit. It's
> definitely with the tblgen though, I have the same errors trying to compile
> clang.
>
>
> On Tue, Sep 11, 2012 at 2:57 PM, John Criswell
2011 Dec 08
1
[LLVMdev] Fwd: GetElementPtr
---------- Forwarded message ----------
From: Ryan Taylor <ryta1203 at gmail.com>
Date: Thu, Dec 8, 2011 at 11:13 AM
Subject: Re: [LLVMdev] GetElementPtr
To: Reid Kleckner <reid.kleckner at gmail.com>
There is no support for gep, it's my understanding that it's
target-independent, so there's no reason to put the lowering in the target
lowering portion is there?
2016 Jun 24
3
creating Intrinsic DAG Node
I've tried all the types (both for result and Intrinsic ID), can't seem to
find what cast is causing the issue here.
On Fri, Jun 24, 2016 at 11:47 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> That's what I thought but I got the same error with:
>
> DAG.getNode(ISD::INTRINSIC_WO_CHAIN, DL, VT,
> DAG.getTargetConstant(Intrinsic::my_intrinsic, DL, MVT::i16), LHS);
2012 Sep 11
3
[LLVMdev] Fwd: Build Error from Intrinsics.td
Usually it is the ones that end in ".inc".
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Ryan Taylor
Sent: Tuesday, September 11, 2012 3:12 PM
To: John Criswell
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Fwd: Build Error from Intrinsics.td
What files are created by the TableGen so that I can clean them out and start fresh?
On Tue, Sep
2015 Aug 25
4
[LLVMdev] TableGen Register Class not matching for MI in 3.6
Hi Ryan,
> On Aug 24, 2015, at 6:49 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
>
> Quentin,
>
> I apologize for the spamming here but in getVR (where VReg is assigned an RC), it calls:
>
> const TargetRegisterClass *RC = TLI->getRegClassFor(Op.getSimpleValueType());
> VReg = MRI->createVirtualRegister(RC);
>
> My question is why is it using the
2015 Aug 01
3
[LLVMdev] SelectionDAG viewers, filter-view-dags question
The diff is not only the && and || but also the leading !:
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 58f029fbe9fc..7ee06fc153b2 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -659,7 +659,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
2015 Aug 11
2
Fwd: [LLVMdev] SelectionDAG viewers, filter-view-dags question
Hi,
It's changed a few times over the last year. I believe xdg-open spawns whichever application your desktop environment would use to open the file so you should be able to tell it to use dotty.
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Ryan Taylor via llvm-dev
Sent: 11 August 2015 00:30
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] Fwd: [LLVMdev]
2015 Aug 25
2
[LLVMdev] TableGen Register Class not matching for MI in 3.6
AddRegisterOperand calls getVR and yes, I think an IMPLICIT_DEF is being
generated.
On Tue, Aug 25, 2015 at 2:40 PM, Quentin Colombet <qcolombet at apple.com>
wrote:
>
> On Aug 25, 2015, at 11:05 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
>
> I have not tried 3.5, it's a significant amount of work to port from one
> version to the next though, I did not