- Dec 23, 2010
-
-
Bill Wendling authored
llvm-svn: 122457
-
Jim Grosbach authored
llvm-svn: 122456
-
Benjamin Kramer authored
DAGCombine add (sext i1), X into sub X, (zext i1) if sext from i1 is illegal. The latter usually compiles into smaller code. example code: unsigned foo(unsigned x, unsigned y) { if (x != 0) y--; return y; } before: _foo: ## @foo cmpl $1, 4(%esp) ## encoding: [0x83,0x7c,0x24,0x04,0x01] sbbl %eax, %eax ## encoding: [0x19,0xc0] notl %eax ## encoding: [0xf7,0xd0] addl 8(%esp), %eax ## encoding: [0x03,0x44,0x24,0x08] ret ## encoding: [0xc3] after: _foo: ## @foo cmpl $1, 4(%esp) ## encoding: [0x83,0x7c,0x24,0x04,0x01] movl 8(%esp), %eax ## encoding: [0x8b,0x44,0x24,0x08] adcl $-1, %eax ## encoding: [0x83,0xd0,0xff] ret ## encoding: [0xc3] llvm-svn: 122455
-
Douglas Gregor authored
llvm-svn: 122454
-
Benjamin Kramer authored
llvm-svn: 122453
-
Douglas Gregor authored
single routine. Extend that routine to handle consistency checking for template argument packs, so that we can compare the deduced packs for template parameter packs across different pack expansions. llvm-svn: 122452
-
Benjamin Kramer authored
int test(unsigned long a, unsigned long b) { return -(a < b); } compiles to _test: ## @test cmpq %rsi, %rdi ## encoding: [0x48,0x39,0xf7] sbbl %eax, %eax ## encoding: [0x19,0xc0] ret ## encoding: [0xc3] instead of _test: ## @test xorl %ecx, %ecx ## encoding: [0x31,0xc9] cmpq %rsi, %rdi ## encoding: [0x48,0x39,0xf7] movl $-1, %eax ## encoding: [0xb8,0xff,0xff,0xff,0xff] cmovael %ecx, %eax ## encoding: [0x0f,0x43,0xc1] ret ## encoding: [0xc3] llvm-svn: 122451
-
- Dec 22, 2010
-
-
Johnny Chen authored
llvm-svn: 122450
-
Daniel Dunbar authored
llvm-svn: 122449
-
Rafael Espindola authored
fixed. llvm-svn: 122448
-
Dan Gohman authored
llvm-svn: 122447
-
Rafael Espindola authored
if we have a lame assembler. llvm-svn: 122446
-
Jakob Stoklund Olesen authored
pick the victim with the lowest total spill weight. llvm-svn: 122445
-
Jakob Stoklund Olesen authored
llvm-svn: 122444
-
Rafael Espindola authored
better name and matches what is used in the MachO writer. llvm-svn: 122443
-
Argyrios Kyrtzidis authored
llvm-svn: 122442
-
Daniel Dunbar authored
llvm-svn: 122441
-
Douglas Gregor authored
pattern is a template argument, which involves repeatedly deducing template arguments using the pattern of the pack expansion, then bundling the resulting deductions into an argument pack. We can now handle a variety of simple list-handling metaprograms using variadic templates. See, e.g., the new "count" metaprogram. llvm-svn: 122439
-
Rafael Espindola authored
llvm-svn: 122438
-
Argyrios Kyrtzidis authored
llvm-svn: 122436
-
Johnny Chen authored
and run the "process continue" command, use the SBProcess.Continue() API. llvm-svn: 122434
-
Argyrios Kyrtzidis authored
llvm-svn: 122433
-
Argyrios Kyrtzidis authored
llvm-svn: 122432
-
Argyrios Kyrtzidis authored
to avoid cyclic dependency between the libraries and fix the linux build. llvm-svn: 122431
-
Fariborz Jahanian authored
if property-dot expression is decidedly an rvalue. // rdar://8155806. llvm-svn: 122430
-
Johnny Chen authored
NULL, instead of registering a NULL listener and to crash later. llvm-svn: 122429
-
Johnny Chen authored
llvm-svn: 122428
-
Rafael Espindola authored
llvm-svn: 122427
-
Douglas Gregor authored
dependent template specialization type, the number of template arguments need not match precisely. Rather than checking the number of arguments eagerly (which does not consider argument packs), let the deduction routine for template argument lists cope with too many/too few arguments. llvm-svn: 122425
-
Argyrios Kyrtzidis authored
llvm-svn: 122424
-
Argyrios Kyrtzidis authored
llvm-svn: 122423
-
Argyrios Kyrtzidis authored
[analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own library, libclangGRCheckers llvm-svn: 122422
-
Argyrios Kyrtzidis authored
llvm-svn: 122421
-
Argyrios Kyrtzidis authored
llvm-svn: 122420
-
Matt Beaumont-Gay authored
llvm-svn: 122419
-
Douglas Gregor authored
deduction. Unify all of the looping over template arguments for deduction purposes into a single place, where argument pack expansion occurs; this is also the hook for deducing from pack expansions, which itself is not yet implemented. For now, at least we can handle a basic "count" metafunction written with variadics. See the new test for the formulation that works. llvm-svn: 122418
-
Duncan Sands authored
the original instruction, half the cases were missed (making it not wrong but suboptimal). Also correct a typo (A <-> B) in the second chunk. llvm-svn: 122414
-
Duncan Sands authored
llvm-svn: 122413
-
Daniel Dunbar authored
esp. important given that the LOCAL_SECTDIFF enumeration got redefined. llvm-svn: 122412
-
Daniel Dunbar authored
MC/Mach-O/ARM: Clone off an ARM version of RecordScatteredRelocation until I figure out how it is supposed to work. llvm-svn: 122410
-