diff options
author | Piyou Chen <piyou.chen@sifive.com> | 2024-10-04 12:02:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 12:02:39 +0800 |
commit | 1e5e153485b817422c311f9326e80781a83ea7bc (patch) | |
tree | 315d4d32387653f7b191225e34cdeb9a6cf39229 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7a5b9ef54eb96abd8415fd893576c42e51fd95db (diff) | |
download | llvm-1e5e153485b817422c311f9326e80781a83ea7bc.zip llvm-1e5e153485b817422c311f9326e80781a83ea7bc.tar.gz llvm-1e5e153485b817422c311f9326e80781a83ea7bc.tar.bz2 |
Revert "[RISCV][FMV] Support target_version" (#111096)
Reverts llvm/llvm-project#99040 due to https://lab.llvm.org/buildbot/#/builders/190/builds/7052
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5ba0981..25c1c49 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4287,13 +4287,8 @@ void CodeGenModule::emitMultiVersionFunctions() { } else if (const auto *TVA = CurFD->getAttr<TargetVersionAttr>()) { if (TVA->isDefaultVersion() && IsDefined) ShouldEmitResolver = true; + TVA->getFeatures(Feats); llvm::Function *Func = createFunction(CurFD); - if (getTarget().getTriple().isRISCV()) { - Feats.push_back(TVA->getName()); - } else { - assert(getTarget().getTriple().isAArch64()); - TVA->getFeatures(Feats); - } Options.emplace_back(Func, /*Architecture*/ "", Feats); } else if (const auto *TC = CurFD->getAttr<TargetClonesAttr>()) { if (IsDefined) |