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

Side by Side Diff: lib/Target/Mips/MCTargetDesc/MipsBaseInfo.h

Issue 27690005: [MIPS] Modify LongBranch expansion to work with sandboxing (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Update. Created 7 years, 1 month 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
OLDNEW
1 //===-- MipsBaseInfo.h - Top level definitions for MIPS MC ------*- C++ -*-===// 1 //===-- MipsBaseInfo.h - Top level definitions for MIPS MC ------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
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 contains small standalone helper functions and enum definitions for 10 // This file contains small standalone helper functions and enum definitions for
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 /// MO_HIGHER/HIGHEST - Represents the highest or higher half word of a 84 /// MO_HIGHER/HIGHEST - Represents the highest or higher half word of a
85 /// 64-bit symbol address. 85 /// 64-bit symbol address.
86 MO_HIGHER, 86 MO_HIGHER,
87 MO_HIGHEST, 87 MO_HIGHEST,
88 88
89 /// MO_GOT_HI16/LO16, MO_CALL_HI16/LO16 - Relocations used for large GOTs. 89 /// MO_GOT_HI16/LO16, MO_CALL_HI16/LO16 - Relocations used for large GOTs.
90 MO_GOT_HI16, 90 MO_GOT_HI16,
91 MO_GOT_LO16, 91 MO_GOT_LO16,
92 MO_CALL_HI16, 92 MO_CALL_HI16,
93 MO_CALL_LO16 93 MO_CALL_LO16,
94
95 // @LOCALMOD-START
96 /// MO_NACL_LONG_BRANCH_HI16/LO16 - Represents high/low parts of the
97 /// long branch target basic block offset.
98 MO_NACL_LONG_BRANCH_HI16,
99 MO_NACL_LONG_BRANCH_LO16
100 // @LOCALMOD-END
94 }; 101 };
95 102
96 enum { 103 enum {
97 //===------------------------------------------------------------------===// 104 //===------------------------------------------------------------------===//
98 // Instruction encodings. These are the standard/most common forms for 105 // Instruction encodings. These are the standard/most common forms for
99 // Mips instructions. 106 // Mips instructions.
100 // 107 //
101 108
102 // Pseudo - This represents an instruction that is a pseudo instruction 109 // Pseudo - This represents an instruction that is a pseudo instruction
103 // or one that has not been implemented yet. It is illegal to code generate 110 // or one that has not been implemented yet. It is illegal to code generate
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 151 }
145 152
146 if (Kind != MCExpr::SymbolRef) 153 if (Kind != MCExpr::SymbolRef)
147 return std::make_pair((const MCSymbolRefExpr*)0, (int64_t)0); 154 return std::make_pair((const MCSymbolRefExpr*)0, (int64_t)0);
148 155
149 return std::make_pair(cast<MCSymbolRefExpr>(Expr), 0); 156 return std::make_pair(cast<MCSymbolRefExpr>(Expr), 0);
150 } 157 }
151 } 158 }
152 159
153 #endif 160 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698