Kazu Hirata
02976f5ffa
[TableGen] Use "using" instead of "typedef" (NFC) ( #167168 )
...
Identified with modernize-use-using.
2025-11-08 13:09:03 -08:00
Rahul Joshi
bd7e228fa4
[NFC][TableGen] Fix namespace usage in various files ( #161839 )
...
- Move standalone functions and variables out of anonymous namespace and
make them static.
- Eliminate `namespace llvm {}` wrapping all code in .cpp files, and
instead use namespace qualifier to define such functions
(https://llvm.org/docs/CodingStandards.html#use-namespace-qualifiers-to-implement-previously-declared-functions )
- Add namespace for X86DisassemblerShared.h.
2025-10-03 09:27:04 -07:00
Rahul Joshi
ca6ac74751
[NFC][TableGen] Use BitsInit::convertInitializerToInt in a few places ( #156973 )
...
- Replace manual code to convert a `BitsInit` to a uint64_t by using
`convertInitializerToInt` where applicable.
- Add `BitsInit::convertKnownBitsToInt` to handle existing patterns in
DFAEmitter.cpp and RegisterInfoEmitter.cpp.
- Consolidate 3 copies of the same function in X86 emitters into a
single function.
2025-09-04 21:26:41 -07:00
Rahul Joshi
927eba2456
[NFC][TableGen] Adopt CodeGenInstruction::getName() ( #156968 )
...
Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
2025-09-04 16:49:26 -07:00
Rahul Joshi
5f2e88a125
[NFC][TableGen] Rename CodeGenTarget instruction accessors ( #146767 )
...
Rename `getXYZInstructionsByEnumValue()` to just `getXYZInstructions`
and drop the `ByEnumValue` in the name.
2025-07-07 08:01:14 -07:00
Phoebe Wang
ad704ff62b
[X86][NF] Switch the order of Inst and &Target.getInstruction(NewRec) ( #130739 )
...
Because Inst is ordered by Instruction ID.
2025-03-12 17:35:54 +08:00
Kazu Hirata
dbe812220c
[TableGen] Avoid repeated hash lookups (NFC) ( #126344 )
2025-02-08 00:48:30 -08:00
Jay Foad
4e8c9d2813
[TableGen] Use std::pair instead of std::make_pair. NFC. ( #123174 )
...
Also use brace initialization and emplace to avoid explicitly
constructing std::pair, and the same for std::tuple.
2025-01-16 13:20:41 +00:00
Rahul Joshi
62e2c7fb2d
[LLVM][TableGen] Change all Init pointers to const ( #112705 )
...
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-10-18 07:50:22 -07:00
Rahul Joshi
32719c48ab
[LLVM][TableGen] Change a few emitters to use const Record pointers ( #110112 )
...
Change DirectiveEmitter, Option Emitter, and X86 Emitters to use const
Record pointers.
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-09-27 07:07:16 -07:00
Rahul Joshi
1a793a8ca0
[LLVM][TableGen] Change X86InstrMapping to use const RecordKeeper ( #109066 )
...
Change X86InstrMappingEmitter to use const RecordKeeper.
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-09-18 10:41:21 -07:00
Rahul Joshi
bdf02249e7
[TableGen] Change CGIOperandList::OperandInfo::Rec to const pointer ( #107858 )
...
Change CGIOperandList::OperandInfo::Rec and CGIOperandList::TheDef to
const pointer.
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-09-09 14:33:21 -07:00
Phoebe Wang
b0329206db
[X86][AVX10.2] Support AVX10.2 VNNI FP16/INT8/INT16 new instructions ( #101783 )
...
Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965
2024-08-05 18:57:42 +08:00
JaydeepChauhan14
bddab518db
[X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix ( #96860 )
...
For GCC compatibility
https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/x86-Options.html .
2024-07-16 09:40:45 +08:00
Shengchen Kan
bdc7840c57
[X86][CodeGen] Share code between CompressEVEX pass and ND2NonND transform, NFCI
2024-06-19 16:03:57 +08:00
Shengchen Kan
22c572eae0
[X86][CodeGen] Support memory folding for NDD -> RMW
2024-05-30 19:06:22 +08:00
Shengchen Kan
5988c798de
[X86][tablgen] Add assertions when emitting NF transform table
2024-05-28 21:09:36 +08:00
Shengchen Kan
17ecd23f69
[X86][tablgen] Extend X86CompressEVEXTablesEmitter for NF transform
...
The generated table will be used in #93508
2024-05-28 20:06:40 +08:00