projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initial version of Go bindings.
[oota-llvm.git]
/
lib
/
Target
/
R600
/
AMDGPUAsmPrinter.cpp
diff --git
a/lib/Target/R600/AMDGPUAsmPrinter.cpp
b/lib/Target/R600/AMDGPUAsmPrinter.cpp
index 1a0a7db9b1cdd3d139f6c8e5491f1baf8bad8866..5511d7c6f8fffd636516da30a342bf921f059b15 100644
(file)
--- a/
lib/Target/R600/AMDGPUAsmPrinter.cpp
+++ b/
lib/Target/R600/AMDGPUAsmPrinter.cpp
@@
-97,6
+97,10
@@
void AMDGPUAsmPrinter::EmitEndOfAsmFile(Module &M) {
}
bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
+
+ // The starting address of all shader programs must be 256 bytes aligned.
+ MF.setAlignment(8);
+
SetupMachineFunction(MF);
EmitFunctionHeader();