diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2024-02-05 08:19:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 08:19:53 +0100 |
commit | 500846d2f542c93e349161a39a1baae0f1f6fad0 (patch) | |
tree | 8dfc8d71ca4b4d9066c97aaeadad71abd52a9ba9 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8ed046fc15eae08a9cf7ec02974330d52606c663 (diff) | |
download | llvm-500846d2f542c93e349161a39a1baae0f1f6fad0.zip llvm-500846d2f542c93e349161a39a1baae0f1f6fad0.tar.gz llvm-500846d2f542c93e349161a39a1baae0f1f6fad0.tar.bz2 |
[AMDGPU] Introduce Code Object V6 (#76954)
Introduce Code Object V6 in Clang, LLD, Flang and LLVM. This is the same
as V5 except a new "generic version" flag can be present in EFLAGS. This
is related to new generic targets that'll be added in a follow-up patch.
It's also likely V6 will have new changes (possibly new metadata
entries) added later.
Docs change are part of the follow-up patch #76955
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index a3c41fb..ffde7f5 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -284,6 +284,8 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, if (const llvm::opt::Arg *a = args.getLastArg( clang::driver::options::OPT_mcode_object_version_EQ)) { llvm::StringRef s = a->getValue(); + if (s == "6") + opts.CodeObjectVersion = llvm::CodeObjectVersionKind::COV_6; if (s == "5") opts.CodeObjectVersion = llvm::CodeObjectVersionKind::COV_5; if (s == "4") |