- Dec 19, 2012
-
-
Richard Smith authored
copy-list-initialization (and doesn't add an additional copy step): Fill in the ListInitialization bit when creating a CXXConstructExpr. Use it when instantiating initializers in order to correctly handle instantiation of copy-list-initialization. Teach TreeTransform that function arguments are initializations, and so need this special treatment too. Finally, remove some hacks which were working around SubstInitializer's shortcomings. llvm-svn: 170489
-
Ted Kremenek authored
This is plumbing needed for later functionality changes. llvm-svn: 170488
-
Ted Kremenek authored
llvm-svn: 170487
-
Shuxin Yang authored
llvm-svn: 170486
-
Fariborz Jahanian authored
llvm-svn: 170485
-
NAKAMURA Takumi authored
test/Index/preamble_macro_template.cpp: Suppress this probably due to Lit/win32 issue. Investigating. llvm-svn: 170484
-
Michael J. Spencer authored
llvm-svn: 170483
-
David Blaikie authored
Change DeclContextLookup(Const)Result to (Mutable)ArrayRef<NamedDecl*>, as per review discussion in r170365 This does limit these typedefs to being sequences, but no current usage requires them to be contiguous (we could expand this to a more general iterator pair range concept at some point). Also, it'd be nice if SmallVector were constructible directly from an ArrayRef but this is a bit tricky since ArrayRef depends on SmallVectorBaseImpl for the inverse conversion. (& generalizing over all range-like things, while nice, would require some nontrivial SFINAE I haven't thought about yet) llvm-svn: 170482
-
Fariborz Jahanian authored
is created to 1000. llvm-svn: 170481
-
Eli Friedman authored
of assignment to a bool bitfield. PR14638. llvm-svn: 170480
-
Greg Clayton authored
Fixed incorrect documentation. llvm-svn: 170479
-
Fariborz Jahanian authored
llvm-svn: 170478
-
Kevin Enderby authored
instructions in the assembly code variant if one exists. The intended use for this is so tools like lldb and darwin's otool(1) can be switched to print Intel-flavored disassembly. I discussed extensively this API with Jim Grosbach and we feel while it may not be fully general, in reality there is only one syntax for each assembly with the exception of X86 which has exactly two for historical reasons. rdar://10989182 llvm-svn: 170477
-
Greg Clayton authored
Don't read the SP when getting argument values from registers in case the SP isn't available. We don't want the availability of SP to limit when we get get arguments from registers. llvm-svn: 170476
-
Jakob Stoklund Olesen authored
The bundle flags are now maintained by the slightly higher-level functions bundleWithPred() / bundleWithSucc() which enforce consistent bundle flags between neighboring instructions. See also MIBundleBuilder for an even higher-level approach to building bundles. llvm-svn: 170475
-
Eli Friedman authored
against itself. PR14489. llvm-svn: 170474
-
Jakob Stoklund Olesen authored
The bundle_iterator::operator++ function now doesn't need to dig out the basic block and check against end(). It can use the isBundledWithSucc() flag to find the last bundled instruction safely. Similarly, MachineInstr::isBundled() no longer needs to look at iterators etc. It only has to look at flags. llvm-svn: 170473
-
Nadav Rotem authored
llvm-svn: 170472
-
rdar://12801297Shuxin Yang authored
InstCombine for unsafe floating-point add/sub. llvm-svn: 170471
-
Nadav Rotem authored
Enable the loop vectorizer in clang and not in the pass manager, so that we can disable it in clang. llvm-svn: 170470
-
Nadav Rotem authored
llvm-svn: 170469
-
Ted Kremenek authored
Have clang_getSpellingLocation() use the same logic as DiagnosticRenderer for plowing through macros. This fixes a subtle bug reported in <rdar://problem/12584554> where a double-nested macro could lead to an incorrect fixit location with live issues. This fix also uncovers a bunch of subtle bugs in our indexer test cases which are now fixed (mostly around source ranges for attributes). llvm-svn: 170468
-
Fariborz Jahanian authored
use clang's formatter. Currently, formatter is used to format declaration tags for xml comments. Since formatter is in flux and its change will break several of the clang comment tests, only a single tests is formatted using this facility. Doug has reviewed and approved it for check-in. llvm-svn: 170467
-
Douglas Gregor authored
llvm-svn: 170466
-
Jakob Stoklund Olesen authored
Now that the bundle flag aware APIs are all in place, it is possible to continuously verify the flag consistency. llvm-svn: 170465
-
- Dec 18, 2012
-
-
Jakub Staszak authored
AVX2 before AVX. llvm-svn: 170464
-
Jakob Stoklund Olesen authored
The new bidirectional bundle flags are redundant, so inadvertent bundle tearing can be detected in the machine code verifier. llvm-svn: 170463
-
Quentin Colombet authored
To not over constrain the scheduler for ARM in thumb mode, some optimizations for code size reduction, specific to ARM thumb, are blocked when they add a dependency (like write after read dependency). Disables this check when code size is the priority, i.e., code is compiled with -Oz. llvm-svn: 170462
-
Eli Bendersky authored
llvm-svn: 170461
-
Jakob Stoklund Olesen authored
The bundle-related MI flags need to be kept in sync with the neighboring instructions. Don't allow the bulk flag-setting setFlags() function to change them. Also don't copy MI flags when cloning an instruction. The clone's bundle flags will be set when it is explicitly inserted into a bundle. llvm-svn: 170459
-
Bill Wendling authored
llvm-svn: 170458
-
Daniel Jasper authored
We used to format initializers like this (with a sort of hacky implementation): Constructor() : Val1(A), Val2(B) { and now format like this (with a somewhat better solution): Constructor() : Val1(A), Val2(B) { assuming this would not fit on a single line. Also added tests. As a side effect we now first analyze whether an UnwrappedLine needs to be split at all. If not, not splitting it is the best solution by definition. As this should be a very common case in normal code, not exploring the entire solution space can provide significant speedup. llvm-svn: 170457
-
Jakob Stoklund Olesen authored
Remove the instr_iterator versions of the splice() functions. It doesn't seem useful to be able to splice sequences of instructions that don't consist of full bundles. The normal splice functions that take MBB::iterator arguments are not changed, and they can move whole bundles around without any problems. llvm-svn: 170456
-
Meador Inge authored
PR 14529 was opened because neither Clang or LLVM was expanding calls to creal* or cimag* into instructions that just load the respective complex field. After some discussion, it was not considered realistic to do this in LLVM because of the platform specific way complex types are expanded. Thus a way to solve this in Clang was pursued. GCC does a similar expansion. This patch adds the feature to Clang by making the creal* and cimag* functions library builtins and modifying the builtin code generator to look for the new builtin types. llvm-svn: 170455
-
Andrew Trick authored
llvm-svn: 170454
-
Andrew Trick authored
llvm-svn: 170453
-
Andrew Trick authored
llvm-svn: 170452
-
Andrew Trick authored
llvm-svn: 170451
-
Andrew Trick authored
llvm-svn: 170450
-
Andrew Trick authored
llvm-svn: 170449
-