[llvm] [Xtensa] Initial codegen support from IR (PR #78548)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 07:16:51 PST 2024
================
@@ -36,10 +37,15 @@ class XtensaTargetMachine : public LLVMTargetMachine {
std::optional<CodeModel::Model> CM, CodeGenOptLevel OL,
bool JIT);
+ const XtensaSubtarget *getSubtargetImpl() const { return &Subtarget; }
+ const XtensaSubtarget *getSubtargetImpl(const Function &F) const override;
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
TargetLoweringObjectFile *getObjFileLowering() const override {
return TLOF.get();
}
+
+protected:
+ XtensaSubtarget Subtarget;
----------------
s-barannikov wrote:
See the comment above, there should be no "default" subtarget.
https://github.com/llvm/llvm-project/pull/78548
More information about the llvm-commits
mailing list