diff options
Diffstat (limited to 'llvm')
5 files changed, 41 insertions, 41 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h index 2f52edb8de2..d0a9ca5c058 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h @@ -1277,7 +1277,7 @@ Error JITDylib::define(std::unique_ptr<MaterializationUnitType> &MU) { }); } -/// ReexportsGenerator can be used with JITDylib::setGenerator to automatically +/// ReexportsGenerator can be used with JITDylib::addGenerator to automatically /// re-export a subset of the source JITDylib's symbols in the target. class ReexportsGenerator : public JITDylib::DefinitionGenerator { public: diff --git a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h index c797dbbbdfd..f7255c5af84 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h @@ -304,7 +304,7 @@ public: Load(ObjectLayer &L, const char *FileName); /// Try to create a StaticLibrarySearchGenerator from the given memory buffer. - /// Thhis call will succeed if the buffer contains a valid archive, otherwise + /// This call will succeed if the buffer contains a valid archive, otherwise /// it will return an error. static Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>> Create(ObjectLayer &L, std::unique_ptr<MemoryBuffer> ArchiveBuffer); diff --git a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h index a7ed5372d1e..a9ab3a630a6 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h @@ -84,7 +84,7 @@ public: return std::move(LTP); } - /// Get a free trampoline. Returns an error if one can not be provide (e.g. + /// Get a free trampoline. Returns an error if one can not be provided (e.g. /// because the pool is empty and can not be grown). Expected<JITTargetAddress> getTrampoline() override { std::lock_guard<std::mutex> Lock(LTPMutex); diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcABISupport.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcABISupport.h index 38246bc480b..6a23bf3d0cd 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/OrcABISupport.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcABISupport.h @@ -71,7 +71,7 @@ public: }; /// Provide information about stub blocks generated by the -/// makeIndirectStubsBlock function. +/// makeIndirectStubsBlock function. template <unsigned StubSizeVal> class GenericIndirectStubsInfo { public: const static unsigned StubSize = StubSizeVal; @@ -95,13 +95,13 @@ public: unsigned getNumStubs() const { return NumStubs; } /// Get a pointer to the stub at the given index, which must be in - /// the range 0 .. getNumStubs() - 1. + /// the range 0 .. getNumStubs() - 1. void *getStub(unsigned Idx) const { return static_cast<char *>(StubsMem.base()) + Idx * StubSize; } /// Get a pointer to the implementation-pointer at the given index, - /// which must be in the range 0 .. getNumStubs() - 1. + /// which must be in the range 0 .. getNumStubs() - 1. void **getPtr(unsigned Idx) const { char *PtrsBase = static_cast<char *>(StubsMem.base()) + NumStubs * StubSize; return reinterpret_cast<void **>(PtrsBase) + Idx; @@ -123,19 +123,19 @@ public: using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry, void *CallbackMgr); - /// Write the requsted number of trampolines into the given memory, - /// which must be big enough to hold 1 pointer, plus NumTrampolines - /// trampolines. + /// Write the requested number of trampolines into the given memory, + /// which must be big enough to hold 1 pointer, plus NumTrampolines + /// trampolines. static void writeTrampolines(uint8_t *TrampolineMem, void *ResolverAddr, unsigned NumTrampolines); /// Emit at least MinStubs worth of indirect call stubs, rounded out to - /// the nearest page size. + /// the nearest page size. /// /// E.g. Asking for 4 stubs on x86-64, where stubs are 8-bytes, with 4k /// pages will return a block of 512 stubs (4096 / 8 = 512). Asking for 513 @@ -154,14 +154,14 @@ public: using IndirectStubsInfo = GenericIndirectStubsInfo<8>; - /// Write the requsted number of trampolines into the given memory, - /// which must be big enough to hold 1 pointer, plus NumTrampolines - /// trampolines. + /// Write the requested number of trampolines into the given memory, + /// which must be big enough to hold 1 pointer, plus NumTrampolines + /// trampolines. static void writeTrampolines(uint8_t *TrampolineMem, void *ResolverAddr, unsigned NumTrampolines); /// Emit at least MinStubs worth of indirect call stubs, rounded out to - /// the nearest page size. + /// the nearest page size. /// /// E.g. Asking for 4 stubs on x86-64, where stubs are 8-bytes, with 4k /// pages will return a block of 512 stubs (4096 / 8 = 512). Asking for 513 @@ -180,8 +180,8 @@ public: using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry, void *CallbackMgr); }; @@ -196,8 +196,8 @@ public: using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry, void *CallbackMgr); }; @@ -216,19 +216,19 @@ public: using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry, void *CallbackMgr); - /// Write the requsted number of trampolines into the given memory, - /// which must be big enough to hold 1 pointer, plus NumTrampolines - /// trampolines. + /// Write the requested number of trampolines into the given memory, + /// which must be big enough to hold 1 pointer, plus NumTrampolines + /// trampolines. static void writeTrampolines(uint8_t *TrampolineMem, void *ResolverAddr, unsigned NumTrampolines); /// Emit at least MinStubs worth of indirect call stubs, rounded out to - /// the nearest page size. + /// the nearest page size. /// /// E.g. Asking for 4 stubs on i386, where stubs are 8-bytes, with 4k /// pages will return a block of 512 stubs (4096 / 8 = 512). Asking for 513 @@ -249,16 +249,16 @@ public: using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// @brief Write the requsted number of trampolines into the given memory, - /// which must be big enough to hold 1 pointer, plus NumTrampolines - /// trampolines. + /// Write the requested number of trampolines into the given memory, + /// which must be big enough to hold 1 pointer, plus NumTrampolines + /// trampolines. static void writeTrampolines(uint8_t *TrampolineMem, void *ResolverAddr,unsigned NumTrampolines); - /// @brief Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry,void *CallbackMgr, bool isBigEndian); - /// @brief Emit at least MinStubs worth of indirect call stubs, rounded out to - /// the nearest page size. + /// Emit at least MinStubs worth of indirect call stubs, rounded out to + /// the nearest page size. /// /// E.g. Asking for 4 stubs on Mips32, where stubs are 8-bytes, with 4k /// pages will return a block of 512 stubs (4096 / 8 = 512). Asking for 513 @@ -291,17 +291,17 @@ public: using IndirectStubsInfo = GenericIndirectStubsInfo<32>; using JITReentryFn = JITTargetAddress (*)(void *CallbackMgr, void *TrampolineId); - /// @brief Write the resolver code into the given memory. The user is be - /// responsible for allocating the memory and setting permissions. + /// Write the resolver code into the given memory. The user is + /// responsible for allocating the memory and setting permissions. static void writeResolverCode(uint8_t *ResolveMem, JITReentryFn Reentry,void *CallbackMgr); - /// @brief Write the requsted number of trampolines into the given memory, - /// which must be big enough to hold 1 pointer, plus NumTrampolines - /// trampolines. + /// Write the requested number of trampolines into the given memory, + /// which must be big enough to hold 1 pointer, plus NumTrampolines + /// trampolines. static void writeTrampolines(uint8_t *TrampolineMem, void *ResolverAddr,unsigned NumTrampolines); - /// @brief Emit at least MinStubs worth of indirect call stubs, rounded out to - /// the nearest page size. + /// Emit at least MinStubs worth of indirect call stubs, rounded out to + /// the nearest page size. /// /// E.g. Asking for 4 stubs on Mips64, where stubs are 8-bytes, with 4k /// pages will return a block of 512 stubs (4096 / 8 = 512). Asking for 513 diff --git a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp index 440935ffe9f..1ac9a58aeae 100644 --- a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp +++ b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp @@ -202,7 +202,7 @@ createLocalIndirectStubsManagerBuilder(const Triple &T) { return std::make_unique< orc::LocalIndirectStubsManager<orc::OrcMips64>>(); }; - + case Triple::x86_64: if (T.getOS() == Triple::OSType::Win32) { return [](){ |