OLD | NEW |
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 Loading... |
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 { |
| 713 llvm_unreachable("Not expecting to emit 64-bit integers"); |
| 714 } |
| 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 { |
711 llvm_unreachable("undef value encountered by emitter."); | 725 llvm_unreachable("undef value encountered by emitter."); |
712 } | 726 } |
713 */ | |
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 Loading... |
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 |
OLD | NEW |