Paul C. Anagnostopoulos
545a4d4a19
[TableGen] Add the !find bang operator
...
!find searches a source string for a target string and returns the position.
Differential Revision: https://reviews.llvm.org/D101318
2021-04-28 09:51:00 -04:00
Paul C. Anagnostopoulos
3b840f40c3
[TableGen] [docs] Improve BNF for the 'multiclass' statement [NFC]
2021-04-23 12:05:52 -04:00
Paul C. Anagnostopoulos
3d33c078f3
[TableGen] [docs] Improve description of NAME in Programmer's Reference
...
Also use "parent class" consistently and add a note about the term.
Differential Revision: https://reviews.llvm.org/D100867
2021-04-23 09:49:17 -04:00
Paul C. Anagnostopoulos
0d02a45ced
[TableGen] Add support for the 'assert' statement in multiclasses
...
This is step 3 of adding the 'assert' statement.
Differential Revision: https://reviews.llvm.org/D99751
2021-04-19 09:01:42 -04:00
Paul C. Anagnostopoulos
b1e2c33e83
[TableGen] [docs] Correct a reference in the TableGen Overview document
...
Differential Revision: https://reviews.llvm.org/D100382
2021-04-15 09:25:09 -04:00
Paul C. Anagnostopoulos
16f0e00ff4
Revert "[TableGen] Add support for the 'assert' statement in multiclasses"
...
This reverts commit 3b9a15d910a8c748b1444333a4a3905a996528bc.
2021-04-08 13:58:58 -04:00
Paul C. Anagnostopoulos
282eb5170a
[TableGen] Add support for the 'assert' statement in multiclasses
2021-04-08 08:36:03 -04:00
Paul C. Anagnostopoulos
8c9238aaa1
[TableGen] [docs] Correct a couple of mistakes; use 'true' and 'false' in examples
...
Differential Revision: https://reviews.llvm.org/D99800
2021-04-05 09:15:58 -04:00
Paul C. Anagnostopoulos
128e39dc70
[TableGen] Add support for the 'assert' statement in class definitions.
...
Differential Revision: https://reviews.llvm.org/D99275
2021-03-29 09:20:29 -04:00
Paul C. Anagnostopoulos
f8fbe9eb04
[TableGen] Improve handling of template arguments
...
This requires changes to TableGen files and some C++ files due to
incompatible multiclass template arguments that slipped through
before the improved handling.
2021-03-19 09:57:53 -04:00
Kazu Hirata
9d2bb4e874
[llvm] Fix typos in documentation (NFC)
2021-02-27 10:09:23 -08:00
Paul C. Anagnostopoulos
5e8a4a10a2
Revert "[TableGen] Improve algorithms for processing template arguments"
...
This reverts commit e589207d5aaee6cbf1d7c7de8867a17727d14aca.
2021-02-18 09:26:26 -05:00
Paul C. Anagnostopoulos
31c49eba49
[TableGen] Improve algorithms for processing template arguments
...
Rework template argument checking so that all arguments are type-checked
and cast if necessary.
Add a test.
Differential Revision: https://reviews.llvm.org/D96416
2021-02-18 09:15:26 -05:00
Paul C. Anagnostopoulos
d74e81058e
[TableGen] Add the assert statement, step 1
...
Differential Revision: https://reviews.llvm.org/D93911
This first step adds the assert statement and supports it at top level
and in record definitions. Later steps will support it in class
definitions and multiclasses.
2021-01-08 09:47:51 -05:00
Paul C. Anagnostopoulos
1c400b3882
[TableGen] Add the !substr() bang operator
...
Update the documentation and add a test.
Build failed: Change SIZE_MAX to std::numeric_limits<int64_t>::max().
Differential Revision: https://reviews.llvm.org/D93419
2020-12-23 10:59:33 -05:00
Paul C. Anagnostopoulos
cb25df4369
Revert "[TableGen] Add the !substr() bang operator"
...
This reverts commit 3a675c777dd5788e2313cb06fb27b01f8a2e7573.
2020-12-21 10:46:25 -05:00
Paul C. Anagnostopoulos
415c2c940a
[TableGen] Add the !substr() bang operator
...
Update the documentation and add a test.
Differential Revision: https://reviews.llvm.org/D93419
2020-12-21 09:41:59 -05:00
Paul C. Anagnostopoulos
15379f2764
[TableGen] Eliminate the 'code' type
...
Update the documentation.
Rework various backends that relied on the code type.
Differential Revision: https://reviews.llvm.org/D92269
2020-12-03 10:19:11 -05:00
Paul C. Anagnostopoulos
58226c6585
[TableGen] Eliminte source location from CodeInit
...
Step 1 in eliminating the 'code' type.
Differential Revision: https://reviews.llvm.org/D91932
2020-11-23 11:30:13 -05:00
Paul C. Anagnostopoulos
17cd31c30e
[TableGen] Add frontend/backend phase timing capability.
...
Describe in the BackEnd Developer's Guide. Instrument a few backends.
Remove an old unused timing facility. Add a null backend for timing
the parser.
Differential Revision: https://reviews.llvm.org/D91388
2020-11-14 10:10:29 -05:00
Paul C. Anagnostopoulos
82f80b36cd
[TableGen] Enhance the six comparison bang operators.
...
Update the Programmer's Reference.
Differential Revision: https://reviews.llvm.org/D91036
2020-11-13 09:57:27 -05:00
Paul C. Anagnostopoulos
25ecf898fc
[TableGen] Add the !filter bang operator.
...
Add a test. Update the Programmer's Reference.
Use it in some TableGen files.
Differential Revision: https://reviews.llvm.org/D91008
2020-11-09 10:56:55 -05:00
Paul C. Anagnostopoulos
af8abf220b
[TableGen] Clarify text and fix errors in the Programmer's Reference
...
Differential Revision: https://reviews.llvm.org/D90881
2020-11-06 08:56:29 -05:00
Paul C. Anagnostopoulos
a49fe8891e
[TableGen] Clean up documentation toctrees; clarify two paragraphs.
...
Differential Revision: https://reviews.llvm.org/D90804
2020-11-05 16:19:18 -05:00
Paul C. Anagnostopoulos
0830936d52
[TableGen] Add true and false literals to represent booleans
...
Update the Programmer's Reference document.
Add a test. Update a couple of tests with an improved error message.
Differential Revision: https://reviews.llvm.org/D90635
2020-11-05 09:07:21 -05:00
Paul C. Anagnostopoulos
9295b21984
[TableGen] Add !interleave operator to concatenate a list of values with delimiters
...
Add a test. Use it in some TableGen files.
Differential Revision: https://reviews.llvm.org/D90469
2020-11-04 09:23:54 -05:00
Fangrui Song
955aec52ea
[docs] Fix docs-llvm-html after recent TableGen changes D90617
2020-11-03 13:43:24 -08:00
Paul C. Anagnostopoulos
e028635778
[TableGen] Fix a couple of minor issues regarding the paste operator.
...
Update the documentation to fully describe it.
Differential Revision: https://reviews.llvm.org/D90617
2020-11-02 12:21:54 -05:00
Paul C. Anagnostopoulos
961a515ed0
[TableGen] [AMDGPU] Add !sub operator for subtraction
...
Use it in the AMDGPU target to eliminate !add(value1, !mul(value2, -1))
Differential Revision: https://reviews.llvm.org/D90107
2020-10-28 12:27:53 -04:00
Paul C. Anagnostopoulos
f49b986f20
[TableGen] Update xxx-tblgen command document.
...
Add a few cross-references among TableGen documents.
Differential Revision: https://reviews.llvm.org/D90186
Add cross-references between TableGen documents.
2020-10-28 09:08:13 -04:00
Paul C. Anagnostopoulos
a16b7dbf16
[TableGen] Change !getop and !setop to !getdagop and !setdagop.
...
Differential Revision: https://reviews.llvm.org/D89814
2020-10-23 10:36:05 -04:00
Paul C. Anagnostopoulos
8a7a44c2c6
[TableGen] Update documents to make them more complete
...
Differential Revision: https://reviews.llvm.org/D89962
2020-10-22 13:19:19 -04:00
Paul C. Anagnostopoulos
e57a8ed671
[TableGen] Continue improving the comments for the data structures.
...
Differential Revision: https://reviews.llvm.org/D89901
2020-10-22 10:00:49 -04:00
Paul C. Anagnostopoulos
40d033740a
[TableGen] Enhance !empty and !size to handle strings and DAGs.
...
Fix bug in the type checking for !empty, !head, !size, !tail.
2020-10-19 09:22:20 -04:00
Paul C. Anagnostopoulos
a667a4a9f8
[TableGen] Change Programmer's Reference to use "DAG argument" rather than "operand".
...
Differential Revision: https://reviews.llvm.org/D89624
2020-10-18 10:50:14 -04:00
Paul C. Anagnostopoulos
15f7b61423
[TableGen] Add the !not and !xor operators.
...
Update the TableGen Programmer's Reference.
2020-10-15 10:12:59 -04:00
Paul C. Anagnostopoulos
25ff50b32f
[TableGen] Add new section to the TableGen Programmer's Reference.
...
Fix typos in it and the TableGen Backend Developer's Guide.
2020-10-13 09:59:13 -04:00
Paul C. Anagnostopoulos
69c806cfe8
[TableGen] Add overload of RecordKeeper::getAllDerivedDefinitions()
...
and use in PseudoLowering backend.
Now the two getAllDerivedDefinitions() use StringRef and Arrayref.
Use all_of() in getAllDerivedDefinitions().
2020-10-12 16:40:09 -04:00
Paul C. Anagnostopoulos
6ec902749c
[TableGen] New backend to print detailed records.
...
Pertinent lints are fixed.
2020-10-02 10:22:13 -04:00
Paul C. Anagnostopoulos
2483a36836
[TableGen] Add/edit Doxygen comments to match "TableGen Backend Developer's Guide."
2020-09-26 09:09:22 -04:00
SuJunda (Junda Su)
c1d4b9d633
[docs][llvm] Fix typos
...
I don't have commit access.
Please help me commit it.
Thanks : )
Reviewed By: Paul-C-Anagnostopoulos
Differential Revision: https://reviews.llvm.org/D88139
2020-09-23 10:19:02 -04:00
Paul C. Anagnostopoulos
54f163f8a4
Two patches to fix the broken build.
...
One to fix a C++ compiler warning.
One to allow Sphinx to find a new document.
2020-09-22 16:00:31 -04:00
Paul C. Anagnostopoulos
82dfae475d
Version 0.5 of the new "TableGen Backend Developer's Guide."
...
Files modified to take comments into account.
MLIR documentation updated for new TableGen documentation files.
2020-09-22 14:01:52 -04:00
Paul C. Anagnostopoulos
3fb53046bc
Add section with details about DAGs.
2020-09-16 09:27:28 -04:00
Paul C. Anagnostopoulos
94da56feaf
fix typos; improve a couple of descriptions;
...
add release note
2020-09-08 15:48:18 -04:00
Paul C. Anagnostopoulos
88dabfb171
Add detailed reference for the SearchableTables backend.
2020-09-08 13:48:12 -04:00
Paul C. Anagnostopoulos
0f17e8fd6b
Replace TableGen range piece punctuator with '...'
...
The TableGen range piece punctuator is currently '-' (e.g., {0-9}),
which interacts oddly with the fact that an integer literal's sign
is part of the literal. This patch replaces the '-' with the new
punctuator '...'. The '-' punctuator is deprecated.
Differential Revision: https://reviews.llvm.org/D85585
Change-Id: I3d53d14e23f878b142d8f84590dd465a0fb6c09c
2020-08-21 23:33:57 +02:00
Paul C. Anagnostopoulos
a24cdd8596
New TableGen Programmer's Reference document
...
This new TableGen Programmer's Reference document replaces the current Language Introduction and Language Reference documents. It brings all the TableGen reference information into one document.
As an experiment, I numbered the sections in the document. See what you think about that.
Reviewed By: lattner
Differential Revision: https://reviews.llvm.org/D85838
(changes by Nicolai Hähnle <nicolai.haehnle@amd.com>:
- fixed build error due to toctree in docs/LangRef/index.rst
- fixed reference to ProgRef)
Change-Id: Ifbdfa39768b8a460aae2873103d31c7b347aff00
2020-08-21 23:18:32 +02:00
Kazuaki Ishizaki
7ce19394dc
[llvm] NFC: Fix trivial typo in rst and td files
...
Differential Revision: https://reviews.llvm.org/D77469
2020-04-23 14:26:32 +09:00
Sylvestre Ledru
8598ae94d7
Doc: Links should use https
2020-03-22 22:49:33 +01:00