clang 24.0.0git
FunctionUtils.h
Go to the documentation of this file.
1//===--- FunctionUtils.h - Shared function emission queries -----*- 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 holds the queries that both classic CodeGen and CIR CodeGen need
10// while emitting a function body.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_CODEGENUTILS_FUNCTIONUTILS_H
15#define LLVM_CLANG_CODEGENUTILS_FUNCTIONUTILS_H
16
19
20namespace clang::CodeGenUtils {
21
22/// Decide whether we need to emit the lifetime markers.
23bool shouldEmitLifetimeMarkers(const CodeGenOptions &CGOpts,
24 const LangOptions &LangOpts);
25
26} // namespace clang::CodeGenUtils
27
28#endif // LLVM_CLANG_CODEGENUTILS_FUNCTIONUTILS_H
Defines the clang::LangOptions interface.
bool shouldEmitLifetimeMarkers(const CodeGenOptions &CGOpts, const LangOptions &LangOpts)
Decide whether we need to emit the lifetime markers.