[llvm] 7069144 - [ORC] Add an ExecutionSession::getPageSize convenience method.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 13:52:31 PDT 2023


Author: Lang Hames
Date: 2023-08-08T13:52:23-07:00
New Revision: 706914481940a4b114fb02e480f7c2b8e7865c02

URL: https://github.com/llvm/llvm-project/commit/706914481940a4b114fb02e480f7c2b8e7865c02
DIFF: https://github.com/llvm/llvm-project/commit/706914481940a4b114fb02e480f7c2b8e7865c02.diff

LOG: [ORC] Add an ExecutionSession::getPageSize convenience method.

This forwards to ExecutorProcessControl::getPageSize and saves clients from
spelling out .getExecutorProcessControl() everywhere.

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/Core.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index 8851b655b4b286..628d48015481e9 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -1434,6 +1434,9 @@ class ExecutionSession {
   /// Return the triple for the executor.
   const Triple &getTargetTriple() const { return EPC->getTargetTriple(); }
 
+  // Return the page size for the executor.
+  size_t getPageSize() const { return EPC->getPageSize(); }
+
   /// Get the SymbolStringPool for this instance.
   std::shared_ptr<SymbolStringPool> getSymbolStringPool() {
     return EPC->getSymbolStringPool();


        


More information about the llvm-commits mailing list