Initial version of Go bindings.
[oota-llvm.git] / lib / Target / R600 / AMDGPUAsmPrinter.cpp
index 1a0a7db9b1cdd3d139f6c8e5491f1baf8bad8866..5511d7c6f8fffd636516da30a342bf921f059b15 100644 (file)
@@ -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();