Artem Serov | 12e097c | 2016-08-08 15:13:26 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ART_COMPILER_UTILS_ARM_ASSEMBLER_ARM_SHARED_H_ |
| 18 | #define ART_COMPILER_UTILS_ARM_ASSEMBLER_ARM_SHARED_H_ |
| 19 | |
| 20 | namespace art { |
| 21 | namespace arm { |
| 22 | |
| 23 | enum LoadOperandType { |
| 24 | kLoadSignedByte, |
| 25 | kLoadUnsignedByte, |
| 26 | kLoadSignedHalfword, |
| 27 | kLoadUnsignedHalfword, |
| 28 | kLoadWord, |
| 29 | kLoadWordPair, |
| 30 | kLoadSWord, |
| 31 | kLoadDWord |
| 32 | }; |
| 33 | |
| 34 | enum StoreOperandType { |
| 35 | kStoreByte, |
| 36 | kStoreHalfword, |
| 37 | kStoreWord, |
| 38 | kStoreWordPair, |
| 39 | kStoreSWord, |
| 40 | kStoreDWord |
| 41 | }; |
| 42 | |
| 43 | // Set condition codes request. |
| 44 | enum SetCc { |
| 45 | kCcDontCare, // Allows prioritizing 16-bit instructions on Thumb2 whether they set CCs or not. |
| 46 | kCcSet, |
| 47 | kCcKeep, |
| 48 | }; |
| 49 | |
| 50 | } // namespace arm |
| 51 | } // namespace art |
| 52 | |
| 53 | #endif // ART_COMPILER_UTILS_ARM_ASSEMBLER_ARM_SHARED_H_ |