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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 1665263003: Subzero. ARM32. Nonsfi. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 10 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/IceOperand.cpp ('k') | src/IceTargetLoweringARM32.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/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===//
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 /// \file 10 /// \file
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 break; 836 break;
837 } 837 }
838 case VariableDeclaration::Initializer::ZeroInitializerKind: 838 case VariableDeclaration::Initializer::ZeroInitializerKind:
839 Str << "\t.zero\t" << Init->getNumBytes() << "\n"; 839 Str << "\t.zero\t" << Init->getNumBytes() << "\n";
840 break; 840 break;
841 case VariableDeclaration::Initializer::RelocInitializerKind: { 841 case VariableDeclaration::Initializer::RelocInitializerKind: {
842 const auto *Reloc = 842 const auto *Reloc =
843 llvm::cast<VariableDeclaration::RelocInitializer>(Init.get()); 843 llvm::cast<VariableDeclaration::RelocInitializer>(Init.get());
844 Str << "\t" << getEmit32Directive() << "\t"; 844 Str << "\t" << getEmit32Directive() << "\t";
845 Str << Reloc->getDeclaration()->mangleName(Ctx); 845 Str << Reloc->getDeclaration()->mangleName(Ctx);
846 if (Reloc->hasFixup()) {
847 // TODO(jpp): this is ARM32 specific.
848 Str << "(GOTOFF)";
849 }
846 if (RelocOffsetT Offset = Reloc->getOffset()) { 850 if (RelocOffsetT Offset = Reloc->getOffset()) {
847 if (Offset >= 0 || (Offset == INT32_MIN)) 851 if (Offset >= 0 || (Offset == INT32_MIN))
848 Str << " + " << Offset; 852 Str << " + " << Offset;
849 else 853 else
850 Str << " - " << -Offset; 854 Str << " - " << -Offset;
851 } 855 }
852 Str << "\n"; 856 Str << "\n";
853 break; 857 break;
854 } 858 }
855 } 859 }
(...skipping 19 matching lines...) Expand all
875 case Target_##X: \ 879 case Target_##X: \
876 return ::X::createTargetHeaderLowering(Ctx); 880 return ::X::createTargetHeaderLowering(Ctx);
877 #include "llvm/Config/SZTargets.def" 881 #include "llvm/Config/SZTargets.def"
878 #undef SUBZERO_TARGET 882 #undef SUBZERO_TARGET
879 } 883 }
880 } 884 }
881 885
882 TargetHeaderLowering::~TargetHeaderLowering() = default; 886 TargetHeaderLowering::~TargetHeaderLowering() = default;
883 887
884 } // end of namespace Ice 888 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698