forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWDEV-179954 - OpenCL/LC - Merge branch amd-master into amd-common
Change-Id: Ia35fd55e8612ec5c14b5730b97a9c1115c552c5b
- Loading branch information
Showing
86 changed files
with
10,617 additions
and
1,355 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//===- InjectedSourceStream.h - PDB Headerblock Stream Access ---*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_DEBUGINFO_PDB_RAW_PDBINJECTEDSOURCESTREAM_H | ||
#define LLVM_DEBUGINFO_PDB_RAW_PDBINJECTEDSOURCESTREAM_H | ||
|
||
#include "llvm/DebugInfo/PDB/Native/HashTable.h" | ||
#include "llvm/DebugInfo/PDB/Native/RawTypes.h" | ||
#include "llvm/Support/Error.h" | ||
|
||
namespace llvm { | ||
namespace msf { | ||
class MappedBlockStream; | ||
} | ||
namespace pdb { | ||
class PDBFile; | ||
class PDBStringTable; | ||
|
||
class InjectedSourceStream { | ||
public: | ||
InjectedSourceStream(std::unique_ptr<msf::MappedBlockStream> Stream); | ||
Error reload(const PDBStringTable &Strings); | ||
|
||
using const_iterator = HashTable<SrcHeaderBlockEntry>::const_iterator; | ||
const_iterator begin() const { return InjectedSourceTable.begin(); } | ||
const_iterator end() const { return InjectedSourceTable.end(); } | ||
|
||
uint32_t size() const { return InjectedSourceTable.size(); } | ||
|
||
private: | ||
std::unique_ptr<msf::MappedBlockStream> Stream; | ||
|
||
const SrcHeaderBlockHeader* Header; | ||
HashTable<SrcHeaderBlockEntry> InjectedSourceTable; | ||
}; | ||
} | ||
} | ||
|
||
#endif |
43 changes: 43 additions & 0 deletions
43
include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//==- NativeEnumInjectedSources.cpp - Native Injected Source Enumerator --*-==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMINJECTEDSOURCES_H | ||
#define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMINJECTEDSOURCES_H | ||
|
||
#include "llvm/DebugInfo/PDB/IPDBEnumChildren.h" | ||
#include "llvm/DebugInfo/PDB/IPDBInjectedSource.h" | ||
#include "llvm/DebugInfo/PDB/Native/InjectedSourceStream.h" | ||
|
||
namespace llvm { | ||
namespace pdb { | ||
|
||
class InjectedSourceStream; | ||
class PDBStringTable; | ||
|
||
class NativeEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> { | ||
public: | ||
NativeEnumInjectedSources(PDBFile &File, const InjectedSourceStream &IJS, | ||
const PDBStringTable &Strings); | ||
|
||
uint32_t getChildCount() const override; | ||
std::unique_ptr<IPDBInjectedSource> | ||
getChildAtIndex(uint32_t Index) const override; | ||
std::unique_ptr<IPDBInjectedSource> getNext() override; | ||
void reset() override; | ||
|
||
private: | ||
PDBFile &File; | ||
const InjectedSourceStream &Stream; | ||
const PDBStringTable &Strings; | ||
InjectedSourceStream::const_iterator Cur; | ||
}; | ||
|
||
} // namespace pdb | ||
} // namespace llvm | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.