Displaying 20 results from an estimated 310 matches for "xclang".
Did you mean:
clang
2019 Nov 13
2
Difference between clang -O1 -Xclang -disable-O0-optnone and clang -O0 -Xclang -disable-O0-optnone in LLVM 9
Hello,
I m trying to test individual O3 optimizations/ replicating O3 behavior on
IR. I took unoptimized IR (O0), used disable-o0-optnone via (*clang -O0
-Xclang -disable-O0-optnone*). I read somewhere about *clang -O1 -Xclang
-disable-O0-optnone,* so I also tested on this initial IR.
I have observed by using individual optimizations, the performance (i.e
time) is better when the base/initial IR is generated via *clang -O1
-Xclang -disable-O0-optnone*....
2020 May 27
2
OpenMP Error in Clang
Hello,
I am getting the following error while trying to build a benchmark with a custom function pass:
clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c
error: unknown argument: '-fopenmp=libomp'
If I use this instead:
clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c
I get the error: fatal error: 'omp.h' file not found
I am not sure where the problem...
2015 Apr 28
4
[LLVMdev] GCC compatibility code coverage issue .
Hi All,
We trying to use clang+llvm to generate the gcc coverage format as
clang version 3.6.0
$clang --coverage -Xclang -coverage-cfg-checksum -Xclang
-coverage-no-function-names-in-data -Xclang -coverage-version='407*'
test.c
$a.out
$llvm-cov gcov test.gcda
Unexpected version: *704.
Invalid .gcno File!
Debugging the above cause ,But any hints from experts here ,will help a lot .
Appreciate your time ,T...
2012 Aug 16
2
[LLVMdev] MIPS & GP register
...we use without much rhyme or reason, to be honest. Here's what we have and was working (filtered a bit to remove -I, -D, -W flags and sorted out by flag type and in order of what I think matters):
> -march=mips32r2
> -mtune=4kem
> -msoft-float
> -EL
>
> -Xclang -triple -Xclang mipsel-sde-elf
> -Xclang -mrelocation-model -Xclang static
>
> -Xclang -mllvm -Xclang -mips-ssection-threshold=0
> -Xclang -mllvm -Xclang -enable-mips-delay-filler
>
> -Xassembler -G -Xassembler 0 -g
>
> -funsigned-char
> -fshort...
2013 Mar 21
0
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
...clang unit tests, there is a cuda.h header that provides very basic
support for these keywords: tests/SemaCUDA/cuda.h
If you compile as CUDA (use .cu extension, or "-x cuda") and use this
header, you will have basic support. You can invoke clang with something
like:
$ clang test1.cu -Xclang -fcuda-is-device -I ../src/clang/test/SemaCUDA
-Xclang -triple -Xclang nvptx64 -Xclang -target-cpu -Xclang sm_20 -S
... assuming your clang source directory is ../src/clang, you want 64-bit
PTX, and your target SM is 2.0. Adjust accordingly.
Clang also knows how to map OpenCL to PTX, so you woul...
2012 Aug 16
0
[LLVMdev] MIPS & GP register
On Wed, Aug 15, 2012 at 10:17 PM, Carl Norum <carl at lytro.com> wrote:
>> -march=mips32r2
>> -mtune=4kem
>> -msoft-float
>> -EL
>>
>> -Xclang -triple -Xclang mipsel-sde-elf
>> -Xclang -mrelocation-model -Xclang static
>>
>> -Xclang -mllvm -Xclang -mips-ssection-threshold=0
>> -Xclang -mllvm -Xclang -enable-mips-delay-filler
We generally try to discourage people from using -Xclang flags
wherever possib...
2012 Jan 16
0
[LLVMdev] Opt pass 'Canonicalize Induction Variables' not working
...ev_replace.ll
That is interesting. Can you send me the individual error messages? Are
you using a 32bit platform?
>
> Expected Passes : 104
> Expected Failures : 29
> Unexpected Failures: 3
> make: *** [polly-test] Error 1
>
> When I try your command 'clang -Xclang -load ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll -S -emit-llvm -mllvm -polly -O0' if fails with the following errors:
The command to prepare the code for Polly was incorrect. I missed a
'-Xclang' option. The correct one is:
clang -Xclang -load -Xclang ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll...
2013 Mar 22
2
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
Well, I tried the command line given by you and I get the following error
clang++ nbody.kernel.cu -Xclang -fcuda-is-device
-I/home/upitamba/llvm-3.2.src/tools/clang/test/SemaCUDA/ -Xclang -triple
-Xclang nvptx64 -Xclang -target-cpu -Xclang sm_10 -S
fatal error: error in backend: Cannot select: 0x334a870: v4f32 =
NVPTXISD::MoveParam 0x334a770 [ORD=1] [ID=22]
0x334a770: v4f32 = TargetExternalSymbol...
2018 Jan 06
2
Relationship between clang, opt and llc
@Craig and @Michael
After installing clang-5.0 (download from http://releases.llvm.org, does
not have Flang build's slowdown mention above),
1. clang++ -O0 -Xclang -disable-O0-optnone -Xclang -disable-llvm-passes -c
-emit-llvm -o a.bc LULESH.cc; opt -O3 a.bc -o b.bc; llc -O3 -filetype=obj
b.bc -o b.o ; clang++ b.o -o b.out; ./b.out 20
runtime: 2.354069e+01
2. clang++ -O1 -Xclang -disable-O0-optnone -Xclang -disable-llvm-passes -c
-emit-llvm -o a.bc LULESH.cc...
2013 Mar 20
2
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
Thanks a lot Justin,
I will remove the toolkit header. Just one last question..(maybe ;) ) If I
do away with toolkit headers it says unknown type name '__device__'. Does
this function qualifier have an alternative ? or I can just do away with ?
--
View this message in context: http://llvm.1065342.n5.nabble.com/UNREACHABLE-executed-error-while-trying-to-generate-PTX-tp56026p56093.html
2018 Jan 06
2
Relationship between clang, opt and llc
...opper at gmail.com> wrote:
> -disable-O0-optnone has no effect with anything other than -O0.
>
> -O0 being passed to clang also causes all functions to be marked noinline.
> I don't know if there is a command line option to turn that off.
>
> I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing
> -O0 very specifically means disable optimizations.
>
> ~Craig
>
> On Sat, Jan 6, 2018 at 12:25 PM, toddy wang <wenwangtoddy at gmail.com>
> wrote:
>
>> @Craig and @Michael
>>
>> After installing clang-5.0 (d...
2018 Jan 06
0
Relationship between clang, opt and llc
-disable-O0-optnone has no effect with anything other than -O0.
-O0 being passed to clang also causes all functions to be marked noinline.
I don't know if there is a command line option to turn that off.
I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing
-O0 very specifically means disable optimizations.
~Craig
On Sat, Jan 6, 2018 at 12:25 PM, toddy wang <wenwangtoddy at gmail.com> wrote:
> @Craig and @Michael
>
> After installing clang-5.0 (download from http://releases.llvm.org, does...
2012 Aug 16
3
[LLVMdev] MIPS & GP register
On Aug 15, 2012, at 11:56 PM, Eli Friedman wrote:
> On Wed, Aug 15, 2012 at 10:17 PM, Carl Norum <carl at lytro.com> wrote:
>>> -march=mips32r2
>>> -mtune=4kem
>>> -msoft-float
>>> -EL
>>>
>>> -Xclang -triple -Xclang mipsel-sde-elf
>>> -Xclang -mrelocation-model -Xclang static
>>>
>>> -Xclang -mllvm -Xclang -mips-ssection-threshold=0
>>> -Xclang -mllvm -Xclang -enable-mips-delay-filler
>
> We generally try to discourage people from using -Xcla...
2018 Jan 06
0
Relationship between clang, opt and llc
...:
>
>> -disable-O0-optnone has no effect with anything other than -O0.
>>
>> -O0 being passed to clang also causes all functions to be marked
>> noinline. I don't know if there is a command line option to turn that off.
>>
>> I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing
>> -O0 very specifically means disable optimizations.
>>
>> ~Craig
>>
>> On Sat, Jan 6, 2018 at 12:25 PM, toddy wang <wenwangtoddy at gmail.com>
>> wrote:
>>
>>> @Craig and @Michael
>>>
&g...
2012 Jan 16
2
[LLVMdev] Opt pass 'Canonicalize Induction Variables' not working
...:
Polly :: CodeGen/do_pluto_matmult.ll
Polly :: CodeGen/single_do_loop_int_max_iterations.ll
Polly :: CodeGen/single_do_loop_scev_replace.ll
Expected Passes : 104
Expected Failures : 29
Unexpected Failures: 3
make: *** [polly-test] Error 1
When I try your command 'clang -Xclang -load ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll -S -emit-llvm -mllvm -polly -O0' if fails with the following errors:
--------------------------------------
clang: warning: /Developer/llvm_build/tools/polly/Debug+Asserts/lib/LLVMPolly.dylib: 'linker' input unused when '-S' is presen...
2012 Aug 17
2
[LLVMdev] MIPS & GP register
...honest. Here's what we have and was working
> (filtered a bit to remove -I, -D, -W flags and sorted out by flag type and
> in order of what I think matters):
>
> > -march=mips32r2
> > -mtune=4kem
> > -msoft-float
> > -EL
> >
> > -Xclang -triple -Xclang mipsel-sde-elf
> > -Xclang -mrelocation-model -Xclang static
> >
> > -Xclang -mllvm -Xclang -mips-ssection-threshold=0
> > -Xclang -mllvm -Xclang -enable-mips-delay-filler
> >
> > -Xassembler -G -Xassembler 0 -g
> >
> >...
2012 Aug 16
0
[LLVMdev] MIPS & GP register
...g 15, 2012, at 11:56 PM, Eli Friedman wrote:
>
>> On Wed, Aug 15, 2012 at 10:17 PM, Carl Norum <carl at lytro.com> wrote:
>>>> -march=mips32r2
>>>> -mtune=4kem
>>>> -msoft-float
>>>> -EL
>>>>
>>>> -Xclang -triple -Xclang mipsel-sde-elf
>>>> -Xclang -mrelocation-model -Xclang static
>>>>
>>>> -Xclang -mllvm -Xclang -mips-ssection-threshold=0
>>>> -Xclang -mllvm -Xclang -enable-mips-delay-filler
>>
>> We generally try to discourage p...
2011 Oct 08
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
....preopt.ll
In general I use an even longer sequence of preoptimizations. This
sequence is built directly into Polly and is defined in
RegisterPasses.cpp. To get the corresponding opt flags you can load
Polly into clang and use the following command (-O3 is important):
> clang test.c -O3 -Xclang -load -Xclang lib/LLVMPolly.so -mllvm
-debug-pass=Arguments
Pass Arguments: -targetdata -no-aa -targetlibinfo -tbaa -basicaa
-preverify -domtree -verify -mem2reg -instcombine -simplifycfg
-tailcallelim -simplifycfg -reassociate -domtree -loops -loop-simplify
-lcssa -loop-rotate -instcombine -sc...
2013 Mar 24
0
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
...is fixed in trunk, but with your code I'm now hitting
a new issue. I'll get the fix in soon.
On Fri, Mar 22, 2013 at 1:08 AM, upit <uday_pitambare at yahoo.com> wrote:
> Well, I tried the command line given by you and I get the following error
>
> clang++ nbody.kernel.cu -Xclang -fcuda-is-device
> -I/home/upitamba/llvm-3.2.src/tools/clang/test/SemaCUDA/ -Xclang -triple
> -Xclang nvptx64 -Xclang -target-cpu -Xclang sm_10 -S
>
> fatal error: error in backend: Cannot select: 0x334a870: v4f32 =
> NVPTXISD::MoveParam 0x334a770 [ORD=1] [ID=22]
> 0x334a770: v4...
2015 May 22
2
[LLVMdev] GCC compatibility code coverage issue .
...e-arcs -ftest-coverage test.c
>> >> bash-4.1$ ./a.out
>> >> bash-4.1$ llvm-cov gcov test.c
>> >> Unexpected number of edges (in main).
>> >> Invalid .gcda File!
>> >>
>> >> bash-4.1$ clang -g -O0 -fprofile-arcs -ftest-coverage -Xclang
>> >> -coverage-cfg-checksum -Xclang -coverage-no-function-names-in-data
>> >> test.c
>> >> bash-4.1$ ./a.out
>> >> bash-4.1$ llvm-cov gcov test.c
>> >> Unexpected end of memory buffer: 386832052.
>> >> Invalid .gcno File!
>...