This is an automated email from the ASF dual-hosted git repository.
masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 496ca9a479 [LLVM] Use std::nullopt instead of llvm::None (#13617)
496ca9a479 is described below
commit 496ca9a479c76050e1c189f6889baa05f32fd902
Author: Krzysztof Parzyszek <[email protected]>
AuthorDate: Wed Dec 14 19:49:52 2022 -0600
[LLVM] Use std::nullopt instead of llvm::None (#13617)
Pass `std::nullopt` to initialization of `PassBuilder` for `PGOOptions`.
LLVM is moving away from its own `Optional` type to `std::optional`.
---
src/target/llvm/codegen_llvm.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/target/llvm/codegen_llvm.cc b/src/target/llvm/codegen_llvm.cc
index 7aae177888..526bcf0fb2 100644
--- a/src/target/llvm/codegen_llvm.cc
+++ b/src/target/llvm/codegen_llvm.cc
@@ -362,7 +362,7 @@ void CodeGenLLVM::Optimize() {
llvm::PipelineTuningOptions pto = llvm::PipelineTuningOptions();
llvm::PassInstrumentationCallbacks pic;
- llvm::PassBuilder builder(tm, pto, llvm::None, &pic);
+ llvm::PassBuilder builder(tm, pto, std::nullopt, &pic);
llvm::LoopAnalysisManager lam;
llvm::FunctionAnalysisManager fam;