Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching constructor for initialization of llvm::TargetSubtargetInfo when building with LLVM 12 #116

Closed
XAMPPRocky opened this issue May 9, 2021 · 3 comments

Comments

@XAMPPRocky
Copy link
Contributor

When trying to build with LLVM 12, I ran into the following build error. It seems like there was just an extra argument added that isn't handled.

Command

cmake -S .. -DLLVM_DIR=/usr/local/Cellar/llvm/12.0.0/lib/cmake/llvm
LLVM_DIR=/usr/local/Cellar/llvm/12.0.0/lib/cmake/llvm make llvm-cbe
/Users/src/llvm-cbe/lib/Target/CBackend/TargetInfo/../CTargetMachine.h:36:9: error: no matching constructor for initialization of 'llvm::TargetSubtargetInfo'
      : TargetSubtargetInfo(TT, CPU, FS, ArrayRef<SubtargetFeatureKV>(),
        ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/llvm/12.0.0/include/llvm/CodeGen/TargetSubtargetInfo.h:61:3: note: candidate constructor not viable: requires 12 arguments, but 11 were provided
  TargetSubtargetInfo(const Triple &TT, StringRef CPU, StringRef TuneCPU,
  ^
/usr/local/Cellar/llvm/12.0.0/include/llvm/CodeGen/TargetSubtargetInfo.h:76:3: note: candidate constructor not viable: requires 1 argument, but 11 were provided
  TargetSubtargetInfo(const TargetSubtargetInfo &) = delete;
  ^
/usr/local/Cellar/llvm/12.0.0/include/llvm/CodeGen/TargetSubtargetInfo.h:75:3: note: candidate constructor not viable: requires 0 arguments, but 11 were provided
  TargetSubtargetInfo() = delete;
  ^
@hikari-no-yume
Copy link
Collaborator

We only just got LLVM 11 support (#91), there's no LLVM 12 support yet unfortunately.

If this is the only problem, it might be easy to fix.

@jfm535
Copy link

jfm535 commented Jul 5, 2021

this is also handled by my pull req #140 The reason for its failure is a missing field called TuneCPU

@dpaoliello
Copy link
Collaborator

LLVM 16 is now supported #164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants