FreeBSD Bugzilla – Attachment 150537 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]
proposed clang350-import llvm patch
sparc64.patch (text/plain), 1.53 KB, created by
craig001
on 2014-12-13 06:36:23 UTC
(
hide
)
Description:
proposed clang350-import llvm patch
Filename:
MIME Type:
Creator:
craig001
Created:
2014-12-13 06:36:23 UTC
Size:
1.53 KB
patch
obsolete
>Index: lib/Target/Sparc/SparcISelLowering.cpp >=================================================================== >--- lib/Target/Sparc/SparcISelLowering.cpp (revision 222951) >+++ 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,16 @@ > return; > } > } >+ >+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; >+ >+ report_fatal_error("Invalid register name global variable"); >+} >Index: lib/Target/Sparc/SparcISelLowering.h >=================================================================== >--- lib/Target/Sparc/SparcISelLowering.h (revision 222951) >+++ 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