FreeBSD Bugzilla – Attachment 150585 Details for
Bug 194473
clang built kernels failing to boot on sparc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new clang350-import llvm patch
llvm-sparc64.diff (text/plain), 1.63 KB, created by
craig001
on 2014-12-14 23:22:19 UTC
(
hide
)
Description:
new clang350-import llvm patch
Filename:
MIME Type:
Creator:
craig001
Created:
2014-12-14 23:22:19 UTC
Size:
1.63 KB
patch
obsolete
>Index: lib/Target/Sparc/SparcISelLowering.cpp >=================================================================== >--- lib/Target/Sparc/SparcISelLowering.cpp (revision 223367) >+++ lib/Target/Sparc/SparcISelLowering.cpp (working copy) >@@ -18,6 +18,7 @@ > #include "SparcRegisterInfo.h" > #include "SparcTargetMachine.h" > #include "SparcTargetObjectFile.h" >+#include "llvm/ADT/StringSwitch.h" > #include "llvm/CodeGen/CallingConvLower.h" > #include "llvm/CodeGen/MachineFrameInfo.h" > #include "llvm/CodeGen/MachineFunction.h" >@@ -3219,3 +3220,20 @@ > return; > } > } >+ >+#include "llvm/Support/raw_ostream.h" >+ >+unsigned SparcTargetLowering::getRegisterByName(const char* RegName, >+ EVT VT) const { >+ unsigned Reg = StringSwitch<unsigned>(RegName) >+ .Case("%g5", SP::G5) >+ .Case("%g6", SP::G6) >+ .Case("%g7", SP::G7) >+ .Default(0); >+ if (Reg) >+ return Reg; >+ >+ llvm::outs() << "Regname = " << RegName << "\n"; >+ >+ report_fatal_error("Invalid register name global variable"); >+} >Index: lib/Target/Sparc/SparcISelLowering.h >=================================================================== >--- lib/Target/Sparc/SparcISelLowering.h (revision 223367) >+++ lib/Target/Sparc/SparcISelLowering.h (working copy) >@@ -172,6 +172,8 @@ > MachineBasicBlock *BB, > unsigned Opcode, > unsigned CondCode = 0) const; >+ >+ unsigned getRegisterByName(const char* RegName, EVT VT) const override; > }; > } // end namespace llvm >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194473
:
150537
| 150585 |
150586