Polly 19.0.0git
ScopLocation.h
Go to the documentation of this file.
1//=== ScopLocation.h -- Debug location helper for ScopDetection -*- 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// Helper function for extracting region debug information.
10//
11//===----------------------------------------------------------------------===//
12//
13#ifndef POLLY_SCOP_LOCATION_H
14#define POLLY_SCOP_LOCATION_H
15
16#include <string>
17
18namespace llvm {
19class Region;
20} // namespace llvm
21
22namespace polly {
23
24/// Get the location of a region from the debug info.
25///
26/// @param R The region to get debug info for.
27/// @param LineBegin The first line in the region.
28/// @param LineEnd The last line in the region.
29/// @param FileName The filename where the region was defined.
30void getDebugLocation(const llvm::Region *R, unsigned &LineBegin,
31 unsigned &LineEnd, std::string &FileName);
32} // namespace polly
33
34#endif // POLLY_SCOP_LOCATION_H
This file contains the declaration of the PolyhedralInfo class, which will provide an interface to ex...
void getDebugLocation(const llvm::Region *R, unsigned &LineBegin, unsigned &LineEnd, std::string &FileName)
Get the location of a region from the debug info.