1//===---- MCDCState.h - Per-Function MC/DC state ----------------*- 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// Per-Function MC/DC state for PGO
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_LIB_CODEGEN_MCDCSTATE_H
14#define LLVM_CLANG_LIB_CODEGEN_MCDCSTATE_H
15
16#include "llvm/ADT/DenseMap.h"
17#include "llvm/ProfileData/Coverage/MCDCTypes.h"
18
19namespace clang {
20class Stmt;
21} // namespace clang
22
23namespace clang::CodeGen::MCDC {
24
25using namespace llvm::coverage::mcdc;
26
27/// Per-Function MC/DC state
28struct State {
29 unsigned BitmapBytes = 0;
30 llvm::DenseMap<const Stmt *, unsigned> BitmapMap;
31 llvm::DenseMap<const Stmt *, ConditionID> CondIDMap;
32};
33
34} // namespace clang::CodeGen::MCDC
35
36#endif // LLVM_CLANG_LIB_CODEGEN_MCDCSTATE_H
37

source code of clang/lib/CodeGen/MCDCState.h