- Sep 12, 2008
-
-
Dan Gohman authored
with ConstantInt. This led to fixing a bug in TargetLowering.cpp using getValue instead of getAPIntValue. llvm-svn: 56159
-
Duncan Sands authored
I placed it just before GVN because that it is the pass most likely to benefit from it. Some quick and dirty testing confirms that this is a decent place for it. llvm-svn: 56144
-
Duncan Sands authored
when a readonly declaration is called, set a flag. This is faster and uses less memory. In theory it is less accurate, because before only those internal globals that were read by someone were being marked "Ref", but now all are. But in practice, thanks to other passes, all internal globals of the kind considered here will be both read and stored to: those only read will have been turned into constants, and those only stored to will have been deleted. llvm-svn: 56143
-
Ted Kremenek authored
llvm-svn: 56142
-
Douglas Gregor authored
Give string literals const element typesin C++, and cope with the deprecated C++ conversion from a string literal to a pointer-to-non-const-character llvm-svn: 56137
-
Dale Johannesen authored
safe in the presence of NaNs. llvm-svn: 56136
-
Daniel Dunbar authored
- Follow C99 behavior of using other operand type when one of operands is a null pointer constant. - Fix overenthusiastic devolving of any Objective-C types to id: o If either operand has an Objective-C object type then: - If both operands are interfaces and either operand can be assigned to the other, use that type as the composite type. - Otherwise, if either type is id, use id as the composite type. - Otherwise, warn about incompatible types and use id as the composite type. - Return handling of qualified idea to separate test following general pointer type checking. o Upgraded from old code to allow devolving to id (without warning, which matches GCC). - <rdar://problem/6212771> Add test case for issues fixed above, XFAIL though because it exposed a new issue in property handling. llvm-svn: 56135
-
Argyrios Kyrtzidis authored
Add comments about C++ clause 3.3.2p4 that mentions that the condition declaration should be local to an if/switch/while/for statement. llvm-svn: 56134
-
Dan Gohman authored
getelementptr indices, inserting an explicit cast if necessary. This helps expose the sign-extension operation to other optimizations. llvm-svn: 56133
-
Ted Kremenek authored
to an output file. This way users can both see the output of 'clang' as well as enable background logging of files that clang encounters problems on. llvm-svn: 56130
-
Dan Gohman authored
Patch by Nicolas Capens! llvm-svn: 56129
-
Arnold Schwaighofer authored
llvm-svn: 56127
-
- Sep 11, 2008
-
-
Jim Grosbach authored
llvm-svn: 56126
-
rdar://problem/6164367Ted Kremenek authored
scan-build now correctly processes path prefixes that contain multiple '+' characters or other regex control characters. llvm-svn: 56121
-
Arnold Schwaighofer authored
When tailcallopt is enabled all fastcc calls must have an aligned argument stack size. Add a test case. llvm-svn: 56119
-
Evan Cheng authored
Fix PR2748. Avoid coalescing physical register with virtual register which would create illegal extract_subreg. e.g. vr1024 = extract_subreg vr1025, 1 ... vr1024 = mov8rr AH If vr1024 is coalesced with AH, the extract_subreg is now illegal since AH does not have a super-reg whose sub-register 1 is AH. llvm-svn: 56118
-
Owen Anderson authored
llvm-svn: 56117
-
Duncan Sands authored
llvm-svn: 56116
-
Duncan Sands authored
(unless passed one via a parameter), even if they are IntrWriteMem. llvm-svn: 56115
-
Mon P Wang authored
llvm-svn: 56114
-
Dan Gohman authored
cases it was still getting lucky and detecting overflow but it was clearly incorrect. llvm-svn: 56113
-
Evan Cheng authored
llvm-svn: 56112
-
Ted Kremenek authored
This fixes: <rdar://problem/6164279> scan-build gives error when invoked without TERM variable llvm-svn: 56110
-
Ted Kremenek authored
llvm-svn: 56109
-
Evan Cheng authored
llvm-svn: 56108
-
Evan Cheng authored
llvm-svn: 56107
-
Jim Grosbach authored
by its first field, but TableGen doesn't actually enforce creating it that way. TableGen sorts the records that will be used to create it by the names of the records, not the Name field of those records. This patch corrects the sort to use the "Name" field of the record as the sort key. llvm-svn: 56106
-
Duncan Sands authored
variables. llvm-svn: 56105
-
rdar://problem/6210791Steve Naroff authored
Fix <rdar://problem/6210791> clang ObjC rewriter: @try / @catch block with no @finally does not call objc_exception_try_exit. Need a couple tweaks to RewriteObjCTryStmt(). Need to deal with implicit finally clauses (to make sure objc_exception_try_exit is called). Also fixed a related bug where we need to generate an implicit @catch else clause (to again make sure objc_exception_try_exit is called). llvm-svn: 56104
-
Douglas Gregor authored
llvm-svn: 56103
-
Anders Carlsson authored
llvm-svn: 56102
-
Anders Carlsson authored
llvm-svn: 56101
-
Anders Carlsson authored
llvm-svn: 56100
-
Evan Cheng authored
Change getSubReg semantics. It now returns zero if the specified register doesn't have a subreg of the specified index. llvm-svn: 56099
-
Evan Cheng authored
llvm-svn: 56097
-
Argyrios Kyrtzidis authored
llvm-svn: 56096
-
Argyrios Kyrtzidis authored
llvm-svn: 56095
-
Argyrios Kyrtzidis authored
llvm-svn: 56094
-
Argyrios Kyrtzidis authored
llvm-svn: 56093
-
Argyrios Kyrtzidis authored
llvm-svn: 56092
-