[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-11-06 Thread Wang Pengcheng via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG7c50bcb44170: [RISCV] Support -mcpu/mtune=native (authored by pcwang-thead). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136930/new/

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-11-06 Thread Wang Pengcheng via Phabricator via cfe-commits
pcwang-thead added a comment. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136930/new/ https://reviews.llvm.org/D136930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-11-04 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng accepted this revision. kito-cheng added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136930/new/ https://reviews.llvm.org/D136930

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-11-01 Thread Wang Pengcheng via Phabricator via cfe-commits
pcwang-thead updated this revision to Diff 472228. pcwang-thead added a comment. - Add release note. - Add tests to `riscv-cpus.c`. - Add `getRISCVTargetCPU`. - Make diagnostic more exact for `native`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-31 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2190 CmdArgs.push_back("-tune-cpu"); -CmdArgs.push_back(A->getValue()); +if (strcmp(A->getValue(), "native") == 0) +

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-31 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2190 CmdArgs.push_back("-tune-cpu"); -CmdArgs.push_back(A->getValue()); +if (strcmp(A->getValue(), "native") == 0) +

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-31 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng added a comment. Maybe we could add test like aarch64? https://github.com/llvm/llvm-project/blob/main/clang/test/Driver/aarch64-mcpu.c#L20 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136930/new/ https://reviews.llvm.org/D136930

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-30 Thread Wang Pengcheng via Phabricator via cfe-commits
pcwang-thead added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2190 CmdArgs.push_back("-tune-cpu"); -CmdArgs.push_back(A->getValue()); +if (strcmp(A->getValue(), "native") == 0) +

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-30 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2190 CmdArgs.push_back("-tune-cpu"); -CmdArgs.push_back(A->getValue()); +if (strcmp(A->getValue(), "native") == 0) +

[PATCH] D136930: [RISCV] Support -mcpu/mtune=native

2022-10-28 Thread Wang Pengcheng via Phabricator via cfe-commits
pcwang-thead created this revision. pcwang-thead added reviewers: kito-cheng, craig.topper, asb. Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult,