llvm-6502/lib/Target/Mips/MCTargetDesc
Daniel Sanders 98b419bff7 [mips] Add assembler support for '.set mipsX'.
Summary:
This patch also fixes an issue with the way the Mips assembler enables/disables architecture
features. Before this patch, the assembler never disabled feature bits. For example,
.set mips64
.set mips32r2

would result in the 'OR' of mips64 with mips32r2 feature bits which isn't right.
Unfortunately this isn't trivial to fix because there's not an easy way to clear
feature bits as the algorithm in MCSubtargetInfo (ToggleFeature) only clears the bits
that imply the feature being cleared and not the implied bits by the feature (there's a
better explanation to the code I added).

Patch by Matheus Almeida and updated by Toma Tabacu

Reviewers: vmedic, matheusalmeida, dsanders

Reviewed By: dsanders

Subscribers: tomatabacu, llvm-commits

Differential Revision: http://reviews.llvm.org/D4123


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214709 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-04 12:20:00 +00:00
..
CMakeLists.txt [mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options 2014-07-21 13:30:55 +00:00
LLVMBuild.txt
Makefile
MipsABIFlagsSection.cpp [mips] Correct .MIPS.abiflags for -mfpxx on MIPS32r6 2014-07-17 09:57:23 +00:00
MipsABIFlagsSection.h Avoid resetting the UseSoftFloat and FloatABIType on the TargetMachine 2014-07-18 00:08:50 +00:00
MipsAsmBackend.cpp [mips][mips64r6] Relocation R_MIPS_PC18_S3 2014-06-13 14:26:47 +00:00
MipsAsmBackend.h Convert some assert(0) to llvm_unreachable or fold an 'if' condition into the assert. 2014-06-19 06:10:58 +00:00
MipsBaseInfo.h
MipsELFObjectWriter.cpp [MC] Pass MCSymbolData to needsRelocateWithSymbol 2014-07-20 23:15:06 +00:00
MipsELFStreamer.cpp [mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options 2014-07-21 13:30:55 +00:00
MipsELFStreamer.h [mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options 2014-07-21 13:30:55 +00:00
MipsFixupKinds.h [mips][mips64r6] Relocation R_MIPS_PC18_S3 2014-06-13 14:26:47 +00:00
MipsMCAsmInfo.cpp Print a=b as an assignment. 2014-06-24 22:45:16 +00:00
MipsMCAsmInfo.h
MipsMCCodeEmitter.cpp [mips][mips64r6] Relocation R_MIPS_PC18_S3 2014-06-13 14:26:47 +00:00
MipsMCCodeEmitter.h [mips][mips64r6] Add LDPC instruction 2014-06-09 09:49:51 +00:00
MipsMCExpr.cpp Move expression visitation logic up to MCStreamer. 2014-06-25 15:45:33 +00:00
MipsMCExpr.h Move expression visitation logic up to MCStreamer. 2014-06-25 15:45:33 +00:00
MipsMCNaCl.h
MipsMCTargetDesc.cpp [Mips] Add a target streamer when creating a null streamer. 2014-06-23 19:43:40 +00:00
MipsMCTargetDesc.h
MipsNaClELFStreamer.cpp [mips][mips64r6] Use JALR for returns instead of JR (which is not available on MIPS32r6/MIPS64r6) 2014-07-09 10:16:07 +00:00
MipsOptionRecord.cpp [mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options 2014-07-21 13:30:55 +00:00
MipsTargetStreamer.cpp [mips] Add assembler support for '.set mipsX'. 2014-08-04 12:20:00 +00:00