Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify Mac runtime selection - it's the factory function's job to select ↵ | David Chisnall | 2011-03-22 | 3 | -16/+4 |
| | | | | | | which class to produce, not CodeGenModule's. llvm-svn: 128109 | ||||
* | Make the property accessor functions that take a ptrdiff_t actually take a ↵ | David Chisnall | 2011-03-22 | 2 | -4/+6 |
| | | | | | | ptrdiff_t instead of a long (should have no impact on any sane platforms, but win64 is not sane). llvm-svn: 128104 | ||||
* | Make the ivar offset always be a ptrdiff_t, because stuff in CGObjC.cpp ↵ | David Chisnall | 2011-03-22 | 1 | -3/+5 |
| | | | | | | expects this. Actually, it expects a long, but that's a bug that will be fixed in the next commit... llvm-svn: 128102 | ||||
* | Fix typo in comment. | Nick Lewycky | 2011-03-22 | 1 | -1/+1 |
| | | | | llvm-svn: 128088 | ||||
* | Frontend: Add a more explicit -backend-option flag for passing backend command | Daniel Dunbar | 2011-03-22 | 1 | -0/+2 |
| | | | | | | | | line options, instead of leveraging the blanket -mllvm option. - This allows using the frontend itself without requiring the backend have those options available (i.e., if the target wasn't built). llvm-svn: 128087 | ||||
* | The emission of an Objective-C++'s class .cxx_destruct method should be | John McCall | 2011-03-22 | 2 | -55/+123 |
| | | | | | | | conditioned on whether it has any destructible ivars, not on whether it has any non-trivial class-object initializers. llvm-svn: 128074 | ||||
* | Convert Offset variable in GetAddressOfDirectBaseInCompleteClass() to | Ken Dyck | 2011-03-22 | 1 | -5/+5 |
| | | | | | | CharUnits. No change in functionality intended. llvm-svn: 128060 | ||||
* | Change return value of ComputeNonVirtualBaseClassOffset() to CharUnits. No | Ken Dyck | 2011-03-22 | 1 | -13/+13 |
| | | | | | | change in functionality intended. llvm-svn: 128050 | ||||
* | Eliminate some literal '8's in FillInNullDataMemberPointers() by switching | Ken Dyck | 2011-03-22 | 1 | -5/+6 |
| | | | | | | to CharUnits. No change in functionality intended. llvm-svn: 128047 | ||||
* | Fix Objective-C++ exceptions (GNU runtime). | David Chisnall | 2011-03-20 | 4 | -3/+205 |
| | | | | llvm-svn: 127980 | ||||
* | __cxa_atexit does not throw. | Anders Carlsson | 2011-03-20 | 1 | -0/+2 |
| | | | | llvm-svn: 127977 | ||||
* | Use CharUnits's new increment operator. No change in functionality intended. | Ken Dyck | 2011-03-19 | 1 | -2/+2 |
| | | | | llvm-svn: 127938 | ||||
* | Replace literal '8's with CharWidth in AppendBitField. No change in | Ken Dyck | 2011-03-19 | 1 | -13/+15 |
| | | | | | | functionality intended. llvm-svn: 127927 | ||||
* | Add support for language-specific address spaces. On top of that, | Peter Collingbourne | 2011-03-18 | 7 | -14/+22 |
| | | | | | | | | | add support for the OpenCL __private, __local, __constant and __global address spaces, as well as the __read_only, _read_write and __write_only image access specifiers. Patch originally by ARM; language-specific address space support by myself. llvm-svn: 127915 | ||||
* | The Darwin kernel does not provide useful guard variable support. | John McCall | 2011-03-18 | 3 | -0/+16 |
| | | | | | | | | Issue this as an IR-gen error; it's not really worthwhile doing this "right", i.e. in Sema, because IR gen knows a lot of tricks beyond what the constant evaluator knows. llvm-svn: 127854 | ||||
* | Convert alignment values to CharUnits. No change in functionality intended. | Ken Dyck | 2011-03-18 | 1 | -18/+18 |
| | | | | llvm-svn: 127848 | ||||
* | Convert getSizeInBytes() to getSizeInChars(), which returns its result in | Ken Dyck | 2011-03-18 | 1 | -9/+10 |
| | | | | | | CharUnits. No change in functionality intended. llvm-svn: 127846 | ||||
* | Convert variables to CharUnits in ConvertStructToPacked(). No change in | Ken Dyck | 2011-03-18 | 1 | -12/+12 |
| | | | | | | functionality intended. llvm-svn: 127844 | ||||
* | Remove code that was intentionally generating bad code on the GNU runtime ↵ | David Chisnall | 2011-03-17 | 1 | -1/+1 |
| | | | | | | for no reason (failing to emit .cxx_constructor / .cxx_destructor methods). llvm-svn: 127806 | ||||
* | Convert NextOffsetInBytes to CharUnits and rename to NextOffsetInChars. No | Ken Dyck | 2011-03-17 | 1 | -36/+40 |
| | | | | | | change in functionality intended. llvm-svn: 127787 | ||||
* | Politely inform GCC that we will never fall off the end of that switch. | Matt Beaumont-Gay | 2011-03-17 | 1 | -0/+1 |
| | | | | llvm-svn: 127783 | ||||
* | PR9494: Get rid of bitcast which was both unnecessary and written incorrectly. | Eli Friedman | 2011-03-16 | 1 | -3/+2 |
| | | | | llvm-svn: 127768 | ||||
* | Fix foreign exception handling (GNU runtime). | David Chisnall | 2011-03-16 | 1 | -6/+17 |
| | | | | llvm-svn: 127736 | ||||
* | Don't emit read barriers for reading __weak __block variables | John McCall | 2011-03-16 | 1 | -4/+2 |
| | | | | | | in non-GC mode. llvm-svn: 127725 | ||||
* | Reorganize the emission of (unfoldable) constant casts a bit, and | John McCall | 2011-03-15 | 1 | -36/+97 |
| | | | | | | | make sure that upcasts of member pointer types are covered as constants. Fixed rdar://problem/9130221 llvm-svn: 127702 | ||||
* | Reintroduce r127617: "Code generation for noexcept." with fixes. | Sebastian Redl | 2011-03-15 | 1 | -17/+25 |
| | | | | llvm-svn: 127685 | ||||
* | Introduce a CharUnits FieldOffsetInChars variable in AppendField() to | Ken Dyck | 2011-03-15 | 1 | -3/+7 |
| | | | | | | | | replace some uses of FieldOffsetInBytes. The remaining uses of FieldOffsetInBytes will be replaced once NextFieldOffsetInBytes is converted to CharUnits. No change in functionality intended. llvm-svn: 127641 | ||||
* | Revert r127617: "Code generation for noexcept." | Jakob Stoklund Olesen | 2011-03-15 | 1 | -25/+17 |
| | | | | | | The tests fail in a -Asserts build. llvm-svn: 127635 | ||||
* | Switch from internal to linker_private linkage, it is sufficient to please ↵ | Rafael Espindola | 2011-03-14 | 1 | -1/+1 |
| | | | | | | the new linker. llvm-svn: 127622 | ||||
* | Code generation for noexcept. | Sebastian Redl | 2011-03-14 | 1 | -17/+25 |
| | | | | llvm-svn: 127617 | ||||
* | __clear_cache() is varargs and people will occasionally write it without | Eric Christopher | 2011-03-14 | 1 | -4/+7 |
| | | | | | | | | | arguments. Process only the arguments that people write, but process all of them. Fixes rdar://8900346 llvm-svn: 127616 | ||||
* | Fix link of libxul with LTO and the linker in xcode4. It is not clear if this | Rafael Espindola | 2011-03-14 | 1 | -1/+4 |
| | | | | | | | is working around a bug in ld or if the new linker has a reasonable reason for wanting the string constant to be linker visible. llvm-svn: 127594 | ||||
* | Fix incorrect linkage specifiers for selectors. | David Chisnall | 2011-03-14 | 1 | -2/+2 |
| | | | | llvm-svn: 127580 | ||||
* | Instead of storing an ASTContext* in FunctionProtoTypes with computed ↵ | Sebastian Redl | 2011-03-13 | 2 | -2/+2 |
| | | | | | | noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall. llvm-svn: 127568 | ||||
* | Use CharUnits for argument passed to AppendPadding() from AppendBitField(). | Ken Dyck | 2011-03-12 | 1 | -5/+6 |
| | | | | | | No change in functionality intended. llvm-svn: 127538 | ||||
* | Propagate the new exception information to FunctionProtoType. | Sebastian Redl | 2011-03-12 | 3 | -6/+5 |
| | | | | | | | | Change the interface to expose the new information and deal with the enormous fallout. Introduce the new ExceptionSpecificationType value EST_DynamicNone to more easily deal with empty throw specifications. Update the tests for noexcept and fix the various bugs uncovered, such as lack of tentative parsing support. llvm-svn: 127537 | ||||
* | Change parameter to AppendPadding from bytes to CharUnits. No change in | Ken Dyck | 2011-03-11 | 1 | -11/+11 |
| | | | | | | functionality intended. llvm-svn: 127513 | ||||
* | Use a slightly more semantic interface for emitting call arguments. | John McCall | 2011-03-11 | 6 | -47/+40 |
| | | | | llvm-svn: 127494 | ||||
* | Add support for the OpenCL vec_step operator, by generalising and | Peter Collingbourne | 2011-03-11 | 1 | -4/+5 |
| | | | | | | | extending the existing support for sizeof and alignof. Original patch by Guy Benyei. llvm-svn: 127475 | ||||
* | Convert the RecordSize parameter of AppendTailPadding() to CharUnits to | Ken Dyck | 2011-03-11 | 1 | -8/+6 |
| | | | | | | | avoid converting to bits and back again. No change in functionality intended. llvm-svn: 127455 | ||||
* | lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on ↵ | NAKAMURA Takumi | 2011-03-10 | 1 | -2/+4 |
| | | | | | | Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang. llvm-svn: 127405 | ||||
* | Fixed InnerLocStart. | Abramo Bagnara | 2011-03-09 | 1 | -2/+2 |
| | | | | llvm-svn: 127330 | ||||
* | Remove a rather egregious use of getFunctionInfo. | John McCall | 2011-03-09 | 2 | -22/+13 |
| | | | | llvm-svn: 127324 | ||||
* | Fix three of the four places where I left breadcrumbs to avoid unnecessary | John McCall | 2011-03-09 | 3 | -55/+64 |
| | | | | | | recomputation. llvm-svn: 127322 | ||||
* | Tame this assert, hopefully fixing self-host. | John McCall | 2011-03-09 | 1 | -1/+20 |
| | | | | llvm-svn: 127319 | ||||
* | Use the "undergoes default argument promotion" bit on parameters to | John McCall | 2011-03-09 | 15 | -129/+151 |
| | | | | | | | | | | simplify the logic of initializing function parameters so that we don't need both a variable declaration and a type in FunctionArgList. This also means that we need to propagate the CGFunctionInfo down in a lot of places rather than recalculating it from the FAL. There's more we can do to eliminate redundancy here, and I've left FIXMEs behind to do it. llvm-svn: 127314 | ||||
* | Emit block capture initializers as if they were normal initializers for a local | John McCall | 2011-03-08 | 1 | -1/+3 |
| | | | | | | variable that just happens to be stored in a wierd place. llvm-svn: 127235 | ||||
* | Extract a function to emit an arbitrary expression as if it were the initializer | John McCall | 2011-03-08 | 2 | -54/+84 |
| | | | | | | for a local variable. llvm-svn: 127227 | ||||
* | Fixed source range for all DeclaratorDecl's. | Abramo Bagnara | 2011-03-08 | 2 | -4/+8 |
| | | | | llvm-svn: 127225 | ||||
* | When we adjust the inline ASM type, we need to take into account an early | Bill Wendling | 2011-03-07 | 1 | -1/+1 |
| | | | | | | | | clobber with the 'y' constraint. Otherwise, we get the wrong return type and an assert, because it created a '<1 x i64>' vector type instead of the x86_mmx type. llvm-svn: 127185 |