summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CodeGenerator.rst
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Fixing Sphinx warnings to unclog the buildbotRenato Golin2016-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | Lots of blocks had "llvm" or "nasm" syntax types but either weren't following the syntax, or the syntax has changed (and sphinx hasn't keep up) or the type doesn't even exist (nasm?). Other documents had :options: what were invalid. I only removed those that had warnings, and left the ones that didn't, in order to follow the principle of least surprise. This is like this for ages, but the buildbot is now failing on errors. It may take a while to upgrade the buildbot's sphinx, if that's even possible, but that shouldn't stop us from getting docs updates (which seem down for quite a while). Also, we're not losing any syntax highlight, since when it doesn't parse, it doesn't colour. Ie. those blocks are not being highlighted anyway. I'm trying to get all docs in one go, so that it's easy to revert later if we do fix, or at least easy to know what's to fix. llvm-svn: 276109
* [Docs][CodeGenerator] Don't specify the number of operands in BuildMIKrzysztof Parzyszek2016-06-291-16/+11
| | | | | | | | Patch by Visoiu Mistrih Francis. Differential Revision: http://reviews.llvm.org/D21819 llvm-svn: 274128
* Support/ELF: Add R_AMDGPU_GOTPCREL relocationTom Stellard2016-06-231-0/+4
| | | | | | | | | | | | | Summary: We will start generating this in a future patch. Reviewers: arsenm, kzhuravl, rafael, ruiu, tony-tye Subscribers: arsenm, llvm-commits, kzhuravl Differential Revision: http://reviews.llvm.org/D21482 llvm-svn: 273628
* [docs] Update AMDGPU relocation informationKonstantin Zhuravlyov2016-06-141-13/+14
| | | | | | | | | | | | | | | | | - Added new notation for specifying relocation calculation - Renamed: - R_AMDGPU_32_LOW -> R_AMDGPU_ABS32_LO - R_AMDGPU_32_HIGH -> R_AMDGPU_ABS32_HI - R_AMDGPU_64 -> R_AMDGPU_ABS64 - Added: - R_AMDGPU_REL32 - R_AMDGPU_REL64 - R_AMDGPU_ABS32 - Updated calculations for relative relocations Differential Revision: http://reviews.llvm.org/D21215 llvm-svn: 272684
* docs: Add AMDGPU relocation informationTom Stellard2016-06-101-0/+51
| | | | | | | | | | | | | | | | | | | | Summary: This documents the various relocation types that are supported by the Radeon Open Compute (ROC) runtime (which is essentially the dynamic linker for AMDGPU). Only R_AMDGPU_32 is not currently supported by the ROC runtime, but it will usually be resolved at link time by lld. Patch by: Konstantin Zhuravlyov Reviewers: kzhuravl, rafael Subscribers: rafael, arsenm, llvm-commits, kzhuravl Differential Revision: http://reviews.llvm.org/D20952 llvm-svn: 272352
* Remove bit-rotten CppBackend.James Y Knight2016-05-051-7/+5
| | | | | | | | | | | | | | | | | This backend was supposed to generate C++ code which will re-construct the LLVM IR passed as input. This seems to me to have very marginal usefulness in the first place. However, the code has never been updated to use IRBuilder, which makes its current value negative -- people who look at the output may be steered to use the *wrong* C++ APIs to construct IR. Furthermore, it's generated code that doesn't compile since at least 2013. Differential Revision: http://reviews.llvm.org/D19942 llvm-svn: 268631
* Add an address space for the X86 SS segment.David L Kreitzer2016-05-031-3/+3
| | | | | | | | Patch by Michael LeMay (michael.lemay@intel.com) Differential Revision: http://reviews.llvm.org/D17093 llvm-svn: 268431
* [docs] "Straightforward" is one word.Justin Lebar2016-03-141-1/+1
| | | | llvm-svn: 263480
* [docs] Fix typo in docs/CodeGenerator.rst.Justin Lebar2016-03-141-1/+1
| | | | llvm-svn: 263479
* Fixing a typo in docs/CodeGenerator.rstArtyom Skrobov2015-11-131-1/+1
| | | | llvm-svn: 253045
* [bpf] add documentation and instruction set descriptionAlexei Starovoitov2015-08-141-0/+197
| | | | llvm-svn: 245105
* [NFC] Minor editorial fixes to the CodeGen docs.Charlie Turner2015-07-021-2/+2
| | | | llvm-svn: 241249
* Fix grammar in documentation.Eric Christopher2015-02-191-3/+3
| | | | | | Patch by Ralph Campbell! llvm-svn: 229884
* SelectionDAG: add a -filter-view-dags option to llcMehdi Amini2015-01-141-1/+5
| | | | | | | | | This option takes the name of the basic block you want to visualize with -view-*-dags Differential Revision: http://reviews.llvm.org/D6948 llvm-svn: 225953
* [sphinx cleanup]Dan Liew2014-09-101-1/+1
| | | | | | Fix sphinx warning introduced by r217537 llvm-svn: 217541
* Fix docs reference to inexistent class.Nico Weber2014-09-101-2/+2
| | | | | | Patch sent via telegraph by TNorthover. Thanks! llvm-svn: 217537
* Add note to documentation about machine node chains.Matt Arsenault2014-09-021-1/+3
| | | | | | | | | | I've been assuming chain operands were always the first operand, since the documentation says this. I was confused about why they were missing after instruction selection. Apparently the convention changes to using the last operand for MachineSDNodes and I've never noticed before. llvm-svn: 216934
* [docs] Fix a mangled sentence.Sean Silva2014-07-011-1/+1
| | | | | | Fixes PR20169 llvm-svn: 212116
* [docs] Remove stray HTML tag.Sean Silva2014-07-011-1/+1
| | | | | | Fixes PR20167 llvm-svn: 212115
* Fix 'platform-specific' hyphenationsAlp Toker2014-06-301-1/+1
| | | | llvm-svn: 212056
* Fix strange typo in markup.Jay Foad2014-05-141-2/+2
| | | | llvm-svn: 208759
* Revert "[ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'"Reid Kleckner2014-05-091-4/+0
| | | | | | | | | | | | | | This reverts commit r200561. This calling convention was an attempt to match the MSVC C++ ABI for methods that return structures by value. This solution didn't scale, because it would have required splitting every CC available on Windows into two: one for methods and one for free functions. Now that we can put sret on the second arg (r208453), and Clang does that (r208458), revert this hack. llvm-svn: 208459
* [docs] Fix up some links to the preferred style.Sean Silva2014-04-081-1/+1
| | | | | | | | | | | | | :doc:`...` and :ref:`...` links help Sphinx keep track the dependencies between documents and ensure that they are not pointing to nowhere. Raw HTML links work just fine and are easier for people less familiar with reST/Sphinx. They are easy to change over to the :doc:/:ref: style after the fact so this is not a problem. This commit doesn't fix all of them. llvm-svn: 205792
* [docs] Fix some linksSean Silva2014-04-071-2/+2
| | | | | | | | The TableGen docs have changed structure Patch by Tay Ray Chuan! llvm-svn: 205744
* [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'Reid Kleckner2014-01-311-0/+4
| | | | | | | | | | | | | | | | | | | | MSVC always places the 'this' parameter for a method first. The implicit 'sret' pointer for methods always comes second. We already implement this for __thiscall by putting sret parameters on the stack, but __cdecl methods require putting both parameters on the stack in opposite order. Using a special calling convention allows frontends to keep the sret parameter first, which avoids breaking lots of assumptions in LLVM and Clang. Fixes PR15768 with the corresponding change in Clang. Reviewers: ributzka, majnemer Differential Revision: http://llvm-reviews.chandlerc.com/D2663 llvm-svn: 200561
* Docs: fix sign of division and increase equivocation on code generated.Tim Northover2014-01-131-5/+5
| | | | | | I should have been a politician. llvm-svn: 199092
* Add more documentation about the TargetStreamer interface.Rafael Espindola2013-10-161-0/+5
| | | | llvm-svn: 192796
* Add a paragraph about MCTargetStreamer.Rafael Espindola2013-10-091-0/+7
| | | | llvm-svn: 192265
* Fix a typo in the documentation. Thanks to Diana Vasile for the patchSylvestre Ledru2013-10-011-1/+1
| | | | llvm-svn: 191752
* Remove the mblaze backend from llvm.Rafael Espindola2013-07-251-9/+0
| | | | | | Approval in here http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-July/064169.html llvm-svn: 187145
* [SystemZ] Add disassembler supportRichard Sandiford2013-05-141-1/+1
| | | | llvm-svn: 181777
* Add SystemZ feats to CodeGenerator.rstRichard Sandiford2013-05-081-0/+9
| | | | llvm-svn: 181431
* [docs] Update Target Feature Matrix for the XCore backend.Richard Osborne2013-05-051-5/+5
| | | | | | | Disassembler support has recently been added. Fill in some other unknowns at the same time. llvm-svn: 181156
* Extend TableGen instruction selection matcher to improve handlingUlrich Weigand2013-03-191-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of complex instruction operands (e.g. address modes). Currently, if a Pat pattern creates an instruction that has a complex operand (i.e. one that consists of multiple sub-operands at the MI level), this operand must match a ComplexPattern DAG pattern with the correct number of output operands. This commit extends TableGen to alternatively allow match a complex operands against multiple separate operands at the DAG level. This allows using Pat patterns to match pre-increment nodes like pre_store (which must have separate operands at the DAG level) onto an instruction pattern that uses a multi-operand memory operand, like the following example on PowerPC (will be committed as a follow-on patch): def STWU : DForm_1<37, (outs ptr_rc:$ea_res), (ins GPRC:$rS, memri:$dst), "stwu $rS, $dst", LdStStoreUpd, []>, RegConstraint<"$dst.reg = $ea_res">, NoEncode<"$ea_res">; def : Pat<(pre_store GPRC:$rS, ptr_rc:$ptrreg, iaddroff:$ptroff), (STWU GPRC:$rS, iaddroff:$ptroff, ptr_rc:$ptrreg)>; Here, the pair of "ptroff" and "ptrreg" operands is matched onto the complex operand "dst" of class "memri" in the "STWU" instruction. Approved by Jakob Stoklund Olesen. llvm-svn: 177428
* Remove a mention of TargetInstrDescriptor, which no longer exists in the codeEli Bendersky2013-01-301-6/+4
| | | | llvm-svn: 173971
* Remove PTX->NVPTX in CodeGenerator document and update its text.Justin Holewinski2013-01-111-47/+36
| | | | llvm-svn: 172235
* Update CodeGenerator document to add a "Not Applicable" category to theJustin Holewinski2013-01-111-6/+10
| | | | | | Target Feature Matrix, and update the PTX column with this new category. llvm-svn: 172234
* docs: Fix long standing linking antipattern.Sean Silva2013-01-111-2/+0
| | | | | | | | | Before we learned about :doc:, we used :ref: and put a dummy link at the top of each page. Don't do that anymore. This fixes PR14891 as a special case. llvm-svn: 172162
* Documentation: convert ReleaseNotes.html to reST.Dmitri Gribenko2012-12-091-0/+2
| | | | | | Patch by Anthony Mykhailenko with small fixes by me. llvm-svn: 169714
* Documentation: convert WritingAnLLVMBackend.html to reSTDmitri Gribenko2012-12-011-0/+4
| | | | llvm-svn: 169087
* Documentation: formatting improvementsDmitri Gribenko2012-11-291-3/+3
| | | | llvm-svn: 168897
* docs: Fix reference to "bold" part of code example.Sean Silva2012-11-191-5/+6
| | | | | | | | | | | | | | | Fixes PR14380. The prose was referring to a "bold" part of the code example, where the boldness was lost in the transition from HTML. Unlike HTML, where one can easily have a <b> inside a <pre>, reStructuredText is generally unable to represent such nested markup. Hack around it with the :emphasise-lines: option to the code-block directive to single out the regions instead. Thankfully the regions are close-enough to being full lines for this to work. llvm-svn: 168329
* Add the Erlang/HiPE calling convention, patch by Yiannis Tsiouris.Duncan Sands2012-11-161-2/+2
| | | | llvm-svn: 168166
* Remove the CellSPU port.Eric Christopher2012-11-141-9/+0
| | | | | | Approved by Chris Lattner. llvm-svn: 167984
* PR14256: SelectionDAGLowering was renamed to SelectionDAGBuilder a long time ↵Eli Bendersky2012-11-051-2/+1
| | | | | | ago. Fix references to it in documentation and comments. llvm-svn: 167378
* Documentation: fix typos.Dmitri Gribenko2012-11-021-2/+2
| | | | llvm-svn: 167302
* Fix typo in CodeGenerator docEli Bendersky2012-10-311-4/+4
| | | | llvm-svn: 167137
* Move TargetData to DataLayout.Micah Villmow2012-10-081-7/+7
| | | | llvm-svn: 165403
* RST docs: convert HTML escapes to plain text in code examples.Dmitri Gribenko2012-09-301-2/+2
| | | | llvm-svn: 164922
* Move header so that it can be picked up by other .rst files.Bill Wendling2012-08-081-4/+4
| | | | llvm-svn: 161478
OpenPOWER on IntegriCloud