summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
* Move methods out-of-line.Bill Wendling2012-10-051-198/+81
| | | | | | | | | The internal representation of the Attributes class will be opaque. All of the query methods will need to query the opaque class. Therefore, these methods need to be out-of-line. No functionality change intended. llvm-svn: 165305
* tblgen: Use appropriate LLVM-style RTTI functions.Sean Silva2012-10-051-5/+5
| | | | | | | Use isa<> or cast<> when semantically that is what is happening. Also some trivial "style" cleanups at fix sites. llvm-svn: 165292
* tblgen: Replace uses of dynamic_cast<XXXRecTy> with dyn_cast<>.Sean Silva2012-10-051-5/+5
| | | | | | | | This is a mechanical change of dynamic_cast<> to dyn_cast<>. A number of these uses are actually more like isa<> or cast<>, and will be changed to the semanticaly appropriate one in a future patch. llvm-svn: 165291
* tblgen: Put dyn_cast<> infrastructure in place for RecTy hierarchy.Sean Silva2012-10-051-8/+62
| | | | llvm-svn: 165290
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-051-4/+3
| | | | | | PR14029, LLVM part. llvm-svn: 165288
* Rename the Target specific passes in the DataLayout class to be Target agnostic.Micah Villmow2012-10-042-35/+37
| | | | llvm-svn: 165270
* Resubmit the copying of TargetData to DataLayout without any changes to the ↵Micah Villmow2012-10-041-0/+363
| | | | | | files, this should fix the problems and the changes to rename to DataLayout will come next. llvm-svn: 165262
* This patch corrects commit 165126 by using an integer bit width instead of Preston Gurd2012-10-042-11/+11
| | | | | | | | a pointer to a type, in order to remove the uses of getGlobalContext(). Patch by Tyler Nowicki. llvm-svn: 165255
* Backing out my changes, something screwed up from my patches, starting over.Micah Villmow2012-10-041-363/+0
| | | | llvm-svn: 165253
* Create the DataLayout class, as a direct copy of TargetData.Micah Villmow2012-10-041-0/+363
| | | | llvm-svn: 165249
* Accidently checked in the files, only wanted to copy them.Micah Villmow2012-10-041-363/+0
| | | | llvm-svn: 165244
* (no commit message)Micah Villmow2012-10-041-0/+363
| | | | llvm-svn: 165242
* Fix doxygen comment to match parameters' names.Jakub Staszak2012-10-041-1/+1
| | | | llvm-svn: 165239
* Switch MachineTraceMetrics to the new TargetSchedModel interface.Jakob Stoklund Olesen2012-10-041-0/+1
| | | | llvm-svn: 165235
* Hoist some grossly duplicated code from the COFF/ELF/MachO streamers into ↵Benjamin Kramer2012-10-041-0/+7
| | | | | | MCObjectStreamer. llvm-svn: 165225
* Fix wrong name in comment.Duncan Sands2012-10-041-2/+2
| | | | llvm-svn: 165224
* Add method to query for NoCapture attribute.Bill Wendling2012-10-042-2/+7
| | | | llvm-svn: 165212
* Use attribute query methods.Bill Wendling2012-10-041-3/+3
| | | | llvm-svn: 165210
* Add method to query for 'NoAlias' attribute on call/invoke instructions.Bill Wendling2012-10-042-0/+5
| | | | llvm-svn: 165208
* Added instregex support to TableGen subtarget emitter.Andrew Trick2012-10-031-2/+11
| | | | | | | | This allows the processor-specific machine model to override selected base opcodes without any fanciness. e.g. InstRW<[CoreXWriteVANDP], (instregex "VANDP")>. llvm-svn: 165180
* tblgen: Remove last traces of old TableGenMain API.Sean Silva2012-10-032-40/+0
| | | | llvm-svn: 165168
* tblgen: Put new TableGenMain API in place.Sean Silva2012-10-031-0/+8
| | | | | | | | In order to avoid rev-lock with Clang when moving to the new API, also preserve the current API temporarily and insert a shim to implement the new API in terms of the old. llvm-svn: 165165
* Add function to return return attributes.Bill Wendling2012-10-031-0/+6
| | | | llvm-svn: 165164
* No need to call functions which do the same thing as the default.Bill Wendling2012-10-031-4/+0
| | | | llvm-svn: 165135
* Remove assert that's too restrictive.Bill Wendling2012-10-031-1/+4
| | | | llvm-svn: 165134
* Add methods which query for the specific attribute instead of using theBill Wendling2012-10-032-0/+36
| | | | | | enums. This allows for better encapsulation of the Attributes class. llvm-svn: 165132
* Revert 165051-165049 while looking into the foreach.m failure inEric Christopher2012-10-031-2/+7
| | | | | | more detail. llvm-svn: 165099
* Remove unused function that used to get itineraries from SubTargetFeatures. ↵Craig Topper2012-10-031-4/+0
| | | | | | This is done from MCSubTargetInfo these days. llvm-svn: 165092
* Third try at fixing this. ;] Go back to using std::remove_if, which hasChandler Carruth2012-10-031-8/+28
| | | | | | | | | | most of the behavior we want, but wrap the predicate in one which erases elements from the set if they pass the predicate. Oh what I wouldn't give for a lambda here. Let me know if the predicate wrapping is too much magic. ;] llvm-svn: 165076
* Switch the SetVector::remove_if implementation to use partition whichChandler Carruth2012-10-031-2/+3
| | | | | | | | | | | | | | preserves the values of the relocated entries, unlikely remove_if. This allows walking them and erasing them. Also flesh out the predicate we are using for this to support the various constraints actually imposed on a UnaryPredicate -- without this we can't compose it with std::not1. Thanks to Sean Silva for the review here and noticing the issue with std::remove_if. llvm-svn: 165073
* Revert 165057, per Jim's request. This requires further discussion.Chad Rosier2012-10-021-7/+0
| | | | llvm-svn: 165069
* Teach the new SROA to handle cases where an alloca that has already beenChandler Carruth2012-10-021-0/+26
| | | | | | | | | | | | | | | | scheduled for processing on the worklist eventually gets deleted while we are processing another alloca, fixing the original test case in PR13990. To facilitate this, add a remove_if helper to the SetVector abstraction. It's not easy to use the standard abstractions for this because of the specifics of SetVectors types and implementation. Finally, a nice small test case is included. Thanks to Benjamin for the fantastic reduced test case here! All I had to do was delete some empty basic blocks! llvm-svn: 165065
* Clean up these doxygen comments to follow the proposed new style. ThisChandler Carruth2012-10-021-21/+22
| | | | | | | also makes it more consistent with Clang and several passes' doxygen style. llvm-svn: 165064
* [ms-inline asm] Add basic support for wildcard MCParsedAsmOperands. This typeChad Rosier2012-10-021-0/+7
| | | | | | | | | | | | | of operand is specific to MS-style inline assembly and should not be generated when parsing normal assembly. The purpose of the wildcard operands are to allow the AsmParser to match multiple instructions (i.e., MCInsts) to a given ms-style asm statement. For the time being the matcher just returns the first match. This patch only implements wildcard matches for memory operands. Support for register wildcards will be added in the near future. llvm-svn: 165057
* Clean-up of memory buffer and object ownership model in MCJITAndrew Kaylor2012-10-023-3/+148
| | | | llvm-svn: 165053
* Remove the SavePoint infrastructure from fast isel, replaceEric Christopher2012-10-021-7/+2
| | | | | | | with just an insert point from the MachineBasicBlock and let the location be updated as we access it. llvm-svn: 165049
* Support for generating ELF objects on Windows.Andrew Kaylor2012-10-021-1/+2
| | | | | | This adds 'elf' as a recognized target triple environment value and overrides the default generated object format on Windows platforms if that value is present. This patch also enables MCJIT tests on Windows using the new environment value. llvm-svn: 165030
* [ms-inline asm] Add the convertToMapAndConstraints() function that is used toChad Rosier2012-10-011-7/+6
| | | | | | | | | | | map constraints and MCInst operands to inline asm operands. This replaces the getMCInstOperandNum() function. The logic to determine the constraints are not in place, so we still default to a register constraint (i.e., "r"). Also, we no longer build the MCInst but rather return just the opcode to get the MCInstrDesc. llvm-svn: 164979
* MachO: direct-to-object attribute for data-in-code markers.Jim Grosbach2012-10-011-0/+7
| | | | | | | | | | The target backend can support data-in-code load commands even when the assembler doesn't, or vice-versa. Allow targets to opt-in for direct-to-object. PR13973. llvm-svn: 164974
* [ms-inline asm] Expose the getReg() function in the base class.Chad Rosier2012-10-011-0/+2
| | | | llvm-svn: 164969
* Add in support for SPIR to LLVM core. This adds a new target and two new ↵Micah Villmow2012-10-012-2/+21
| | | | | | calling conventions. llvm-svn: 164948
* Fix PR13899Michael Liao2012-10-011-0/+2
| | | | | | | | | - Update maximal stack alignment when stack arguments are prepared before a call. - Test cases are enhanced to show it's not a Win32 specific issue but a generic one. llvm-svn: 164946
* Provide a shortcut for MCObjectStreamer when emitting fills.Benjamin Kramer2012-10-011-0/+2
| | | | | | | Reduces runtime of i386-large-relocations.s by 10x in Release builds, even more in Debug+Asserts builds. llvm-svn: 164945
* TargetData: s/uint32_t/unsigned/ per Kuba's request.Benjamin Kramer2012-10-011-4/+4
| | | | llvm-svn: 164935
* Add LLVM support for Swift.Bob Wilson2012-09-291-1/+4
| | | | llvm-svn: 164899
* Shrink TargetAlignElem a bit, we do a lot of searches on them.Benjamin Kramer2012-09-291-4/+4
| | | | llvm-svn: 164897
* Remove more LLVM_DELETED_FUNCTIONs from destructors to fix -std=c++11 build ↵Craig Topper2012-09-291-3/+3
| | | | | | on gcc 4.7. llvm-svn: 164880
* Remove unused methods.Bill Wendling2012-09-281-7/+1
| | | | llvm-svn: 164848
* Removing dependency on third party library for Intel JIT event support.Andrew Kaylor2012-09-281-102/+0
| | | | | | Patch committed on behalf of Kirill Uhanov llvm-svn: 164831
* PackedVector: Make the BitVector implementation configurable.Benjamin Kramer2012-09-281-13/+14
| | | | llvm-svn: 164826
OpenPOWER on IntegriCloud