forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ifd894fe72a12b977fa159bde1b206637f42dffa9
- Loading branch information
Showing
35 changed files
with
1,352 additions
and
484 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//===---- CoreContainers.h - Symbol Containers for Core APIs ----*- 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Symbol container types for core ORC APIs. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_EXECUTIONENGINE_ORC_CORECONTAINERS_H | ||
#define LLVM_EXECUTIONENGINE_ORC_CORECONTAINERS_H | ||
|
||
#include "llvm/ADT/DenseMap.h" | ||
#include "llvm/ADT/DenseSet.h" | ||
#include "llvm/ExecutionEngine/JITSymbol.h" | ||
#include "llvm/ExecutionEngine/Orc/Shared/ExecutorSymbolDef.h" | ||
#include "llvm/ExecutionEngine/Orc/SymbolStringPool.h" | ||
|
||
#include <vector> | ||
|
||
namespace llvm::orc { | ||
|
||
class JITDylib; | ||
|
||
/// A set of symbol names (represented by SymbolStringPtrs for | ||
// efficiency). | ||
using SymbolNameSet = DenseSet<SymbolStringPtr>; | ||
|
||
/// A vector of symbol names. | ||
using SymbolNameVector = std::vector<SymbolStringPtr>; | ||
|
||
/// A map from symbol names (as SymbolStringPtrs) to JITSymbols | ||
/// (address/flags pairs). | ||
using SymbolMap = DenseMap<SymbolStringPtr, ExecutorSymbolDef>; | ||
|
||
/// A map from symbol names (as SymbolStringPtrs) to JITSymbolFlags. | ||
using SymbolFlagsMap = DenseMap<SymbolStringPtr, JITSymbolFlags>; | ||
|
||
/// A map from JITDylibs to sets of symbols. | ||
using SymbolDependenceMap = DenseMap<JITDylib *, SymbolNameSet>; | ||
|
||
} // End namespace llvm::orc | ||
|
||
#endif // LLVM_EXECUTIONENGINE_ORC_CORECONTAINERS_H |
Oops, something went wrong.