Nate Begeman
e945172ba4
Remove this fixme, looking at the linker source, all targets pad to 4 bytes.
...
llvm-svn: 93835
2010-01-19 01:32:44 +00:00
Ted Kremenek
bb1110a7ae
Fix possible memory leak by using an OwningPtr.
...
llvm-svn: 93834
2010-01-19 01:29:05 +00:00
Chris Lattner
17fd6dd7af
remove extraneous ;
...
llvm-svn: 93833
2010-01-19 01:28:09 +00:00
Devang Patel
fe189e65d7
Revert accident check-in from r93165.
...
llvm-svn: 93832
2010-01-19 01:26:02 +00:00
Eric Christopher
84bd316bd6
Fix comment.
...
llvm-svn: 93831
2010-01-19 01:20:15 +00:00
Douglas Gregor
ad27e8b777
Introduce clang_getCursorReferenced, to get a cursor pointing at the
...
entity that a particular cursor references.
llvm-svn: 93830
2010-01-19 01:20:04 +00:00
Evan Cheng
6c0fb92c03
Fix r93758. Use isel patterns instead of c++ selection code to select rbit and make sure we pick different instructions for ARM vs. Thumb2.
...
llvm-svn: 93829
2010-01-19 00:44:15 +00:00
Evan Cheng
4668a3b935
Test case for r93758.
...
llvm-svn: 93824
2010-01-19 00:35:20 +00:00
Douglas Gregor
33c34ac19a
Implement clang_getCursorExtent, which provides a source range for the
...
cursor itself. In particular, for references this returns the source
range of the reference rather than the source range of the thing it
refers to.
Switch c-index-test from clang_getDeclExtent (which will eventually be
deprecated and removed) over to clang_getCursorExtent. The source
ranges we print for references now make sense; fix up the tests
appropriately.
llvm-svn: 93823
2010-01-19 00:34:46 +00:00
Devang Patel
757daca99c
Use llvm::Function name as the linkage name, but strip off leading '01' from display name.
...
llvm-svn: 93822
2010-01-19 00:25:12 +00:00
Dale Johannesen
27d71d2d3a
Reverting.
...
llvm-svn: 93819
2010-01-19 00:12:05 +00:00
Dale Johannesen
a3db6ef9a2
Revert 93811 per request.
...
llvm-svn: 93818
2010-01-19 00:10:52 +00:00
Daniel Dunbar
d5f5236468
Add .mk for use by clang/Darwin.
...
llvm-svn: 93817
2010-01-19 00:01:22 +00:00
Daniel Dunbar
bdf248d13a
Allow UniversalArchs variable to be overridden on a per-config basis.
...
llvm-svn: 93816
2010-01-19 00:01:15 +00:00
Daniel Dunbar
4c43c2bc73
Split up switch.S and save_restore_d8_d15.S to follow one function per file convention.
...
llvm-svn: 93815
2010-01-19 00:01:10 +00:00
Devang Patel
889ce76f41
Refactor.
...
llvm-svn: 93814
2010-01-19 00:00:59 +00:00
Douglas Gregor
7ecd020cf2
Teach clang_getCursorLocation() to return the locations of references
...
rather than the locations that refer to.
llvm-svn: 93812
2010-01-18 23:41:10 +00:00
Dale Johannesen
0c90d43b70
Enable code to emit dbg.declare as DEBUG_VALUE
...
comments (fast isel, X86). This doesn't seem
to break any functionality, but will introduce
cases where -g affects the generated code. I'll
be fixing that.
llvm-svn: 93811
2010-01-18 23:34:55 +00:00
Devang Patel
ddf6a57f3e
llvm::Function name is the linkage name. If it has a '01' as a prefix then probably there is a reason.
...
llvm-svn: 93808
2010-01-18 23:27:28 +00:00
Ted Kremenek
7161fc1e2f
Tweak USR output for ObjC categories.
...
llvm-svn: 93805
2010-01-18 23:25:32 +00:00
John McCall
62e2066792
Move AccessSpecifier into the new Specifiers.h; fixes the layering violations
...
inherent in, well, pretty much every use of AccessSpecifier.
llvm-svn: 93804
2010-01-18 23:21:37 +00:00
Fariborz Jahanian
42ffdb32fb
Allow conversion of pointer to an objective-c pointer to
...
a similar pointer. Fixes radar 7552179.
llvm-svn: 93803
2010-01-18 22:59:22 +00:00
Victor Hernandez
06828f025d
Add comment that MDNode::getFunction() is not to be used by performance-critical code (currently only used by AsmWriter)
...
llvm-svn: 93802
2010-01-18 22:55:08 +00:00
Douglas Gregor
3338c1f5d2
Now that a reasonable deprecation cycle has passed, kill
...
clang_getCursorLine(), clang_getCursorColumn(),
clang_getCursorSource(), and clang_getCursorSourceFile() outright.
llvm-svn: 93801
2010-01-18 22:48:04 +00:00
Douglas Gregor
66a58819d1
Introduce clang_getCursorLocation(), which supercedes
...
clang_getCursorLine(), clang_getCursorColumn(),
clang_getCursorSource(), and clang_getCursorSourceFile(). Mark those 4
functions as deprecated and stop using them ourselves.
llvm-svn: 93800
2010-01-18 22:46:11 +00:00
Ted Kremenek
80de67b0cf
Refactor USR generation for TagDecls into a common method.
...
llvm-svn: 93799
2010-01-18 22:42:20 +00:00
Eli Friedman
eb0c52f194
Make opt -O3 act more like clang -O3 etc., by making the inlining thresholds
...
match.
llvm-svn: 93798
2010-01-18 22:38:31 +00:00
Eli Friedman
9ed49c5c8f
Add some potentially interesting transformations to README.
...
llvm-svn: 93797
2010-01-18 22:36:59 +00:00
Bill Wendling
c592725fbb
- Add getLSDAEncoding to the PowerPC backend.
...
- Greatly improve the comments to the getLSDAEncoding method.
llvm-svn: 93796
2010-01-18 22:36:35 +00:00
Chris Lattner
87d0208c41
allow the HandlerComment callback to push tokens into the
...
preprocessor. This could be used by an OpenMP implementation
or something. Patch by Abramo Bagnara!
llvm-svn: 93795
2010-01-18 22:35:47 +00:00
Chris Lattner
f406b2402d
simplify the code for skipping in a #if 0 block. The CurLexer
...
pointer is always non-null because the PTH case exits earlier
in the method.
llvm-svn: 93794
2010-01-18 22:33:01 +00:00
Chris Lattner
6b4f73ea94
make llvm-config more portable to windows versions of perl,
...
patch by Michael Beck!
llvm-svn: 93793
2010-01-18 22:27:43 +00:00
Daniel Dunbar
f665b32a70
Add a VISIBILITY_HIDDEN option, which can be used to make all compiler-rt function definitions hidden/private extern.
...
llvm-svn: 93790
2010-01-18 22:19:34 +00:00
Daniel Dunbar
64a198d060
Unbreak symbol mangling in .s files, at least for Darwin/Linux.
...
llvm-svn: 93789
2010-01-18 22:19:25 +00:00
Daniel Dunbar
ef89858e47
Add DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED for use in .S files -- restFP and saveFP don't get USER_LABEL_PREFIX prepended for some reason.
...
llvm-svn: 93788
2010-01-18 22:19:20 +00:00
Chris Lattner
43f2fa6201
my instcombine transformations to make extension elimination more
...
aggressive changed the canonical form from sext(trunc(x)) to ashr(lshr(x)),
make sure to transform a couple more things into that canonical form,
and catch a case where we missed turning zext/shl/ashr into a single sext.
llvm-svn: 93787
2010-01-18 22:19:16 +00:00
Sean Callanan
0b72fd5ccc
Added a newline at the end of SMLoc.h
...
llvm-svn: 93784
2010-01-18 22:16:54 +00:00
Douglas Gregor
49c4baf430
Clean up the CIndex API slightly.
...
Renamed CXSourceFileLine to CXSourceLocation and added a CXFile, to
better match Clang's SourceLocation. Teach clang_getDeclExtent to fill
in the CXFile properly.
Renamed CXSourceExtent to CXSourceRange, to better match Clang's
SourceLocation.
llvm-svn: 93783
2010-01-18 22:13:09 +00:00
Sean Callanan
85b27528fc
Changed the comment in the file header for SMLoc
...
to something more accurate.
llvm-svn: 93782
2010-01-18 22:11:34 +00:00
Eric Christopher
7eb6e0ffd6
Have FastISel handle llvm.trap().
...
llvm-svn: 93781
2010-01-18 22:11:29 +00:00
Sean Callanan
2802d2017c
Split SMLoc out in its own header so that it can
...
be used independently of SourceMgr.
llvm-svn: 93780
2010-01-18 22:07:51 +00:00
Ted Kremenek
0ea923c550
Explicitly not handle ObjCForwardProtocolDecl in GetCursorKind().
...
llvm-svn: 93779
2010-01-18 22:07:45 +00:00
Ted Kremenek
a6980af2d2
Tweak USR generation to handle anonymous bitfields.
...
llvm-svn: 93778
2010-01-18 22:02:49 +00:00
Jim Grosbach
e7b52f2e87
Minor cleanup for jump table printing. Need a reference, not a pointer, for
...
printing via <<. Otherwise we just print the pointer value.
llvm-svn: 93777
2010-01-18 22:01:39 +00:00
Chris Lattner
2b03aaafbf
filecheckize this.
...
llvm-svn: 93776
2010-01-18 22:00:46 +00:00
Chris Lattner
51d64e2a10
filecheckize
...
llvm-svn: 93775
2010-01-18 21:58:32 +00:00
Chris Lattner
48b753ef9f
remove a redundant test, filecheckize another.
...
llvm-svn: 93774
2010-01-18 21:55:43 +00:00
Evan Cheng
88b65bc835
Canonicalize -1 - x to ~x.
...
Instcombine does this but apparently there are situations where this pattern will escape the optimizer and / or created by isel. Here is a case that's seen in JavaScriptCore:
%t1 = sub i32 0, %a
%t2 = add i32 %t1, -1
The dag combiner pattern: ((c1-A)+c2) -> (c1+c2)-A
will fold it to -1 - %a.
llvm-svn: 93773
2010-01-18 21:38:44 +00:00
Chris Lattner
5a52727ad0
update mkpatch, patch by Garrison Venn!
...
llvm-svn: 93771
2010-01-18 21:09:05 +00:00
Daniel Dunbar
c02aaa7812
Add missing newline.
...
llvm-svn: 93767
2010-01-18 20:55:52 +00:00