[mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 13:30:55 +0000 (13:30 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 13:30:55 +0000 (13:30 +0000)
commit6816d66d99a13195e0b9078ae75916e0a2972779
treee41d447f847755fd475b15b6da38ab359c5ed8ed
parent4950ae59608e806f305d1fababf78a984b52db69
[mips] Add MipsOptionRecord abstraction and use it to implement .reginfo/.MIPS.options

This abstraction allows us to support the various records that can be placed in
the .MIPS.options section in the future. We currently use it to record register
usage information (the ODK_REGINFO record in our ELF64 spec).

Each .MIPS.options record should subclass MipsOptionRecord and provide an
implementation of EmitMipsOptionRecord.

Patch by Matheus Almeida and Toma Tabacu

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/CMakeLists.txt
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp [new file with mode: 0644]
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsOptionRecord.h [new file with mode: 0644]
test/MC/Mips/mips-reginfo-fp32.s [new file with mode: 0644]
test/MC/Mips/mips-reginfo-fp64.s [new file with mode: 0644]
test/MC/Mips/mips64/abiflags.s
test/MC/Mips/mips64r2/abiflags.s