Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/X86/AsmParser/X86AsmParserCommon.h
Line
Count
Source
1
//===-- X86AsmParserCommon.h - Common functions for X86AsmParser ---------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_LIB_TARGET_X86_ASMPARSER_X86ASMPARSERCOMMON_H
10
#define LLVM_LIB_TARGET_X86_ASMPARSER_X86ASMPARSERCOMMON_H
11
12
#include "llvm/Support/MathExtras.h"
13
14
namespace llvm {
15
16
2.40k
inline bool isImmSExti16i8Value(uint64_t Value) {
17
2.40k
  return isInt<8>(Value) ||
18
2.40k
         
(1.19k
isUInt<16>(Value)1.19k
&&
isInt<8>(static_cast<int16_t>(Value))1.19k
);
19
2.40k
}
20
21
3.06k
inline bool isImmSExti32i8Value(uint64_t Value) {
22
3.06k
  return isInt<8>(Value) ||
23
3.06k
         
(1.52k
isUInt<32>(Value)1.52k
&&
isInt<8>(static_cast<int32_t>(Value))1.52k
);
24
3.06k
}
25
26
2.46k
inline bool isImmSExti64i8Value(uint64_t Value) {
27
2.46k
  return isInt<8>(Value);
28
2.46k
}
29
30
1.21k
inline bool isImmSExti64i32Value(uint64_t Value) {
31
1.21k
  return isInt<32>(Value);
32
1.21k
}
33
34
101k
inline bool isImmUnsignedi8Value(uint64_t Value) {
35
101k
  return isUInt<8>(Value) || 
isInt<8>(Value)50
;
36
101k
}
37
38
} // End of namespace llvm
39
40
#endif