Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] fix warning with newer g++ compilers"
2007 Dec 15
4
[LLVMdev] fix warning with newer g++ compilers
Newer g++ compilers can emit:
/Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp: In member
function 'int llvm::LLLexer::LexAt()':
/Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp:287:
warning: suggest a space before ';' or explicit braces around empty
body in 'for' statement
/Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp: In member
2011 Aug 04
1
[LLVMdev] Multiple one-line bugs in LLVM
On Aug 4, 2011, at 9:03 AM, Duncan Sands wrote:
>>
>> lib/MC/MCParser/AsmLexer.cpp:149
>> while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF)
>>
>> There are identical sub-expressions to the left and to the right of the '&&'
>> operator: CurChar != '\n'&& CurChar != '\n'. The
2011 Aug 04
0
[LLVMdev] Multiple one-line bugs in LLVM
Hi Lockal S,
> ----
>
> lib/Target/X86/X86ISelLowering.cpp:11689
> !DAG.isKnownNeverZero(LHS)&& !DAG.isKnownNeverZero(LHS))
>
> Note that there are identical subexpressions '!DAG.isKnownNeverZero (LHS)' to
> the left and to the right of the '&&' operator.
> The second subexpression should probably be !DAG.isKnownNeverZero(RHS)).
a patch
2011 Aug 04
3
[LLVMdev] Multiple one-line bugs in LLVM
Hi. There are few one-line bugs Andrey Karpov have found with static analisys.
He wrote a big article in russian on http://habrahabr.ru/blogs/compilers/125626/
for advertising purposes of static analyzer for Visual Studio his company
developed.
Most of the problems are easy to fix, so I list them in here for trunk version.
Also few problems in clang code were found, I don't list them in here.
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
On Dec 15, 2007, at 2:13 AM, Duncan Sands wrote:
> Hi,
>
>> - for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr);
>> + for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) ;
>
> personally I like
>
> for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) {}
>
> better since it is more explicit.
I think the bikeshed should be orange:
for (++CurPtr; isdigit(CurPtr[0]);
2007 Dec 15
0
[LLVMdev] fix warning with newer g++ compilers
Hi,
> - for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr);
> + for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) ;
personally I like
for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) {}
better since it is more explicit.
Ciao,
Duncan.
2014 May 12
3
[LLVMdev] Questions about LLVM PGO and autoFDO
Hi, all
Recently I'm trying to use LLVM PGO and autoFDO. However I have some problems in the process.
LLVM source code is updated on April 9th. Operating system is SUSE x86_64
1. Problems in instrumentation based PGO:
clang -O2 -fprofile-instr-generate test.c -o a.out
./a.out (then default.profraw is generated)
clang -O2 -fprofile-instr-use=default.profraw test.c -o a.out
2016 Jun 22
4
Help building llvm on freebsd 8.4
I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i
carried out
1. Downloaded the source from
http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz
2. Extracted the source into a folder.
3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src
4. Started the build using $cmake --build .
It throws the following error
2003 Mar 07
0
[Bug 62] New: I patched the iptables-restore and liblptulog for string included "," "
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=62
Summary: I patched the iptables-restore and liblptulog for string
included "," "
Product: iptables userspace
Version: 1.2.7a
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
2020 Sep 09
2
[RFC] [DebugInfo] Using DW_OP_entry_value within LLVM IR
Hi Djordje,
On Wed, Sep 9, 2020 at 7:52 AM Djordje Todorovic
<Djordje.Todorovic at syrmia.com> wrote:
> Using entry-values ('callee' side of the feature) is not enough in any case. It is always connected to the call-site-param (function arguments but we call it call-site-params; 'caller' side of the feature) debug info. I believe that there are call-site-params that could
2011 Aug 28
2
[LLVMdev] LLVM supports Unicode?
Am 28.08.2011 20:02, schrieb geovanisouza92 at gmail.com:
> Hi, Jo!
>
> I'm trying create a new programming language, and I want that it have
> Unicode support (support for read and manipulate rightly the source-code and
> string literals).
>
> But, in addition, my programming language supports "string interpolation"
> string, and in these interpolations, tiny
2016 Mar 23
4
UBSan, StringRef and Allocator.h
Hi all
(No idea if I have the correct audience. Please CC more people as needed).
I have an UBSan failure in BumpPtrAllocatorImpl.Allocate.
The problem is that lld requests that we StringRef::copy an empty string. This passes a length of 0 to a BumpPtrAllocator. The BumpPtrAllocator happened to not have anything allocated yet so the CurPtr is nullptr, but given that we need 0 space we think
2016 Jun 23
2
Help building llvm on freebsd 8.4
Hi,
Thanks for the information.
Is it possible to compile LLVM 3.8 in FreeBSD 10.x and eventually use/run
it on 8.4.
Our production environment is running 8.4 and we cannot update it.
Thanks,
Sushil Pangeni
On Wed, Jun 22, 2016 at 2:01 PM, Dimitry Andric <dimitry at andric.com> wrote:
> You cannot build any llvm or clang releases after 3.4 on FreeBSD 8.x
> natively, as it is not
2016 Mar 23
0
UBSan, StringRef and Allocator.h
On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com> wrote:
> Hi all
>
> (No idea if I have the correct audience. Please CC more people as needed).
>
> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate.
>
> The problem is that lld requests that we StringRef::copy an empty string.
> This passes a length of 0 to a BumpPtrAllocator. The
2016 Mar 23
3
UBSan, StringRef and Allocator.h
> On Mar 22, 2016, at 5:35 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at apple.com>> wrote:
> Hi all
>
> (No idea if I have the correct audience. Please CC more people as needed).
>
> I have an UBSan failure in
2016 Mar 23
0
UBSan, StringRef and Allocator.h
On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hi all
>
> (No idea if I have the correct audience. Please CC more people as needed).
>
> I have an UBSan failure in BumpPtrAllocatorImpl.Allocate.
>
> The problem is that lld requests that we StringRef::copy an empty string.
> This passes a length of 0 to a
2015 May 11
2
[LLVMdev] Bug in Support/Allocator.h
Hi,
llvm::BumpPtrAllocatorImpl::Reset() looks like it has a bug.
There is this check at the top:
if (Slabs.empty())
return;
But what if you don't have any normal Slabs allocated but only
CustomSizedSlabs.
I think this should be:
if (Slabs.empty() && CustomSizedSlabs.empty())
return;
2006 Aug 14
0
NEWBIE QUESTION - recode in Ruby
I wish to recode the following php code to ruby:
function text_decrypt_symbol($s, $i) {
# $s is a text-encoded string, $i is index of 2-char code. function
returns number in range 0-255
return (ord(substr($s, $i, 1)) - 100)*16 + ord(substr($s, $i
+1, 1)) - 100;
}
function text_decrypt($s) {
if ($s == "")
return $s;
$enc = 85 ^ text_decrypt_symbol($s,
2016 Mar 23
0
UBSan, StringRef and Allocator.h
> On Mar 22, 2016, at 5:39 PM, Pete Cooper via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>>
>> On Mar 22, 2016, at 5:35 PM, David Blaikie <dblaikie at gmail.com <mailto:dblaikie at gmail.com>> wrote:
>>
>>
>>
>> On Tue, Mar 22, 2016 at 5:30 PM, Pete Cooper <peter_cooper at apple.com <mailto:peter_cooper at
2016 Mar 28
2
UBSan, StringRef and Allocator.h
FWIW, I agree with Mehdi that we should just assert that our types don't
get called with size zero.
That said, I don't think we can be terribly cavalier with what we expect
from standard allocator types, operator new, or malloc. And so I would
expect LLVM_ATTRIBUTE_RETURNS_NOALIAS to not imply NONNULL, and while it
seems reasonable to put NONNULL on *our* allocate function because of the