Displaying 20 results from an estimated 8000 matches similar to: "[LLVMdev] Array Slicing?"
2007 Aug 22
1
[LLVMdev] Shifting by too many bits
The documentation for SHL, LSHR, and ASHR is unclear. What is the
result of shifting by the number of bits in the left operand. For example,
<result> = shl i32 1, 32
<result> = ashr i32 1, 32
<result> = lshr i32 1, 32
2008 Apr 02
5
[LLVMdev] Reference Manual Clarifications 2
Chris Lattner wrote:
> On Mon, 31 Mar 2008, Jon Sargeant wrote:
>> I'm attaching another round of changes. Please verify that they are correct.
>
> Applied with edits:
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080331/060556.html
>
> I figured out what your patches don't apply. Something (your web browser,
> editor, etc) is stripping
2008 Apr 05
0
[LLVMdev] Reference Manual Clarifications 2
Jon Sargeant wrote:
> Chris Lattner wrote:
>> On Mon, 31 Mar 2008, Jon Sargeant wrote:
>>> I'm attaching another round of changes. Please verify that they are correct.
>> Applied with edits:
>> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080331/060556.html
>>
>> I figured out what your patches don't apply. Something (your web
2008 Mar 31
3
[LLVMdev] Reference Manual Clarifications
Here are some clarifications for the reference manual. Please verify
that my assumptions are correct. Shall I post a patch?
Floating-point Constants: Add "The assembler requires the exact decimal
value of a floating-point constant. For example, the assembler accepts
'1.25' but rejects '1.3' because '1.3' is a repeating decimal in binary."
Binary
2012 Feb 23
2
[LLVMdev] Simple question on sign
How do you determine if a shift is signed or not?
ashr = always signed?
lshr = always unsigned?
shl = always signed?
The CmpInst has the "isSigned()" function, but it appears that every other
Instruction I've looked at doesn't seem to have this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jul 18
3
[LLVMdev] ComputeMaskedBits Bug
On Friday 18 July 2008 00:36, Nick Lewycky wrote:
> David Greene wrote:
> > Is my analysis correct? If so, is the PHI code the culprit (for not
> > returning the min of the KnownZero bits) or is the Shl code the culprit
> > (for not paying attention to the Mask passed in (it right shifts it)?
>
> I think your analysis is correct, and that Shl -- and many of the other
2008 Jul 18
0
[LLVMdev] ComputeMaskedBits Bug
David Greene wrote:
> Is my analysis correct? If so, is the PHI code the culprit (for not returning
> the min of the KnownZero bits) or is the Shl code the culprit (for not paying
> attention to the Mask passed in (it right shifts it)?
I think your analysis is correct, and that Shl -- and many of the other
operations (AShr, LShr, SExt, Add?, Call?) -- should be modified to
always
2012 Feb 23
0
[LLVMdev] Simple question on sign
On Wed, Feb 22, 2012 at 4:28 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
On Wed, Feb 22, 2012 at 4:28 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> How do you determine if a shift is signed or not?
>
> ashr = always signed?
Essentially, yes.
> lshr = always unsigned?
Essentially, yes.
> shl = always signed?
Signed left shift and unsigned left shift are both
2017 Jul 03
2
trunc nsw/nuw?
Hello,
>From [1], trunc does not seems to have a nsw/nuw attribute.
Is it possible to have that? Or do we have that and it is not up-to-date?
The definition would be:
If the nuw keyword is present, the result value of the trunc is a poison
value if the truncated high order bits are non-zero. If the nsw keyword is
present, the result value of the trunc is a poison value if the truncated
high
2011 Dec 16
3
[LLVMdev] load widening conflicts with AddressSanitizer
Hello,
We've just got a bug report from Mozilla folks about AddressSanitizer false
positive with -O2.
Turns out there is a conflict between load widening and AddressSanitizer.
Simple reproducer:
% cat load_widening.c && echo ========= && clang -O2 -c
load_widening.c -flto && llvm-dis load_widening.o && cat
load_widening.o.ll
void init(char *);
int foo() {
2012 Feb 23
3
[LLVMdev] Simple question on sign
how does llvm decide when to use unsigned instructions then? such as unsigned
adds and loads? I'm trying to describe some multiply shift ops and getting a
bit stuck differentiating between signed and unsigned.
sam
Eli Friedman-2 wrote:
>
> On Wed, Feb 22, 2012 at 4:28 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> On Wed, Feb 22, 2012 at 4:28 PM, Ryan Taylor <ryta1203
2011 Dec 16
0
[LLVMdev] load widening conflicts with AddressSanitizer
On 12/16/11 12:24 PM, Kostya Serebryany wrote:
> Hello,
>
> We've just got a bug report from Mozilla folks about AddressSanitizer
> false positive with -O2.
> Turns out there is a conflict between load widening and AddressSanitizer.
>
> Simple reproducer:
> % cat load_widening.c&& echo =========&& clang -O2 -c load_widening.c -flto&&
2012 Feb 23
0
[LLVMdev] Simple question on sign
Hi Sam,
Whereas most languages track signedness on the variable/value level, LLVM IR
takes a more machine-like approach of having the sign apply to the
instruction rather than the value.
It is therefore the frontend (or whatever is initially producing the LLVM
IR) that should know whether an operation should be signed or unsigned.
Hopefully that makes sense,
Cheers,
James
-----Original
2008 Jul 21
0
[LLVMdev] Extending vector operations
On Mon, Jul 21, 2008 at 1:21 PM, Stefanus Du Toit
<stefanus.dutoit at rapidmind.com> wrote:
> 1) Vector shl, lshr, ashr
>
> I think these are no-brainers. We would like to extend the semantics
> of the shifting instructions to naturally apply to vectors as well.
> One issue is that these operations often only support a single shift
> amount for an entire vector. I assume it
2008 Apr 19
0
[LLVMdev] Reference Manual Clarifications 2
On Apr 1, 2008, at 6:41 PM, Jon Sargeant wrote:
> Chris Lattner wrote:
>> On Mon, 31 Mar 2008, Jon Sargeant wrote:
>>> I'm attaching another round of changes. Please verify that they
>>> are correct.
>>
>> Applied with edits:
>> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080331/060556.html
>>
> Hmm, I realized that the
2011 Dec 16
2
[LLVMdev] load widening conflicts with AddressSanitizer
On Fri, Dec 16, 2011 at 12:19 PM, John Criswell <criswell at illinois.edu> wrote:
> On 12/16/11 12:24 PM, Kostya Serebryany wrote:
>
> Hello,
>
> We've just got a bug report from Mozilla folks about AddressSanitizer false
> positive with -O2.
> Turns out there is a conflict between load widening and AddressSanitizer.
>
> Simple reproducer:
>
> % cat
2008 Jul 23
0
[LLVMdev] Extending vector operations
On Monday 21 July 2008 15:21, Stefanus Du Toit wrote:
> We would like to extend the vector operations in llvm a bit. We're
> hoping to get some feedback on the right way to go, or some starting
> points. I had previously had some discussion on this list about a
> subset of the changes we have in mind.
Woohoo! We've been interested in talking about this for some time.
>
2008 Jul 17
2
[LLVMdev] ComputeMaskedBits Bug
In tracking down an alignment bug, I think I found a problem in
ComputeMaskedBits. But I am not very well versed in this area of LLVM and
need some more eyes. This is in the 2.3 release, though it looks like the
relevant pieces operate the same way in trunk.
I have the following add recurrence:
%r849 = select i1 %r848, i64 0, i64 %r847 ; <i64> [#uses=10]
%r862 = shl i64 %r849, 3 ;
2012 Feb 23
2
[LLVMdev] Simple question on sign
Thanks for the replies guys but I think I should have phrased my question
better... looking at the Mips backend there are machine instructions that
operate on signed and unsigned data, such as add and addu. And like Mips, I
need to specify unsigned specific instructions, so how do these get chosen
between if the LLVM IR does not carry type data? A very general point in the
right direction is all i
2017 Jul 04
4
trunc nsw/nuw?
Hi,
> Hi Alexandre,
>
> LLVM currently doesn't have trunc nsw/nuw, no.
> Which frontend would emit such instructions? Any application in mind?
> Just asking because if no frontend could emit those, then the motivation to
> add nsw/nuw support to trunc would be very low I guess.
I think the clang frontend could use that to allow better static analysis of integer overflows
on