- Jan 04, 2012
-
-
Sebastian Pop authored
Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. llvm-svn: 147542
-
Akira Hatanaka authored
llvm-svn: 147541
-
Sean Callanan authored
to include -- in sample command lines. Now LLDB prints expression [-f <format>] -- <expr> instead of expression [-f <format>] <expr> and also adds a new example line: expression <expr> to show that in the absense of arguments the -- can be ommitted. llvm-svn: 147540
-
Sean Callanan authored
eFormatCString is specified, I have made DataExtractor::Dump properly escape the string. This prevents LLDB from printing characters that confuse terminals. llvm-svn: 147536
-
Douglas Gregor authored
llvm-svn: 147535
-
Douglas Gregor authored
different modules. This implementation is a first approximation of what we want, using only the function type to determine equivalence. Later, we'll want to deal with some of the more subtle issues, including: - C allows a prototyped declaration and a non-prototyped declaration to be merged, which we should support - We may want to ignore the return type when merging, then complain if the return types differ. Or, we may want to leave it as it us, so that we only complain if overload resolution eventually fails. - C++ non-static member functions need to consider cv-qualifiers and ref-qualifiers. - Function templates need to consider the template parameters and return type. - Function template specializations will have special rules. - We can now (accidentally!) end up overloading in C, even without the "overloadable" attribute, and will need to detect this at some point. The actual detection of "is this an overload?" is implemented by Sema::IsOverload(), which will need to be moved into the AST library for re-use here. That will be a future refactor. llvm-svn: 147534
-
Douglas Gregor authored
modules, so long as the typedefs refer to the same underlying type. This ensures that the typedefs end up in the same redeclaration chain. To test this, fix name lookup for C/Objective-C to properly deal with multiple declarations with the same name in the same scope. llvm-svn: 147533
-
Marshall Clow authored
llvm-svn: 147532
-
Benjamin Kramer authored
While the code took care of disabling the sse42 flag it didn't know about popcnt. This broke -march=native on penryn. llvm-svn: 147531
-
David Chisnall authored
llvm-svn: 147530
-
Nick Lewycky authored
llvm-svn: 147529
-
Nick Lewycky authored
nsw bits on them. llvm-svn: 147528
-
Craig Topper authored
Allow vector shuffle normalizing to use concat vector even if the sources are commuted in the shuffle mask. llvm-svn: 147527
-
Ted Kremenek authored
llvm-svn: 147526
-
Craig Topper authored
llvm-svn: 147525
-
Douglas Gregor authored
Don't treat 'import' as a contextual keyword when we're in a caching lexer, or when modules are disabled. llvm-svn: 147524
-
Rafael Espindola authored
PR11690. llvm-svn: 147523
-
Eli Friedman authored
Add an explicit LambdaExprContext to Declarator, to parallel BlockLiteralContext. Use it to ensure semantic analysis of types isn't confused by the lack of a type specifier. llvm-svn: 147522
-
NAKAMURA Takumi authored
llvm-svn: 147521
-
Akira Hatanaka authored
is either N32 or N64. llvm-svn: 147520
-
Akira Hatanaka authored
llvm-svn: 147519
-
Akira Hatanaka authored
versions derive from them. - JALR64 is not needed since N64 does not emit jal. - Add template parameter to BranchLink that sets the rt field. - Fix the set of temporary registers for O32 and N64. llvm-svn: 147518
-
Eli Friedman authored
llvm-svn: 147517
-
Akira Hatanaka authored
is Mips64. llvm-svn: 147516
-
Eli Friedman authored
Stub out the Sema interface for lambda expressions, and change the parser to use it. Unconditionally error on lambda expressions because they don't work in any meaningful way yet. llvm-svn: 147515
-
Kostya Serebryany authored
llvm-svn: 147514
-
Evan Cheng authored
llvm-svn: 147513
-
Evan Cheng authored
(x > y) ? x : y => (x >= y) ? x : y So for something like (x - y) > 0 : (x - y) ? 0 It will be (x - y) >= 0 : (x - y) ? 0 This makes is possible to test sign-bit and eliminate a comparison against zero. e.g. subl %esi, %edi testl %edi, %edi movl $0, %eax cmovgl %edi, %eax => xorl %eax, %eax subl %esi, $edi cmovsl %eax, %edi rdar://10633221 llvm-svn: 147512
-
Rafael Espindola authored
llvm-svn: 147511
-
Kostya Serebryany authored
llvm-svn: 147509
-
Ted Kremenek authored
llvm-svn: 147506
-
Ted Kremenek authored
llvm-svn: 147505
-
Fariborz Jahanian authored
variety is treated as a 'void *'. No need to issue warning reserved for objc object properties. // rdar://10565506 llvm-svn: 147504
-
Eli Friedman authored
Get rid of an unnecessary check; the AST for init-lists is the same independent of whether we're in C++11 mode. llvm-svn: 147503
-
Chris Lattner authored
Before we'd get: $ clang t.c fatal error: error in backend: Invalid operand for inline asm constraint 'i'! Now we get: $ clang t.c t.c:16:5: error: invalid operand for inline asm constraint 'i'! "movq (%4), %%mm0\n" ^ Which at least gets us the inline asm that is the problem. llvm-svn: 147502
-
Chris Lattner authored
llvm-svn: 147501
-
Ted Kremenek authored
Enhance UnixAPIChecker to also warn about zero-sized allocations to calloc() and realloc(). Patch by Cyril Roelandt! llvm-svn: 147500
-
Douglas Gregor authored
Minor tweak to name lookup for C/Objective-C: after the first name, still consider whether this is a redeclaration lookup when determining whether to look for the visible declaration llvm-svn: 147499
-
Douglas Gregor authored
the AST reader doesn't actually perform a merge, because name lookup knows how to merge identical typedefs together. As part of this, teach C/Objective-C name lookup to return multiple results in all cases, rather than first digging through the attributes to see if the value is overloadable. This way, we'll catch ambiguous lookups in C/Objective-C. llvm-svn: 147498
-
Marshall Clow authored
llvm-svn: 147497
-