[llvm] ef6e121 - [ORC] Add a CPU getter to JITTargetMachineBuilder.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 19 13:31:34 PDT 2021
Author: Lang Hames
Date: 2021-05-19T13:31:25-07:00
New Revision: ef6e1213b1c0af387fe13754e02a14f3d31018a0
URL: https://github.com/llvm/llvm-project/commit/ef6e1213b1c0af387fe13754e02a14f3d31018a0
DIFF: https://github.com/llvm/llvm-project/commit/ef6e1213b1c0af387fe13754e02a14f3d31018a0.diff
LOG: [ORC] Add a CPU getter to JITTargetMachineBuilder.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h b/llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
index e3cfbfe421fac..2cc8c29b28137 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
@@ -79,6 +79,9 @@ class JITTargetMachineBuilder {
return *this;
}
+ /// Returns the CPU string.
+ const std::string &getCPU() const { return CPU; }
+
/// Set the relocation model.
JITTargetMachineBuilder &setRelocationModel(Optional<Reloc::Model> RM) {
this->RM = std::move(RM);
More information about the llvm-commits
mailing list