Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] rotate"
2012 Jul 29
0
[LLVMdev] rotate
I can get clang/llvm to emit a rotate instruction on x86-64 when compiling C by just using -Os and the rotate from Hacker's Delight i.e.,
======
#include <stdlib.h>
#include <stdint.h>
uint32_t ror(uint32_t input, size_t rot_bits)
{
return (input >> rot_bits) | (input << ((sizeof(input) << 3) - rot_bits));
}
======
Then compile with (assuming you are on OS
2012 Jul 29
3
[LLVMdev] rotate
Nice!
Clever compiler..
On 07/28/2012 08:55 PM, Michael Gottesman wrote:
> I can get clang/llvm to emit a rotate instruction on x86-64 when compiling C by just using -Os and the rotate from Hacker's Delight i.e.,
>
> ======
> #include<stdlib.h>
> #include<stdint.h>
>
> uint32_t ror(uint32_t input, size_t rot_bits)
> {
> return (input>>
2012 Jul 29
0
[LLVMdev] rotate
*NOTE* IIRC compiling this with -O0 on x86-64 can yield the wrong result since clang will emit shifts and on intel shifts are mod the register size:
=====
.section __TEXT,__text,regular,pure_instructions
.globl _ror
.align 4, 0x90
_ror: ## @ror
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
2012 Jul 31
0
[LLVMdev] [llvm-commits] rotate
On Tue, Jul 31, 2012 at 8:42 AM, Cameron McInally
<cameron.mcinally at nyu.edu> wrote:
> Andy,
>
> Here is the left circular shift operator patch. I apologize to the reviewer
> in advance. The patch has a good bit of fine detail. Any
> comments/criticisms?
>
> Some caveats...
>
> 1) This is just the bare minimum needed to make the left circular shift
> operator
2015 Oct 12
2
Clang includes search path
Hi,
I’m trying to set the includes search path in clang, but I can’t figure out how to do it?
I’m working on OSX and every time I compile a C/C++ code, I have to specify it with -isysroot (and I don’t want an alias, or a symlink to /usr/include) since the includes are not in a really standard path on OSX (e.g.:
2016 Jan 19
8
[3.8 Release] RC1 has been tagged
(cc'ing non-legacy llvm-dev this time; apologies if you get this
twice. Please don't reply-all to the first one.)
On Tue, Jan 19, 2016 at 3:47 PM, Hans Wennborg <hans at chromium.org> wrote:
> Dear testers,
>
> Start your engines; 3.8.0-rc1 was just tagged from the 3.8 branch at
> r258223. (It took a little longer than I'd planned, sorry about that.)
>
> There
2019 Jun 13
4
Clang8 on MacOS 10.14
[Please cc me, as I am not on this list.]
When installing the clang8 MacOS binary by
wget <clang-binaries-tarball-url>
tar -xf clang*
cd clang*
sudo mkdir /usr/local/clang8
sudo cp -R * /usr/local/clang8
the compiler works on MacOS 10.13, but not on MacOS 10.14, with an error:
/usr/local/clang/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found
2012 Jul 31
3
[LLVMdev] rotate
Andy,
Here is the left circular shift operator patch. I apologize to the reviewer
in advance. The patch has a good bit of fine detail. Any
comments/criticisms?
Some caveats...
1) This is just the bare minimum needed to make the left circular shift
operator work (e.g. no instruction combining).
2) I tried my best to select operator names in the existing style; please
feel free to change them as
2016 Jul 06
3
[cfe-dev] clang++ build from source is not able to find C++ headers
On Wed, Jul 6, 2016 at 1:21 PM, Mehdi Amini via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
> On Jun 23, 2016, at 11:15 AM, Cristianno Martins via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> Hi Vivek,
>
> you can also include these lines below to your ~/.bash_profile:
>
> LLVM_BUILD="/Developer/llvm/build" # Path to your build directory
2013 Nov 11
2
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
Jack,
Where do the "-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-mmacosx-version-min=10.8" flags come from? I don't see them in your
CMake invocation - perhaps they're added via $CC or $CFLAGS? Is this
being done on purpose?
I can add a CMake step checking whether the current CFLAGS/LDFLAGS
allow to build an
2013 Nov 10
3
[LLVMdev] [Reminder] LLVM 3.4 Release Branching
Good day!
This is just a reminder that branching for the 3.4 release will occur at this time:
Monday, November 18, 2013 at 7:00:00 PM PST / Tuesday, November 19, 2013 at 3:00:00 AM UTC
What this means for you!
------------------------
* Please keep the release notes up to date -- There has been very few commits to them. Please be proactive and update them with any significant feature that was
2013 Nov 10
0
[LLVMdev] [Reminder] LLVM 3.4 Release Branching
On Sun, Nov 10, 2013 at 06:11:16AM -0800, Bill Wendling wrote:
> Good day!
>
> This is just a reminder that branching for the 3.4 release will occur at this time:
>
> Monday, November 18, 2013 at 7:00:00 PM PST / Tuesday, November 19, 2013 at 3:00:00 AM UTC
>
> What this means for you!
> ------------------------
>
> * Please keep the release notes up to date --
2016 Jun 23
4
[cfe-dev] clang++ build from source is not able to find C++ headers
Hi Vivek,
you can also include these lines below to your ~/.bash_profile:
LLVM_BUILD="/Developer/llvm/build" # Path to your build directory
alias new-clang="$LLVM_BUILD/bin/clang -Wno-expansion-to-defined
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include"
alias new-clang++="$LLVM_BUILD/bin/clang++
2020 Aug 17
2
How to run the test suite on macOS?
When building LLVM (trunk) on macOS (where there is no /usr/include/),
the resulting Clang works fine for me when I add an appropriate
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
to the command line when invoking Clang. (I'm not sure I'm using it as
intended, but that appears to work reasonably well for me.)
However, when
2013 Nov 11
0
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
On Mon, Nov 11, 2013 at 01:59:25PM +0400, Alexander Potapenko wrote:
> Jack,
>
> Where do the "-isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
> -mmacosx-version-min=10.8" flags come from? I don't see them in your
> CMake invocation - perhaps they're added via $CC or $CFLAGS? Is this
> being done
2013 Nov 11
2
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
This file is for configure+make build, not CMake, so I'm not sure why
it's being included into your build (these failures aren't
reproducible for me).
Can you please list the exact steps you're doing to build LLVM with
CMake and make sure you don't have additional CFLAGS (LDFLAGS etc)
defined?
On Mon, Nov 11, 2013 at 6:16 PM, Jack Howarth <howarth at bromo.med.uc.edu>
2013 Nov 11
2
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
On Mon, Nov 11, 2013 at 11:03:47AM -0500, Jack Howarth wrote:
> On Mon, Nov 11, 2013 at 06:46:47PM +0400, Alexander Potapenko wrote:
> > This file is for configure+make build, not CMake, so I'm not sure why
> > it's being included into your build (these failures aren't
> > reproducible for me).
> > Can you please list the exact steps you're doing to build
2012 Jul 29
3
[LLVMdev] rotate
> *NOTE* IIRC compiling this with -O0 on x86-64 can yield the wrong result
> since clang will emit shifts and on intel shifts are mod the register
> size [...snip...]
I remember finding the same thing (although I haven't tried it on a recent
clang version) and what I wondered was whether there was mileage in having
an explicit intrinsic for rotation (like there is for bit counting,
2012 Dec 19
2
[LLVMdev] LLVM 3.2 on Xcode
Following a blend of instructions on 3 web pages, I have succeeded in getting LLVM 3.2 (with clang, extras, and compiler-rt) building - but not testing - on Xcode. I used CMake 2.8.10 GUI to create the Xcode project file. Below are my notes.
First, I believe CMake ends up setting things up so that Xcode has 1 warning after scanning the project having to do with hires images or some such… it takes
2013 Nov 11
0
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
On Mon, Nov 11, 2013 at 06:46:47PM +0400, Alexander Potapenko wrote:
> This file is for configure+make build, not CMake, so I'm not sure why
> it's being included into your build (these failures aren't
> reproducible for me).
> Can you please list the exact steps you're doing to build LLVM with
> CMake and make sure you don't have additional CFLAGS (LDFLAGS etc)