Displaying 20 results from an estimated 100000 matches similar to: "[LLVMdev] Target-specific defaults for LLVM tools?"
2015 Mar 17
2
[LLVMdev] Target-specific defaults for LLVM tools?
Not to pile on the “LLVM tools are for debugging” bandwagon too hard here, but I’m pretty sure the clang driver can be used on source, IR, and disassembly. People shouldn’t be using llc and opt, instead they should just pass the IR files to clang.
Then clang can set the right target-specific defaults based on the clang flags.
That seems like a much more reasonable approach to the problem to me.
2015 Mar 17
2
[LLVMdev] Target-specific defaults for LLVM tools?
What is the preferred method for compiler (frontend) developers to optimize
and generate target machine code from IR?
At one point I found a tutorial that recommended simply dumping the IR to a
file and spawning llc to do the job.
Up until now I have "manually" created a TargetMachine, PassManager, etc.
to generate my object code. The initial version of my code was cribbed from
llc for
2015 May 28
3
[LLVMdev] RFC - Improvements to PGO profile support
Hi Diego,
thanks for clarifying the difference between the two formats. I have
noticed the new note in the "Sample Profile Format" section of the Clang
guide clarifying that it is different from the coverage format.
So, my further question is... Am I right in understanding that both formats
can be used for PGO purposes then?
I have tried the following, as in the Clang user guide:
$
2009 Oct 05
4
[LLVMdev] getting gold plugin to work?
On Mon, Oct 5, 2009 at 8:04 PM, Rafael Espindola <espindola at google.com> wrote:
>> I have no idea how to reduce this.
>>
>> Configure llvm-gcc for "arm-eabi" and use "--with-cpu=cortex-a8
>> --with-fpu=neon --with-abi=aapcs --with-float=hard". The triple in the
>> bitcode will be "armv7-eabi" but the actual CPU subtarget won't
2013 Jan 23
3
[LLVMdev] OpenCL SPIR/NVPTX code generation
Hi Guy,
Thanks a lot for the clarification.
I tried using the triple for SPIR as
$ clang -x cl -fno-builtin -emit-llvm -c -Xclang -triple -Xclang
spir-unknown-unknown Simple_Kernel.cl
However I get the following error.
error: unknown target triple 'spir-unknown-unknown', please use -triple or
-arch
I also tried with triple nvptx-unknown-unknown
clang -x cl -fno-builtin -emit-llvm -S
2015 May 22
0
[LLVMdev] RFC - Improvements to PGO profile support
On Fri, May 22, 2015 at 11:16 AM, Dario Domizioli
<dario.domizioli at gmail.com> wrote:
> Hi all,
>
> I am a bit confused about the documentation of the format of the profile
> data file.
>
> The Clang user guide here describes it as an ASCII text file:
> http://clang.llvm.org/docs/UsersManual.html#sample-profile-format
>
> Whereas the posts above and the
2015 Jul 08
5
[LLVMdev] The Trouble with Triples
Hi,
In http://reviews.llvm.org/D10969, Eric asked me to explain the wider context of the TargetTuple object that was replacing Triple on llvmdev so here it is.
Before I start, I'm sure I don't know the full extent of GNU triple ambiguity and lack of canonicity. Additional examples are welcome.
The Problem
As you know, LLVM uses a GNU Triple is as a target description that can be relied
2014 Jan 30
4
[LLVMdev] make DataLayout a mandatory part of Module
On 29 January 2014 15:53, Jim Grosbach <grosbach at apple.com> wrote:
> Hi Nick,
>
> The main use case I’ve seen is that it makes writing generic test cases
> for ‘opt’ easier in that it’s not necessary to specify a target triple on
> the command line or have a data layout in the .ll/.bc file. That is, in my
> experience, it’s more for convenience and perhaps historical
2012 Dec 31
3
[LLVMdev] Trying out Loop Vectorizer
On Dec 31, 2012, at 11:57 AM, Benjamin Kramer <benny.kra at gmail.com> wrote:
> I'm not entirely sure why this is the case, the target specific stuff for opt is still very new, but at the moment you have to explicitly set a triple for opt so it can access target-specific bits to estimate the cost of vectorization.
I think that this is a good opportunity to discuss this topic. At
2015 May 22
2
[LLVMdev] RFC - Improvements to PGO profile support
Hi all,
I am a bit confused about the documentation of the format of the profile
data file.
The Clang user guide here describes it as an ASCII text file:
http://clang.llvm.org/docs/UsersManual.html#sample-profile-format
Whereas the posts above and the referenced link describe it as a stream of
bytes containing LEB128s:
http://www.llvm.org/docs/CoverageMappingFormat.html
>From experimenting
2016 Mar 27
2
Undefined behaviour in command line parser
In these days I’ve integrated llc code into my compiler.
I had an undefined behaviour because when cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion) is called, the modules I give to the code in input to compile got somehow “corrupted" by this function.
It is definitely an undefined behaviour because every debug I do, modules gets different changes, producing
2011 Aug 19
2
[LLVMdev] LLVM ERROR: Cannot select error in simple i128 math?
In both LLVM 2.9 and the current svn head, I get the following error when running llc
% llc < fxp2.ll
LLVM ERROR: Cannot select: 0xa5302b0: glue = carry_false [ID=7]
on this code:
target triple = "i386-pc-linux-gnu"
define i32 @fxpadd(i32 %cl) {
entry:
%0 = zext i32 %cl to i128
%1 = zext i32 %cl to i128
%2 = add i128 %1, %0
br label %L1001510
L1001510:
2013 Jan 01
1
[LLVMdev] Trying out Loop Vectorizer
On Jan 1, 2013, at 12:31 AM, Chandler Carruth <chandlerc at google.com> wrote:
> On Mon, Dec 31, 2012 at 3:26 PM, Nadav Rotem <nrotem at apple.com> wrote:
>>
>> On Dec 31, 2012, at 11:57 AM, Benjamin Kramer <benny.kra at gmail.com> wrote:
>>
>>> I'm not entirely sure why this is the case, the target specific stuff for opt is still very new, but
2015 Jul 30
3
[LLVMdev] The Trouble with Triples
Hi Eric,
Thanks for getting back to me on this.
> I'm not sure I agree with the basic idea of using the target triple as a way of
> encoding all of the pieces of target data as a string. I think in a number of
> cases what we need to do is either open up API to the back end to specify things,
> or encode the information into the IR when it's different from the generic triple.
2012 Dec 31
0
[LLVMdev] Trying out Loop Vectorizer
On Mon, Dec 31, 2012 at 3:26 PM, Nadav Rotem <nrotem at apple.com> wrote:
>
> On Dec 31, 2012, at 11:57 AM, Benjamin Kramer <benny.kra at gmail.com> wrote:
>
> I'm not entirely sure why this is the case, the target specific stuff for
> opt is still very new, but at the moment you have to explicitly set a
> triple for opt so it can access target-specific bits to
2015 Jul 29
0
[LLVMdev] The Trouble with Triples
Hi Daniel,
I'm not sure I agree with the basic idea of using the target triple as a
way of encoding all of the pieces of target data as a string. I think in a
number of cases what we need to do is either open up API to the back end to
specify things, or encode the information into the IR when it's different
from the generic triple. Ideally the triple will have enough information to
do
2011 Jun 22
4
[LLVMdev] ARM thumb-2 instruction used for non-thumb2 CPUs
Hi,
I just realized that clang produces Thumb-2 instruction in code even when older CPU type which doesn't suport Thumb-2 is specified.
Here is output:
# /opt/llvm/bin/clang -S -ccc-host-triple arm-unknown-freebsd -mcpu=arm926ej-s -mfloat-abi=soft -v -o rrx.S rrx.c
clang version 3.0 (http://llvm.org/git/clang.git 98138cdfdee05c0afbab2b209ce8cfe4a52474e1)
Target: arm-unknown-freebsd
Thread
2018 Sep 10
9
[RfC] A proposal of adding SPIR-V Toolchain in Clang
Hello,
Since 2015 Khronos has switched to the new portable intermediate format SPIR-V, which has replaced the original SPIR. The advantage is that it offers higher portability across different toolchains. There was a talk about it at a Dev Meeting:
http://llvm.org/devmtg/2017-03//2017/02/20/accepted-sessions.html#17
LLVM currently only supports SPIR format for OpenCL in Clang. Several Khronos
2015 Dec 19
4
PS4 code owner?
As I've left Sony, I should handoff code ownership of the PS4 triple. Sony is still committed to LLVM and I look forward to continue to work with them in open source.
Sony has asked that I nominate Paul Robinson to become code owner.
+------------------------------------------------------------+
| Alexander M. Rosenberg <mailto:alexr at leftfield.org> |
| Nobody cares what I
2016 Jun 05
2
What kind of testcases should be required to test IPRA?
On Sun, Jun 5, 2016 at 9:15 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> On Jun 4, 2016, at 8:32 PM, vivek pandya <vivekvpandya at gmail.com> wrote:
>
>
>
> On Sun, Jun 5, 2016 at 8:56 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> > On Jun 4, 2016, at 7:56 PM, vivek pandya <vivekvpandya at gmail.com>
>> wrote: