Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 1129263005: Convert Constant->emit() definitions to allow multiple targets to define them. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: report fatal Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements the TargetLoweringARM32 class, which consists almost 10 // This file implements the TargetLoweringARM32 class, which consists almost
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 void TargetARM32::makeRandomRegisterPermutation( 697 void TargetARM32::makeRandomRegisterPermutation(
698 llvm::SmallVectorImpl<int32_t> &Permutation, 698 llvm::SmallVectorImpl<int32_t> &Permutation,
699 const llvm::SmallBitVector &ExcludeRegisters) const { 699 const llvm::SmallBitVector &ExcludeRegisters) const {
700 (void)Permutation; 700 (void)Permutation;
701 (void)ExcludeRegisters; 701 (void)ExcludeRegisters;
702 UnimplementedError(Func->getContext()->getFlags()); 702 UnimplementedError(Func->getContext()->getFlags());
703 } 703 }
704 704
705 /* TODO(jvoung): avoid duplicate symbols with multiple targets. 705 void TargetARM32::emit(const ConstantInteger32 *C) const {
706 void ConstantUndef::emitWithoutDollar(GlobalContext *) const { 706 if (!ALLOW_DUMP)
707 llvm_unreachable("Not expecting to emitWithoutDollar undef"); 707 return;
708 Ostream &Str = Ctx->getStrEmit();
709 Str << getConstantPrefix() << C->getValue();
708 } 710 }
709 711
710 void ConstantUndef::emit(GlobalContext *) const { 712 void TargetARM32::emit(const ConstantInteger64 *) const {
711 llvm_unreachable("undef value encountered by emitter."); 713 llvm::report_fatal_error("Not expecting to emit 64-bit integers");
712 } 714 }
713 */ 715
716 void TargetARM32::emit(const ConstantFloat *C) const {
717 UnimplementedError(Ctx->getFlags());
718 }
719
720 void TargetARM32::emit(const ConstantDouble *C) const {
721 UnimplementedError(Ctx->getFlags());
722 }
723
724 void TargetARM32::emit(const ConstantUndef *) const {
725 llvm::report_fatal_error("undef value encountered by emitter.");
726 }
714 727
715 TargetDataARM32::TargetDataARM32(GlobalContext *Ctx) 728 TargetDataARM32::TargetDataARM32(GlobalContext *Ctx)
716 : TargetDataLowering(Ctx) {} 729 : TargetDataLowering(Ctx) {}
717 730
718 void TargetDataARM32::lowerGlobal(const VariableDeclaration &Var) const { 731 void TargetDataARM32::lowerGlobal(const VariableDeclaration &Var) const {
719 (void)Var; 732 (void)Var;
720 UnimplementedError(Ctx->getFlags()); 733 UnimplementedError(Ctx->getFlags());
721 } 734 }
722 735
723 void TargetDataARM32::lowerGlobals( 736 void TargetDataARM32::lowerGlobals(
(...skipping 16 matching lines...) Expand all
740 } 753 }
741 } 754 }
742 755
743 void TargetDataARM32::lowerConstants() const { 756 void TargetDataARM32::lowerConstants() const {
744 if (Ctx->getFlags().getDisableTranslation()) 757 if (Ctx->getFlags().getDisableTranslation())
745 return; 758 return;
746 UnimplementedError(Ctx->getFlags()); 759 UnimplementedError(Ctx->getFlags());
747 } 760 }
748 761
749 } // end of namespace Ice 762 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698