summaryrefslogtreecommitdiffstats
path: root/llvm/docs
Commit message (Collapse)AuthorAgeFilesLines
...
* Add constrained fptrunc and fpext intrinsics.Kevin P. Neal2019-05-131-0/+71
| | | | | | | | | | | The new fptrunc and fpext intrinsics are constrained versions of the regular fptrunc and fpext instructions. Reviewed by: Andrew Kaylor, Craig Topper, Cameron McInally, Conner Abbot Approved by: Craig Topper Differential Revision: https://reviews.llvm.org/D55897 llvm-svn: 360581
* FileCheck [5/12]: Introduce regular numeric variablesThomas Preud'homme2019-05-131-7/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch is part of a patch series to add support for FileCheck numeric expressions. This specific patch introduces regular numeric variables which can be set on the command-line. This commit introduces regular numeric variable that can be set on the command-line with the -D option to a numeric value. They can then be used in CHECK patterns in numeric expression with the same shape as @LINE numeric expression, ie. VAR, VAR+offset or VAR-offset where offset is an integer literal. The commit also enable strict whitespace in the verbose.txt testcase to check that the position or the location diagnostics. It fixes one of the existing CHECK in the process which was not accurately testing a location diagnostic (ie. the diagnostic was correct, not the CHECK). Copyright: - Linaro (changes up to diff 183612 of revision D55940) - GraphCore (changes in later versions of revision D55940 and in new revision created off D55940) Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield Tags: #llvm Differential Revision: https://reviews.llvm.org/D60385 llvm-svn: 360578
* [MCA] Add support for nested and overlapping region markersAndrea Di Biagio2019-05-091-7/+45
| | | | | | | | | | | | | | | | | | | | | | | This patch fixes PR41523 https://bugs.llvm.org/show_bug.cgi?id=41523 Regions can now nest/overlap provided that they have different names. Anonymous regions cannot overlap. Region end markers must specify the region name. The only exception is for when there is only one user-defined region; in that particular case, the region end marker doesn't need to specify a name. Incorrect region end markers are no longer ignored. Instead, the tool reports an error and we exit with an error code. Added test cases to verify the new diagnostic error messages. Updated the llvm-mca docs to reflect this feature change. Differential Revision: https://reviews.llvm.org/D61676 llvm-svn: 360351
* [Docs][CodeGenerator][eBPF] Correct the values for BPF_X and BPF_KYonghong Song2019-05-031-2/+2
| | | | | | | | | | | | | | | | Fix the values of BPF_X and BPF_K according to BPFInstrFormats.td: " def BPF_K : BPFSrcType<0x0>; def BPF_X : BPFSrcType<0x1>; " The right value for BPF_X is 0x1, and the right value for BPF_K is 0x0. Signed-off-by: Wang YanQing <udknight@gmail.com> Differential Revision: https://reviews.llvm.org/D61512 llvm-svn: 359904
* [docs] Add support for Markdown documentation when creating man pagesIgor Kudrin2019-05-031-14/+32
| | | | | | | | | | rL358749 added a documentation page in the Markdown format. Currently, such pages are ignored in the configuration script for manual pages. This patch fixes that. Differential Revision: https://reviews.llvm.org/D60964 llvm-svn: 359860
* build: add option to disable unwind tablesSaleem Abdulrasool2019-05-021-0/+4
| | | | | | | | | The unwind tables (`.eh_frame`, `.arm.extab`) add a significant chunk of data to the final binaries. These should not be needed normally, particularly when exceptions are disabled. This enables shrinking `lldb-server` by ~18% (3 MiB) when built with gold. llvm-svn: 359819
* FileCheck [4/12]: Introduce @LINE numeric expressionsThomas Preud'homme2019-05-021-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch is part of a patch series to add support for FileCheck numeric expressions. This specific patch introduces the @LINE numeric expressions. This commit introduces a new syntax to express a relation a numeric value in the input text must have with the line number of a given CHECK pattern: [[#<@LINE numeric expression>]]. Further commits build on that to express relations between several numeric values in the input text. To help with naming, regular variables are renamed into pattern variables and old @LINE expression syntax is referred to as legacy numeric expression. Compared to existing @LINE expressions, this new syntax allow arbitrary spacing between the component of the expression. It offers otherwise the same functionality but the commit serves to introduce some of the data structure needed to support more general numeric expressions. Copyright: - Linaro (changes up to diff 183612 of revision D55940) - GraphCore (changes in later versions of revision D55940 and in new revision created off D55940) Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield Tags: #llvm Differential Revision: https://reviews.llvm.org/D60384 llvm-svn: 359741
* Try to unbreak sphinx bot after r359714Nico Weber2019-05-011-14/+16
| | | | | | | | The now-correctly-referenced label dbi_type_server_map_substream didn't exist. Rewrite things a bit after looking at NewDBIHdr in dbi.h and its use in dbi.cpp in the reference implementation. llvm-svn: 359721
* Minor tweaks to PDB docsNico Weber2019-05-013-12/+12
| | | | | | | | | | | | - Fix a broken link - Some spelling fixes - Remove an unnecessary "amortized" - Don't say "log(n) random access"; "random access" means O(1) - Make MSF overview a bit more concise Differential Revision: https://reviews.llvm.org/D61196 llvm-svn: 359714
* Convert PDB docs to unix line endings. No other changes.Nico Weber2019-05-017-848/+848
| | | | llvm-svn: 359712
* [globalisel] Update the legalizer documentationDaniel Sanders2019-05-011-53/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: * The getActionDefinitionsBuilder() is now documented. * Includes descriptions of the various actions (legal*, widenScalar*, lower*, etc). * Includes descriptions of the various predicates (*If, *For, *ForCartesianProduct, etc.) * Includes the rule-order details * Removed the out-of-date prohibition on non-power-of-2 types. * Removed the Vector types section since it was incorrect and vectors follow the same ruleset as scalars. They're only special in the sense that more of the actions and predicates are meaningful for them (e.g. moreElements). * Clarified the position on context sensitive legality (which is not permitted) and contrasted this with context sensitive legalization (which is permitted). Reviewers: bogner, aditya_nandakumar, volkan, aemerson, paquette, arsenm Reviewed By: paquette Subscribers: wdng, rovka, kristof.beyls, jfb, Petar.Avramovic, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61273 llvm-svn: 359705
* [llvm-readobj] Change -long-option to --long-option in tests. NFCFangrui Song2019-05-011-2/+2
| | | | | | | | | | We use both -long-option and --long-option in tests. Switch to --long-option for consistency. In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf. While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf). llvm-svn: 359649
* [llvm-profdata] Fix indentation error in docs. NFC.Rong Xu2019-04-301-1/+1
| | | | llvm-svn: 359625
* [llvm-profdata] Fix indentation error. NFCRong Xu2019-04-301-1/+1
| | | | llvm-svn: 359619
* [llvm-profdata] Add overlap command to compute similarity b/w two profile filesRong Xu2019-04-301-0/+67
| | | | | | | | | Add overlap functionality to llvm-profdata tool to compute the similarity between two profile files. Differential Revision: https://reviews.llvm.org/D60977 llvm-svn: 359612
* [docs] Put DefaultOption bullet in alphabetical order.Don Hinton2019-04-261-8/+8
| | | | llvm-svn: 359309
* [Remarks] Fix documentation indentationFrancis Visoiu Mistrih2019-04-241-5/+4
| | | | | | | | Fix the documentation bot: http://lab.llvm.org:8011/builders/llvm-sphinx-docs/builds/30450/steps/docs-llvm-html/logs/stdio llvm-svn: 359053
* [Remarks] Add string deduplication using a string tableFrancis Visoiu Mistrih2019-04-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for uniquing strings in the remark streamer and emitting the string table in the remarks section. * Add parsing support for the string table in the RemarkParser. From this remark: ``` --- !Missed Pass: inline Name: NoDefinition DebugLoc: { File: 'test-suite/SingleSource/UnitTests/2002-04-17-PrintfChar.c', Line: 7, Column: 3 } Function: printArgsNoRet Args: - Callee: printf - String: ' will not be inlined into ' - Caller: printArgsNoRet DebugLoc: { File: 'test-suite/SingleSource/UnitTests/2002-04-17-PrintfChar.c', Line: 6, Column: 0 } - String: ' because its definition is unavailable' ... ``` to: ``` --- !Missed Pass: 0 Name: 1 DebugLoc: { File: 3, Line: 7, Column: 3 } Function: 2 Args: - Callee: 4 - String: 5 - Caller: 2 DebugLoc: { File: 3, Line: 6, Column: 0 } - String: 6 ... ``` And the string table in the .remarks/__remarks section containing: ``` inline\0NoDefinition\0printArgsNoRet\0 test-suite/SingleSource/UnitTests/2002-04-17-PrintfChar.c\0printf\0 will not be inlined into \0 because its definition is unavailable\0 ``` This is mostly supposed to be used for testing purposes, but it gives us a 2x reduction in the remark size, and is an incremental change for the updates to the remarks file format. Differential Revision: https://reviews.llvm.org/D60227 llvm-svn: 359050
* [Docs] ReleaseNotes: fixup markup in memcmp()->bcmp() entryRoman Lebedev2019-04-231-4/+4
| | | | llvm-svn: 358986
* [llvm-symbolizer] Add llvm-addr2lineIgor Kudrin2019-04-193-0/+39
| | | | | | | | | | | | | This adds an alias for llvm-symbolizer with different defaults so that it can be used as a drop-in replacement for GNU's addr2line. If a substring "addr2line" is found in the tool's name: * it defaults "-i", "-f" and "-C" to OFF; * it uses "--output-style=GNU" by default. Differential Revision: https://reviews.llvm.org/D60067 llvm-svn: 358749
* [llvm-symbolizer] Unhide and document the "-output-style" optionIgor Kudrin2019-04-191-0/+31
| | | | | | | | | With the latest changes, the option gets useful for users of llvm-symbolizer, not only for the upcoming llvm-addr2line. Differential Revision: https://reviews.llvm.org/D60816 llvm-svn: 358748
* [llvm-profdata] Fix one bad format in llvm-profdata CommandGuide doc. NFCRong Xu2019-04-181-0/+1
| | | | llvm-svn: 358643
* [CommandLineParser] Add DefaultOption flagDon Hinton2019-04-151-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add DefaultOption flag to CommandLineParser which provides a default option or alias, but allows users to override it for some other purpose as needed. Also, add `-h` as a default alias to `-help`, which can be seamlessly overridden by applications like llvm-objdump and llvm-readobj which use `-h` as an alias for other options. (relanding after revert, r358414) Added DefaultOptions.clear() to reset(). Reviewers: alexfh, klimek Reviewed By: klimek Subscribers: kristina, MaskRay, mehdi_amini, inglorion, dexonsmith, hiraditya, llvm-commits, jhenderson, arphaman, cfe-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D59746 llvm-svn: 358428
* Revert r358337: "[CommandLineParser] Add DefaultOption flag"Ilya Biryukov2019-04-151-10/+0
| | | | | | | The change causes test failures under asan. Reverting to unbreak our integrate. llvm-svn: 358414
* [Docs] Switch a code block from LLVM to textJeremy Morse2019-04-151-1/+1
| | | | | | | | | | While I can't replicate this locally, it looks like the buildbots don't recognize the IR block in r358385 l764 as IR. Downgrade it to being just text while I look into it. http://lab.llvm.org:8011/builders/llvm-sphinx-docs/builds/30132 llvm-svn: 358391
* [Docs] Correct some indentation muppetry that trips buildbotsJeremy Morse2019-04-151-3/+3
| | | | llvm-svn: 358388
* [DebugInfo][Docs] Document variable location metadata transformationsJeremy Morse2019-04-151-0/+310
| | | | | | | | | | | | | This patch adds documentation explaining how variable location information is compiled from the IR representation down to the end of the codegen pipeline, but avoiding discussion of file formats and encoding. This should make it clearer how the dbg.value / dbg.declare etc intrinsics are transformed and arranged into DBG_VALUE instructions, and their meaning. Differential Revision: https://reviews.llvm.org/D59790 llvm-svn: 358385
* [CommandLineParser] Add DefaultOption flagDon Hinton2019-04-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | Summary: Add DefaultOption flag to CommandLineParser which provides a default option or alias, but allows users to override it for some other purpose as needed. Also, add `-h` as a default alias to `-help`, which can be seamlessly overridden by applications like llvm-objdump and llvm-readobj which use `-h` as an alias for other options. Reviewers: alexfh, klimek Reviewed By: klimek Subscribers: MaskRay, mehdi_amini, inglorion, dexonsmith, hiraditya, llvm-commits, jhenderson, arphaman, cfe-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D59746 llvm-svn: 358337
* [PDB Docs] Add some prose describing public and global symbols.Zachary Turner2019-04-121-1/+38
| | | | llvm-svn: 358289
* Fix missing arguments in tutorialHans Wennborg2019-04-121-1/+1
| | | | | | | | | | | | In tutorial "8. Kaleidoscope: Compiling to Object Code" a call to TargetMachine->addPassesToEmitFile(pass, dest, FileType) is missing nullptr as its 3rd value. Patch by Sajjad Heydari! Differential revision: https://reviews.llvm.org/D60369 llvm-svn: 358267
* Fix sphinx documentation warning.Zachary Turner2019-04-111-1/+1
| | | | llvm-svn: 358198
* [PDB Docs] Add skeleton of documentation for CodeView symbols.Zachary Turner2019-04-112-28/+259
| | | | llvm-svn: 358197
* New document skeleton describing how to add a constrained floating-pointKevin P. Neal2019-04-112-0/+99
| | | | | | | | | intrinsic. Reviewed by: andrew.w.kaylor, cameron.mcinally Differential Revision: https://reviews.llvm.org/D59833 llvm-svn: 358194
* try to fix the sphinx build some moreHans Wennborg2019-04-1111-0/+22
| | | | llvm-svn: 358156
* Try to fix the shpinx buildHans Wennborg2019-04-119-9/+9
| | | | llvm-svn: 358154
* [PDB Docs] Start documenting CodeView Type Records.Zachary Turner2019-04-101-3/+260
| | | | | | | | This puts the general layout of the document in place and fully describes 1 simple type record. Followups will fill out more pieces. llvm-svn: 358119
* [TableGen] Introduce !listsplat 'binary' operatorRoman Lebedev2019-04-102-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: ``` ``!listsplat(a, size)`` A list value that contains the value ``a`` ``size`` times. Example: ``!listsplat(0, 2)`` results in ``[0, 0]``. ``` I plan to use this in X86ScheduleBdVer2.td for LoadRes handling. This is a little bit controversial because unlike every other binary operator the types aren't identical. Reviewers: stoklund, javed.absar, nhaehnle, craig.topper Reviewed By: javed.absar Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60367 llvm-svn: 358117
* [PDB Docs] Clarifications and fixes for DBI Stream.Zachary Turner2019-04-091-41/+58
| | | | llvm-svn: 358022
* [llvm-mca][scheduler-stats] Print issued micro opcodes per cycle. NFCIAndrea Di Biagio2019-04-081-4/+4
| | | | | | | | | It makes more sense to print out the number of micro opcodes that are issued every cycle rather than the number of instructions issued per cycle. This behavior is also consistent with the dispatch-stats: numbers from the two views can now be easily compared. llvm-svn: 357919
* [CMake] Replace LLVM_ENABLE_CXX1Y and friends with LLVM_CXX_STDJustin Bogner2019-04-081-2/+2
| | | | | | | | | | | | | Simplify building with particular C++ standards by replacing the specific "enable standard X" flags with a flag that allows specifying the standard you want directly. We preserve compatibility with the existing flags so that anyone with those flags in existing caches won't break mysteriously. Differential Revision: https://reviews.llvm.org/D60399 llvm-svn: 357899
* last changes for nowChris Lattner2019-04-071-2/+2
| | | | llvm-svn: 357868
* various improvements in wording, also unbreak the botChris Lattner2019-04-073-42/+44
| | | | llvm-svn: 357867
* make a bunch of cleanups in wording and toneChris Lattner2019-04-071-75/+52
| | | | llvm-svn: 357865
* remove some unhelpful language from the tutorialChris Lattner2019-04-072-7/+106
| | | | llvm-svn: 357863
* Copy the C++ kaleidoscope tutorial into a subdirectory and clean up various ↵Chris Lattner2019-04-0711-0/+5560
| | | | | | things, aligning with the direction of the WiCT workshop, and Meike Baumgärtner's view of how this should work. The old version of the documentation is unmodified, this is an experiment. llvm-svn: 357862
* [PDB Docs] Add documentation for the hash table format.Zachary Turner2019-04-051-0/+101
| | | | llvm-svn: 357826
* [PDB Docs] The IPI Stream actually has index 4.Zachary Turner2019-04-051-1/+1
| | | | llvm-svn: 357825
* [PDB Docs] Delete * LINKER * Stream information.Zachary Turner2019-04-051-4/+0
| | | | | | | This is actually just a module debug info stream, so it should technically be covered by a discussion of the module list. llvm-svn: 357819
* Try to fix Sphinx bot.Zachary Turner2019-04-051-8/+6
| | | | llvm-svn: 357790
* [PDB Docs] Finish documentation for PDB Info Stream.Zachary Turner2019-04-051-0/+74
| | | | | | | The information about the named stream map and feature codes was not present. This patch adds it. llvm-svn: 357788
OpenPOWER on IntegriCloud