[PATCH] D71124: [RISCV] support clang driver to select cpu

2020-11-30 Thread Ivan Serdyuk via Phabricator via cfe-commits
oceanfish81 added a comment. @khchen , how should I obtain available (v)CPU features? Any sample code, that should work on RISC-V? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71124/new/ https://reviews.llvm.org/D71124

[PATCH] D71124: [RISCV] support clang driver to select cpu

2020-11-26 Thread Ivan Serdyuk via Phabricator via cfe-commits
oceanfish81 added a comment. @khchen , what is the recomended way to get the current CPU features? I see that there are some ISA extensions defined here . So RISC-V back-end has another API, for both identifying

[PATCH] D71124: [RISCV] support clang driver to select cpu

2020-11-25 Thread Ivan Serdyuk via Phabricator via cfe-commits
oceanfish81 added a comment. Herald added subscribers: frasercrmck, dexonsmith, NickHung, pengfei. I tried to build the following: https://gist.github.com/advancedwebdeveloper/09033869445a09a2e297a73387d46c41/raw/bf7dac33e256621c445f9e61f88a832e50d901a3/llvm_cpu_features_investigation.cpp but