Add Xtensa MCTargetDesc stub. Add XtensaTargetMachine and XtensaTargetInfo.
Modify llib/Target/LLVMBuild.txt. Now Xtensa target could be builded as EXPERIMENTAL.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Quickly scanning this patch shows that it still uses the previous license. I think these need to be updated to the new Apache 2.0 license, see any file for the up-to-date file header.
Patch is updated according to LLVM upstream version and latest Xtensa backend version.
Hi everyone. Since this has been accepted for some time now, we're planning to commit this on Monday (December 16th). Please let us know if there is anything else we should address.
llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp | ||
---|---|---|
37 | delete blank line. Just return the string. | |
llvm/lib/Target/Xtensa/XtensaTargetMachine.h | ||
26 | Other targets use a static local variable in llvm::get*Target but this seems fine. | |
29 | include llvm/Target/TargetLoweringObjectFile.h for this | |
44 | delete the comment. override self explains. | |
52 | I think all patches use /* footer for header guards, which should all be fixed. |
llvm/lib/Target/Xtensa/MCTargetDesc/XtensaMCTargetDesc.cpp | ||
---|---|---|
14 | Global initialization function should use LLVM_EXTERNAL_VISIBILITY. | |
llvm/lib/Target/Xtensa/TargetInfo/CMakeLists.txt | ||
2 | This shouldn't be necessary, these directory are already available for include directives. | |
llvm/lib/Target/Xtensa/TargetInfo/XtensaTargetInfo.cpp | ||
18 | LLVM_EXTERNAL_VISIBILITY | |
llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp | ||
28 | LLVM_EXTERNAL_VISIBILITY | |
llvm/lib/Target/Xtensa/XtensaTargetMachine.h | ||
24 | Appears unused. | |
26 | (Optional) This is gonna be used in multiple files, it might worth moving it ino a header file. | |
29 | This should not be necessary as long as the destructor of XtensaTargetMachine is in *.cpp file. Forward declaration should be enough (and it is already forward declared in TargetMachine.h). |
llvm/lib/Target/Xtensa/MCTargetDesc/XtensaMCTargetDesc.cpp | ||
---|---|---|
14 | fixed | |
llvm/lib/Target/Xtensa/TargetInfo/CMakeLists.txt | ||
2 | fixed | |
llvm/lib/Target/Xtensa/TargetInfo/XtensaTargetInfo.cpp | ||
18 | fixed | |
llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp | ||
28 | fixed | |
37 | fixed | |
llvm/lib/Target/Xtensa/XtensaTargetMachine.h | ||
24 | fixed | |
26 | I added "llvm/lib/Target/Xtensa/TargetInfo/XtensaTargetInfo.h" file with "&getTheXtensaTarget();" function, this approach is similar to other backends. | |
44 | fixed | |
52 | fixed |
Global initialization function should use LLVM_EXTERNAL_VISIBILITY.