Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/Basic/Targets/ARC.h
Line
Count
Source (jump to first uncovered line)
1
//===--- ARC.h - Declare ARC target feature support -------------*- C++ -*-===//
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
// This file declares ARC TargetInfo objects.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_ARC_H
14
#define LLVM_CLANG_LIB_BASIC_TARGETS_ARC_H
15
16
#include "clang/Basic/TargetInfo.h"
17
#include "clang/Basic/TargetOptions.h"
18
#include "llvm/ADT/Triple.h"
19
#include "llvm/Support/Compiler.h"
20
21
namespace clang {
22
namespace targets {
23
24
class LLVM_LIBRARY_VISIBILITY ARCTargetInfo : public TargetInfo {
25
public:
26
  ARCTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
27
3
      : TargetInfo(Triple) {
28
3
    NoAsmVariants = true;
29
3
    LongLongAlign = 32;
30
3
    SuitableAlign = 32;
31
3
    DoubleAlign = LongDoubleAlign = 32;
32
3
    SizeType = UnsignedInt;
33
3
    PtrDiffType = SignedInt;
34
3
    IntPtrType = SignedInt;
35
3
    UseZeroLengthBitfieldAlignment = true;
36
3
    resetDataLayout("e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-"
37
3
                    "i32:32:32-f32:32:32-i64:32-f64:32-a:0:32-n32");
38
3
  }
clang::targets::ARCTargetInfo::ARCTargetInfo(llvm::Triple const&, clang::TargetOptions const&)
Line
Count
Source
27
3
      : TargetInfo(Triple) {
28
3
    NoAsmVariants = true;
29
3
    LongLongAlign = 32;
30
3
    SuitableAlign = 32;
31
3
    DoubleAlign = LongDoubleAlign = 32;
32
3
    SizeType = UnsignedInt;
33
3
    PtrDiffType = SignedInt;
34
3
    IntPtrType = SignedInt;
35
3
    UseZeroLengthBitfieldAlignment = true;
36
3
    resetDataLayout("e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-"
37
3
                    "i32:32:32-f32:32:32-i64:32-f64:32-a:0:32-n32");
38
3
  }
Unexecuted instantiation: clang::targets::ARCTargetInfo::ARCTargetInfo(llvm::Triple const&, clang::TargetOptions const&)
39
40
  void getTargetDefines(const LangOptions &Opts,
41
                        MacroBuilder &Builder) const override;
42
43
3
  ArrayRef<Builtin::Info> getTargetBuiltins() const override { return None; }
44
45
3
  BuiltinVaListKind getBuiltinVaListKind() const override {
46
3
    return TargetInfo::VoidPtrBuiltinVaList;
47
3
  }
48
49
0
  const char *getClobbers() const override { return ""; }
50
51
0
  ArrayRef<const char *> getGCCRegNames() const override {
52
0
    static const char *const GCCRegNames[] = {
53
0
        "r0",  "r1",  "r2",  "r3",  "r4",  "r5",     "r6",  "r7",
54
0
        "r8",  "r9",  "r10", "r11", "r12", "r13",    "r14", "r15",
55
0
        "r16", "r17", "r18", "r19", "r20", "r21",    "r22", "r23",
56
0
        "r24", "r25", "gp",  "sp",  "fp",  "ilink1", "r30", "blink"};
57
0
    return llvm::makeArrayRef(GCCRegNames);
58
0
  }
59
60
0
  ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override {
61
0
    return None;
62
0
  }
63
64
  bool validateAsmConstraint(const char *&Name,
65
0
                             TargetInfo::ConstraintInfo &Info) const override {
66
0
    return false;
67
0
  }
68
};
69
70
} // namespace targets
71
} // namespace clang
72
73
#endif // LLVM_CLANG_LIB_BASIC_TARGETS_ARC_H