- Aug 26, 2010
-
-
Douglas Gregor authored
llvm-svn: 112154
-
Dan Gohman authored
llvm-svn: 112151
-
Douglas Gregor authored
into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. llvm-svn: 112149
-
John McCall authored
llvm-svn: 112148
-
Eric Christopher authored
gcc defines them. llvm-svn: 112146
-
Ted Kremenek authored
Add libclang API hook "clang_getIBOutletCollectionType" to query the collection type for iboutletcollection attributes. llvm-svn: 112139
-
Daniel Dunbar authored
ready yet. llvm-svn: 112138
-
Chris Lattner authored
llvm-svn: 112132
-
Daniel Dunbar authored
- Will be adding an executable test case to test-suite repo. llvm-svn: 112126
-
Daniel Dunbar authored
of always using the new toolchain. llvm-svn: 112125
-
Daniel Dunbar authored
llvm-svn: 112124
-
Daniel Dunbar authored
header.", it is teh broken. llvm-svn: 112123
-
Eric Christopher authored
vectors that are the same size. Fix up testcases accordingly and add a new one to make sure we still error if lax vector conversions are disabled. Fixes rdar://8328190 llvm-svn: 112122
-
Douglas Gregor authored
into the clients", because the C standard library sucks. Where's my stable sort, huh? llvm-svn: 112121
-
Fariborz Jahanian authored
llvm-svn: 112119
-
Fariborz Jahanian authored
llvm-svn: 112117
-
Fariborz Jahanian authored
llvm-svn: 112116
-
Eric Christopher authored
llvm-svn: 112115
-
John McCall authored
This works courtesy of the new SmallVector<..., 0> specialization that doesn't require a complete type. Note that you'll need to pull at least SmallVector.h from LLVM to compile successfully. llvm-svn: 112114
-
Argyrios Kyrtzidis authored
llvm-svn: 112112
-
Chris Lattner authored
as a double in the x86-64 ABI. This allows us to generate much better code for certain things, e.g.: _Complex float f32(_Complex float A, _Complex float B) { return A+B; } Used to compile into (look at the integer silliness!): _f32: ## @f32 ## BB#0: ## %entry movd %xmm1, %rax movd %eax, %xmm1 movd %xmm0, %rcx movd %ecx, %xmm0 addss %xmm1, %xmm0 movd %xmm0, %edx shrq $32, %rax movd %eax, %xmm0 shrq $32, %rcx movd %ecx, %xmm1 addss %xmm0, %xmm1 movd %xmm1, %eax shlq $32, %rax addq %rdx, %rax movd %rax, %xmm0 ret Now we get: _f32: ## @f32 movdqa %xmm0, %xmm2 addss %xmm1, %xmm2 pshufd $16, %xmm2, %xmm2 pshufd $1, %xmm1, %xmm1 pshufd $1, %xmm0, %xmm0 addss %xmm1, %xmm0 pshufd $16, %xmm0, %xmm1 movdqa %xmm2, %xmm0 unpcklps %xmm1, %xmm0 ret and compile stuff like: extern float _Complex ccoshf( float _Complex ) ; float _Complex ccosf ( float _Complex z ) { float _Complex iz; (__real__ iz) = -(__imag__ z); (__imag__ iz) = (__real__ z); return ccoshf(iz); } into: _ccosf: ## @ccosf ## BB#0: ## %entry pshufd $1, %xmm0, %xmm1 xorps LCPI4_0(%rip), %xmm1 unpcklps %xmm0, %xmm1 movaps %xmm1, %xmm0 jmp _ccoshf ## TAILCALL instead of: _ccosf: ## @ccosf ## BB#0: ## %entry movd %xmm0, %rax movq %rax, %rcx shlq $32, %rcx shrq $32, %rax xorl $-2147483648, %eax ## imm = 0xFFFFFFFF80000000 addq %rcx, %rax movd %rax, %xmm0 jmp _ccoshf ## TAILCALL There is still "stuff to be done" here for the struct case, but this resolves rdar://6379669 - [x86-64 ABI] Pass and return _Complex float / double efficiently llvm-svn: 112111
-
Argyrios Kyrtzidis authored
Fix miscompilation. The custom new[]/delete[] methods were not getting called for arrays with more than 1 dimension. llvm-svn: 112107
-
Tom Care authored
llvm-svn: 112100
-
Tom Care authored
- Removed the assumption that __block vars are all non-constant - Simplified some repetitive code in RunAnalysis - Added block walking support - Code/comments cleanup - Separated out test for block pseudoconstants llvm-svn: 112098
-
Ted Kremenek authored
llvm-svn: 112097
-
Ted Kremenek authored
When annotating tokens, don't fallback to annotating with a null cursor for cursors that come before a macro instantiation. Fixes <rdar://problem/7974151>. llvm-svn: 112096
-
Douglas Gregor authored
into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. llvm-svn: 112095
-
John McCall authored
Clients of Sema don't need to know (for example) the list of diagnostics we support. llvm-svn: 112093
-
- Aug 25, 2010
-
-
Dan Gohman authored
llvm-svn: 112092
-
Douglas Gregor authored
code-completion results cached by ASTUnit, sort the resulting result set. This makes testing far, far easier, so this commit also includes tests for the previous few fixes. llvm-svn: 112070
-
Michael J. Spencer authored
llvm-svn: 112067
-
Douglas Gregor authored
token. The first token might be something that ends up triggering code completion, which in turn requires a valid Scope. Test case forthcoming. llvm-svn: 112066
-
Douglas Gregor authored
llvm-svn: 112065
-
Douglas Gregor authored
code completion. We were allowing the preamble to include the line that we're code-completing on. Again, testcase is forthcoming. llvm-svn: 112064
-
Douglas Gregor authored
ASTUnit match those produced directly by code completion. Test case is forthcoming. llvm-svn: 112063
-
Devang Patel authored
llvm-svn: 112062
-
Douglas Gregor authored
llvm-svn: 112059
-
Douglas Gregor authored
that ASTUnit knows not to try to provide completions there. llvm-svn: 112057
-
Douglas Gregor authored
expect "natural" language and should not provide any completions, e.g., comments, string literals, #error. llvm-svn: 112054
-
-