| author | |
| committer | |
| log | 9845264a0bcb1347216a00dad0fd67fe79555485 |
| tree | 8d5cc2402164c29e90834b39c3273615ee810c6d |
| parent | 0c477f3c793d483c3917f08971b867e19c8c88a9 |
| signature |
3 files changed, 8 insertions(+), 1 deletions(-)
lib/std/target.zig+1-1| ... | ... | @@ -468,7 +468,7 @@ pub const Target = union(enum) { |
| 468 | 468 | }; |
| 469 | 469 | const cpu = switch (arch) { |
| 470 | 470 | .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic, |
| 471 | .aarch64, .aarch64_be, .aarch64_32 => &aarch64.cpu.generic, | |
| 471 | .aarch64, .aarch64_be, .aarch64_32 => &aarch64.cpu.baseline, | |
| 472 | 472 | .avr => &avr.cpu.avr1, |
| 473 | 473 | .bpfel, .bpfeb => &bpf.cpu.generic, |
| 474 | 474 | .hexagon => &hexagon.cpu.generic, |
lib/std/target/aarch64.zig+6| ... | ... | @@ -1225,6 +1225,11 @@ pub const cpu = struct { |
| 1225 | 1225 | .cyclone, |
| 1226 | 1226 | }), |
| 1227 | 1227 | }; |
| 1228 | pub const baseline = Cpu{ | |
| 1229 | .name = "baseline", | |
| 1230 | .llvm_name = null, | |
| 1231 | .features = featureSet(&[_]Feature{}), | |
| 1232 | }; | |
| 1228 | 1233 | pub const cortex_a35 = Cpu{ |
| 1229 | 1234 | .name = "cortex_a35", |
| 1230 | 1235 | .llvm_name = "cortex-a35", |
| ... | ... | @@ -1411,6 +1416,7 @@ pub const cpu = struct { |
| 1411 | 1416 | /// compiler has inefficient memory and CPU usage, affecting build times. |
| 1412 | 1417 | pub const all_cpus = &[_]*const Cpu{ |
| 1413 | 1418 | &cpu.apple_latest, |
| 1419 | &cpu.baseline, | |
| 1414 | 1420 | &cpu.cortex_a35, |
| 1415 | 1421 | &cpu.cortex_a53, |
| 1416 | 1422 | &cpu.cortex_a55, |
src/codegen.cpp+1| ... | ... | @@ -8795,6 +8795,7 @@ static void init(CodeGen *g) { |
| 8795 | 8795 | target_specific_features = stage2_cpu_features_get_llvm_features(g->zig_target->cpu_features); |
| 8796 | 8796 | } |
| 8797 | 8797 | if (g->verbose_llvm_cpu_features) { |
| 8798 | fprintf(stderr, "name=%s triple=%s\n", buf_ptr(g->root_out_name), buf_ptr(&g->llvm_triple_str)); | |
| 8798 | 8799 | fprintf(stderr, "name=%s target_specific_cpu_args=%s\n", buf_ptr(g->root_out_name), target_specific_cpu_args); |
| 8799 | 8800 | fprintf(stderr, "name=%s target_specific_features=%s\n", buf_ptr(g->root_out_name), target_specific_features); |
| 8800 | 8801 | } |