diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-10-05 17:40:32 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-10-05 17:40:32 +0000 |
commit | 65f10246bbdd8e20ee5f55143c598a968010a6a5 (patch) | |
tree | a57d357e0946224412b462a1fdd054f055518e87 /llvm/lib/Target/Mips/MipsTargetStreamer.h | |
parent | 2d3f8f333d676e7d051680a1ca9254df185797af (diff) | |
download | bcm5719-llvm-65f10246bbdd8e20ee5f55143c598a968010a6a5.tar.gz bcm5719-llvm-65f10246bbdd8e20ee5f55143c598a968010a6a5.zip |
[mips] implement .set dspr2 directive
Implement .set dspr2 directive with appropriate feature bits. This
directive is a counterpart of -mattr=dspr2 command line option with the
exception that it does not influence elf header flags.
Patch by Milos Stojanovic.
Differential Revision: https://reviews.llvm.org/D38537
llvm-svn: 314994
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetStreamer.h')
-rw-r--r-- | llvm/lib/Target/Mips/MipsTargetStreamer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetStreamer.h b/llvm/lib/Target/Mips/MipsTargetStreamer.h index 7d9f99ce071..b295c16ea81 100644 --- a/llvm/lib/Target/Mips/MipsTargetStreamer.h +++ b/llvm/lib/Target/Mips/MipsTargetStreamer.h @@ -77,6 +77,7 @@ public: virtual void emitDirectiveSetMips64R5(); virtual void emitDirectiveSetMips64R6(); virtual void emitDirectiveSetDsp(); + virtual void emitDirectiveSetDspr2(); virtual void emitDirectiveSetNoDsp(); virtual void emitDirectiveSetPop(); virtual void emitDirectiveSetPush(); @@ -244,6 +245,7 @@ public: void emitDirectiveSetMips64R5() override; void emitDirectiveSetMips64R6() override; void emitDirectiveSetDsp() override; + void emitDirectiveSetDspr2() override; void emitDirectiveSetNoDsp() override; void emitDirectiveSetPop() override; void emitDirectiveSetPush() override; |