search for: clang_cc1

Displaying 20 results from an estimated 36 matches for "clang_cc1".

2014 Sep 10
3
[LLVMdev] Does llvm-lit support type substitution (macro)?
Hello all, I am writing test cases which are dedicated to be executed by llvm-lit. Most of my test cases have the same logic but different types. For example: // RUN: %clang_cc1 -fsyntax-only func (int a) { a = 3; } // RUN: %clang_cc1 -fsyntax-only func (char a) { a = 3; } // RUN: %clang_cc1 -fsyntax-only func (unsigned a) { a = 3; } Now I put them in three different test cases but it is hard to maintain. I am wondering whether llvm-lit support writing test cases...
2013 Dec 08
2
[LLVMdev] lit: deprecating trailing \ in RUN lines
On 08/12/2013 16:43, Daniel Dunbar wrote: > > With one-to-one mapping, it becomes possible to use simple tools > like grep to validate common mistakes like %clang / %clang_cc1 > mixups, a missing -o flag and so on. > > Right now there's no obvious way to do those checks and we've > ended up without an easy way to lint for broken tests as a result. > Each broken test has a high cost so we need to continually look at > ways to...
2013 Dec 09
0
[LLVMdev] lit: deprecating trailing \ in RUN lines
Ok, that makes sense. I don't see this as a good enough argument to remove backslash support though. For problems like the clang_cc1 substitution mistakes, it would be much better to just improve the substitution support so that those cause immediate test failures. I would definitely support a move to make lit's substitution machinery more strict. For problems like your first search, I can appreciate how wrapped lines make t...
2013 Apr 06
2
[LLVMdev] How to compile object C with clang into llvm IR?
Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how to compile it at terminal command since no clang_cc1 executable file. Can some one help me? I am writing the llvm backend document --http://jonathan2251.github.com/lbd/index.html now. I use "clang -c hello.cpp -emit-llvm" to compile C++ but don't know how to compile Object-C. // RUN: %clang_cc1 -emit-llvm -o %t %s void f0(id a) { //...
2013 Dec 08
0
[LLVMdev] lit: deprecating trailing \ in RUN lines
...e benefit you pointed out so far has been visual wrapping in the editor, > but the cost of that is very high. Perhaps your editor has a virtual > wrapping mode? > > With one-to-one mapping, it becomes possible to use simple tools like grep > to validate common mistakes like %clang / %clang_cc1 mixups, a missing -o > flag and so on. > > Right now there's no obvious way to do those checks and we've ended up > without an easy way to lint for broken tests as a result. Each broken test > has a high cost so we need to continually look at ways to improve the > situatio...
2013 Apr 06
2
[LLVMdev] How to compile object C with clang into llvm IR?
...> Look up --emit-llvm. I think it has to be used with -c. > > On Apr 5, 2013 10:55 PM, "Jonathan" <gamma_chen at yahoo.com.tw> wrote: > Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how to compile it at terminal command since no clang_cc1 executable file. Can some one help me? I am writing the llvm backend document --http://jonathan2251.github.com/lbd/index.html now. I use "clang -c hello.cpp -emit-llvm" to compile C++ but don't know how to compile Object-C. > > // RUN: %clang_cc1 -emit-llvm -o %t %s > >...
2013 Apr 06
0
[LLVMdev] How to compile object C with clang into llvm IR?
Look up --emit-llvm. I think it has to be used with -c. On Apr 5, 2013 10:55 PM, "Jonathan" <gamma_chen at yahoo.com.tw> wrote: > Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I > don't know how to compile it at terminal command since no clang_cc1 > executable file. Can some one help me? I am writing the llvm backend > document --http://jonathan2251.github.com/lbd/index.html now. I use > "clang -c hello.cpp -emit-llvm" to compile C++ but don't know how to > compile Object-C. > > // RUN: %clang_cc1 -emit-llvm -...
2013 Jul 05
4
[LLVMdev] [RFC] Switching make check to use 'set -o pipefail'
.... This has the undesirable property that it is really easy for tests to bitrot. For example, something like llc %s | FileCheck %s will still pass if llc crashes after printing what FileCheck was looking for. It is also easy to break the tests when refactoring. I have fixed tests that were doing %clang_cc1 -a-driver-options ... | not grep clearly the test was changed from %clang to %clang_cc1 and we missed the fact that the option also had to be updated. Currently to check a command output and that it doesn't crash we have to do llc %s > %t FileCheck %s < %t I would like to switch to us...
2013 Dec 08
4
[LLVMdev] lit: deprecating trailing \ in RUN lines
...rapped RUN lines. The benefit you pointed out so far has been visual wrapping in the editor, but the cost of that is very high. Perhaps your editor has a virtual wrapping mode? With one-to-one mapping, it becomes possible to use simple tools like grep to validate common mistakes like %clang / %clang_cc1 mixups, a missing -o flag and so on. Right now there's no obvious way to do those checks and we've ended up without an easy way to lint for broken tests as a result. Each broken test has a high cost so we need to continually look at ways to improve the situation. Alp. -- http://www....
2013 Apr 06
0
[LLVMdev] How to compile object C with clang into llvm IR?
...--emit-llvm. I think it has to be used with -c. >> >> On Apr 5, 2013 10:55 PM, "Jonathan" <gamma_chen at yahoo.com.tw> wrote: >> Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how to compile it at terminal command since no clang_cc1 executable file. Can some one help me? I am writing the llvm backend document --http://jonathan2251.github.com/lbd/index.html now. I use "clang -c hello.cpp -emit-llvm" to compile C++ but don't know how to compile Object-C. >> >> // RUN: %clang_cc1 -emit-llvm -o %t %s &gt...
2016 Sep 11
3
defaults for FP contraction [e.g. fused multiply-add]: suggestion and patch to be slightly more aggressive and to make Clang`s optimization settings closer to having the same meaning as when they are given to GCC [at least for "-O3"]
On Sep 10, 2016, at 3:33 AM, Steve Canon <scanon at apple.com> wrote: >>> >>> Pretty much. In particular, imagine a user trying to debug an unexpected floating point result caused by conversion of a*b + c into fma(a, b, c). >> >> I think that’s unavoidable, because of the way the optimization levels work. Even fma contraction is on by default (something I’d
2013 Jul 05
0
[LLVMdev] [RFC] Switching make check to use 'set -o pipefail'
...t is really easy for tests to > bitrot. For example, something like > > llc %s | FileCheck %s > > will still pass if llc crashes after printing what FileCheck was > looking for. It is also easy to break the tests when refactoring. I > have fixed tests that were doing > > %clang_cc1 -a-driver-options ... | not grep > > clearly the test was changed from %clang to %clang_cc1 and we missed > the fact that the option also had to be updated. > > Currently to check a command output and that it doesn't crash we have to do > > llc %s > %t > FileCheck %s...
2013 Dec 10
2
[LLVMdev] lit: deprecating trailing \ in RUN lines
...ler inputs, so trailing >> slash is a bit unfortunate. >> > > How does the backslash break this in any way? The backslash is interpreted by lit and the compiler in different and incompatible ways. Spot the problem in this reduced example.. // expected-no-diagnostics // RUN: %clang_cc1 %s -verify -emit-llvm -o - | \ __attribute__((packed)) // no warning int x; // RUN: FileCheck %s // CHECK: @x = common global i32 0, align 4 It is easier to get this wrong than it is to get it right -- in effect, lit is encouraging use of backslash line continuations which are guaranteed to...
2012 Aug 01
2
[LLVMdev] [RFC] New command line parsing/generating framework for clang and lld.
...// generate a very good error message with the information we have that // includes the list of valid values. def clang_f_fp_contract : ClangSeparateValues<"ffp-contract", ["fast", "on", "off"]>; ClangCC1.td: include "Option.td" def clang_cc1 : Tool; class ClangCC1Option< list<string> prefixes , string name , dag strparse , string render , dag rendermatch> : Option<prefixes, name, clang_cc1, strparse, render, rendermatch>;...
2016 Jun 01
2
[RFC] Changing `lit` default output
As long as the individual commands are still copy-pastable into both cmd and bash, I'm happy. I think practice this means the output should look more like this: some test: // RUN: %clang_cc1 %s -verify output: $ "C:\\src\\llvm\\build\\bin\\clang.exe" -cc1 "C:\\....\\test.cpp" -verify Essentially every program used in the LLVM test suite understands forward slashes, so we could rewrite the path to test.cpp to use forward slashes, but I think cmd wants to see backsl...
2013 Dec 31
4
[LLVMdev] [Patch][RFC] Change R600 data layout
Hi, I've prepared patches for both LLVM and Clang to change the datalayout for R600. This may seem like a bold move, but I think it is warranted. R600/SI is a strange architecture in that it uses 64bit pointers but does not support 64 bit arithmetic except for load/store operations that roughly map onto getelementptr. The current datalayout for r600 includes n32:64, which is odd
2012 Aug 09
0
[LLVMdev] [RFC] New command line parsing/generating framework for clang and lld.
...with the information we have that > // includes the list of valid values. > def clang_f_fp_contract : ClangSeparateValues<"ffp-contract", > ["fast", "on", "off"]>; > > ClangCC1.td: > include "Option.td" > > def clang_cc1 : Tool; > > class ClangCC1Option< list<string> prefixes > , string name > , dag strparse > , string render > , dag rendermatch> > : Option<prefixes, name, clang_cc1, str...
2015 Jun 05
2
[LLVMdev] Removing AvailableExternal values in GlobalDCE (was Re: RFC: ThinLTO Impementation Plan)
On Thu, Jun 4, 2015 at 5:33 PM, Reid Kleckner <rnk at google.com> wrote: > On Thu, Jun 4, 2015 at 5:17 PM, Teresa Johnson <tejohnson at google.com> wrote: >> >> Agreed. Although I assume you mean invoke the new pass under a >> ThinLTO-only option so that avail extern are not dropped in the >> compile pass before the LTO link? > > > No, this pass
2011 Jun 20
0
[LLVMdev] [PATCH] Context of DW_TAG_member
On Jun 18, 2011, at 3:14 PM, Xi Wang wrote: > Hi, > > When generating debugging information for a data member (e.g., a struct field), Clang doesn't set the member's context to the enclosed class/struct/union type --- it currently sets the context to the file instead. The attached patch corrects this. Thanks. Do you have a test case ? Please update createMemberType() directly,
2014 Apr 07
2
[LLVMdev] Getting FileCheck's colored output through lit (& possibly ninja)
So I manage to get clang's colored output through ninja simply by force (CMAKE_CXX_FLAGS=-fcolor-diagnostics), which isn't ideal (if I were to pipe ninja's output to a file it'd still have color escapes, etc) but it works. But I haven't found a similar solution for FileCheck & I'm wondering has anyone already solved this problem for themselves - if so, how? if not,