llvm.org GIT mirror llvm / d3f1849
Reformat the allocation-order arrays to a more conventional style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63121 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 55 addition(s) and 44 deletion(s). Raw diff Collapse all Expand all
236236 iterator allocation_order_end(const MachineFunction &MF) const;
237237 }];
238238 let MethodBodies = [{
239 // Does the function dedicate RBP / EBP to being a frame ptr?
240 // If so, don't allocate SPL or BPL.
241 static const unsigned X86_GR8_AO_64_fp[] =
242 {X86::AL, X86::CL, X86::DL, X86::SIL, X86::DIL,
243 X86::R8B, X86::R9B, X86::R10B, X86::R11B,
244 X86::BL, X86::R14B, X86::R15B, X86::R12B, X86::R13B};
245 // If not, just don't allocate SPL.
246 static const unsigned X86_GR8_AO_64[] =
247 {X86::AL, X86::CL, X86::DL, X86::SIL, X86::DIL,
248 X86::R8B, X86::R9B, X86::R10B, X86::R11B,
249 X86::BL, X86::R14B, X86::R15B, X86::R12B, X86::R13B, X86::BPL};
250 // In 32-mode, none of the 8-bit registers aliases EBP or ESP.
251 static const unsigned X86_GR8_AO_32[] =
252 {X86::AL, X86::CL, X86::DL, X86::AH, X86::CH, X86::DH, X86::BL, X86::BH};
239 // Does the function dedicate RBP / EBP to being a frame ptr?
240 // If so, don't allocate SPL or BPL.
241 static const unsigned X86_GR8_AO_64_fp[] = {
242 X86::AL, X86::CL, X86::DL, X86::SIL, X86::DIL,
243 X86::R8B, X86::R9B, X86::R10B, X86::R11B,
244 X86::BL, X86::R14B, X86::R15B, X86::R12B, X86::R13B
245 };
246 // If not, just don't allocate SPL.
247 static const unsigned X86_GR8_AO_64[] = {
248 X86::AL, X86::CL, X86::DL, X86::SIL, X86::DIL,
249 X86::R8B, X86::R9B, X86::R10B, X86::R11B,
250 X86::BL, X86::R14B, X86::R15B, X86::R12B, X86::R13B, X86::BPL
251 };
252 // In 32-mode, none of the 8-bit registers aliases EBP or ESP.
253 static const unsigned X86_GR8_AO_32[] = {
254 X86::AL, X86::CL, X86::DL, X86::AH, X86::CH, X86::DH, X86::BL, X86::BH
255 };
253256
254257 GR8Class::iterator
255258 GR8Class::allocation_order_begin(const MachineFunction &MF) const {
289292 iterator allocation_order_end(const MachineFunction &MF) const;
290293 }];
291294 let MethodBodies = [{
292 // Does the function dedicate RBP / EBP to being a frame ptr?
293 // If so, don't allocate SP or BP.
294 static const unsigned X86_GR16_AO_64_fp[] =
295 {X86::AX, X86::CX, X86::DX, X86::SI, X86::DI,
296 X86::R8W, X86::R9W, X86::R10W, X86::R11W,
297 X86::BX, X86::R14W, X86::R15W, X86::R12W, X86::R13W};
298 static const unsigned X86_GR16_AO_32_fp[] =
299 {X86::AX, X86::CX, X86::DX, X86::SI, X86::DI, X86::BX};
300 // If not, just don't allocate SPL.
301 static const unsigned X86_GR16_AO_64[] =
302 {X86::AX, X86::CX, X86::DX, X86::SI, X86::DI,
303 X86::R8W, X86::R9W, X86::R10W, X86::R11W,
304 X86::BX, X86::R14W, X86::R15W, X86::R12W, X86::R13W, X86::BP};
305 static const unsigned X86_GR16_AO_32[] =
306 {X86::AX, X86::CX, X86::DX, X86::SI, X86::DI, X86::BX, X86::BP};
295 // Does the function dedicate RBP / EBP to being a frame ptr?
296 // If so, don't allocate SP or BP.
297 static const unsigned X86_GR16_AO_64_fp[] = {
298 X86::AX, X86::CX, X86::DX, X86::SI, X86::DI,
299 X86::R8W, X86::R9W, X86::R10W, X86::R11W,
300 X86::BX, X86::R14W, X86::R15W, X86::R12W, X86::R13W
301 };
302 static const unsigned X86_GR16_AO_32_fp[] = {
303 X86::AX, X86::CX, X86::DX, X86::SI, X86::DI, X86::BX
304 };
305 // If not, just don't allocate SPL.
306 static const unsigned X86_GR16_AO_64[] = {
307 X86::AX, X86::CX, X86::DX, X86::SI, X86::DI,
308 X86::R8W, X86::R9W, X86::R10W, X86::R11W,
309 X86::BX, X86::R14W, X86::R15W, X86::R12W, X86::R13W, X86::BP
310 };
311 static const unsigned X86_GR16_AO_32[] = {
312 X86::AX, X86::CX, X86::DX, X86::SI, X86::DI, X86::BX, X86::BP
313 };
307314
308315 GR16Class::iterator
309316 GR16Class::allocation_order_begin(const MachineFunction &MF) const {
353360 iterator allocation_order_end(const MachineFunction &MF) const;
354361 }];
355362 let MethodBodies = [{
356 // Does the function dedicate RBP / EBP to being a frame ptr?
357 // If so, don't allocate ESP or EBP.
358 static const unsigned X86_GR32_AO_64_fp[] =
359 {X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI,
360 X86::R8D, X86::R9D, X86::R10D, X86::R11D,
361 X86::EBX, X86::R14D, X86::R15D, X86::R12D, X86::R13D};
362 static const unsigned X86_GR32_AO_32_fp[] =
363 {X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI, X86::EBX};
364 // If not, just don't allocate SPL.
365 static const unsigned X86_GR32_AO_64[] =
366 {X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI,
367 X86::R8D, X86::R9D, X86::R10D, X86::R11D,
368 X86::EBX, X86::R14D, X86::R15D, X86::R12D, X86::R13D, X86::EBP};
369 static const unsigned X86_GR32_AO_32[] =
370 {X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI, X86::EBX, X86::EBP};
363 // Does the function dedicate RBP / EBP to being a frame ptr?
364 // If so, don't allocate ESP or EBP.
365 static const unsigned X86_GR32_AO_64_fp[] = {
366 X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI,
367 X86::R8D, X86::R9D, X86::R10D, X86::R11D,
368 X86::EBX, X86::R14D, X86::R15D, X86::R12D, X86::R13D
369 };
370 static const unsigned X86_GR32_AO_32_fp[] = {
371 X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI, X86::EBX
372 };
373 // If not, just don't allocate SPL.
374 static const unsigned X86_GR32_AO_64[] = {
375 X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI,
376 X86::R8D, X86::R9D, X86::R10D, X86::R11D,
377 X86::EBX, X86::R14D, X86::R15D, X86::R12D, X86::R13D, X86::EBP
378 };
379 static const unsigned X86_GR32_AO_32[] = {
380 X86::EAX, X86::ECX, X86::EDX, X86::ESI, X86::EDI, X86::EBX, X86::EBP
381 };
371382
372383 GR32Class::iterator
373384 GR32Class::allocation_order_begin(const MachineFunction &MF) const {