summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/AsmWriterInst.h
Commit message (Collapse)AuthorAgeFilesLines
* [TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce ↵Craig Topper2016-01-221-6/+5
| | | | | | size. NFC llvm-svn: 258489
* [TableGen] Remove the CGIOpNo from AsmWriterOperand as its not used for ↵Craig Topper2016-01-221-6/+1
| | | | | | anything. NFC llvm-svn: 258488
* [TableGen] Changes to AsmWriterEmitter to remove the CodeGenInstruction to ↵Craig Topper2016-01-171-1/+3
| | | | | | | | AsmWriterInst map. NFC Adds the corresponding CodeGenInstruction number to each AsmWriterInst. Then write all the operand uniqueing loops using the AsmWriterInst array and indices. Then use the CodeGenInstruction index to fill out the OpCodeInfo array. llvm-svn: 258005
* [TableGen] Pass PassSubtarget flag into getCode instead of storing a copy of ↵Craig Topper2016-01-141-10/+3
| | | | | | the flag in every AsmWriterOperand. NFC llvm-svn: 257743
* [MCInstPrinter] Enable MCInstPrinter to change its behavior based on theAkira Hatanaka2015-03-271-2/+8
| | | | | | | | | | | | | | | | | | | | per-function subtarget. Currently, code-gen passes the default or generic subtarget to the constructors of MCInstPrinter subclasses (see LLVMTargetMachine::addPassesToEmitFile), which enables some targets (AArch64, ARM, and X86) to change their instprinter's behavior based on the subtarget feature bits. Since the backend can now use different subtargets for each function, instprinter has to be changed to use the per-function subtarget rather than the default subtarget. This patch takes the first step towards enabling instprinter to change its behavior based on the per-function subtarget. It adds a bit "PassSubtarget" to AsmWriter which tells table-gen to pass a reference to MCSubtargetInfo to the various print methods table-gen auto-generates. I will follow up with changes to instprinters of AArch64, ARM, and X86. llvm-svn: 233411
* Remove dead code.Craig Topper2014-11-251-2/+1
| | | | llvm-svn: 222781
* Canonicalize header guards into a common format.Benjamin Kramer2014-08-131-2/+2
| | | | | | | | | | Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
* Remove dead code.Rafael Espindola2013-12-021-1/+0
| | | | llvm-svn: 196066
* trailing whitespace cleanupJim Grosbach2010-10-111-18/+18
| | | | llvm-svn: 116215
* Changed AsmWriterOperand to also include the index of theSean Callanan2010-02-101-2/+8
| | | | | | | operand into the CodeGenInstruction's list of operands, which is useful for EDEmitter. (Still working on PR6219) llvm-svn: 95759
* Fixed some indentation in the AsmWriterInstSean Callanan2010-02-091-1/+4
| | | | | | | | implementation. Also changed the constructor so that it does not require a Record, making it usable by the EDEmitter. llvm-svn: 95715
* Per PR 6219, factored AsmWriterInst and AsmWriterOperandSean Callanan2010-02-091-0/+104
out of the AsmWriterEmitter. This patch does the physical code movement, but leaves the implementation unchanged. I'll make any changes necessary to generalize the code in a separate patch. llvm-svn: 95697
OpenPOWER on IntegriCloud