[RFC PATCH 1/5] aarch64 + arm: Remove const keyword from tune_params members and nested members

2025-05-06 Thread soumyaa
From: Soumya AR To allow runtime updates to tuning parameters, the const keyword is removed from aarch64 tune_params and all its nested structures and structure members. Since this patch also touches tuning structures in the arm backend, it was bootstrapped on aarch64-linux-gnu as well as arm-li

[RFC PATCH 5/5] aarch64: Regression tests for parsing of user-provided AArch64 CPU tuning parameters

2025-05-06 Thread soumyaa
From: Soumya AR This patch was bootstrapped and regtested on aarch64-linux-gnu, no regression. Signed-off-by: Soumya AR gcc/testsuite/ChangeLog: * gcc.target/aarch64/aarch64-json-tunings/aarch64-json-tunings.exp: New test. * gcc.target/aarch64/aarch64-json-tunings/boolean-1.c

[RFC PATCH 4/5] aarch64: Enable parsing of user-provided AArch64 CPU tuning parameters

2025-05-06 Thread soumyaa
From: Soumya AR This patch adds support for loading custom CPU tuning parameters from a JSON file for AArch64 targets. The '-muser-provided-CPU=' flag accepts a user provided JSON file and overrides the internal tuning parameters at GCC runtime. This patch was bootstrapped and regtested on aarch

[RFC PATCH 2/5] aarch64: Enable dumping of AArch64 CPU tuning parameters to JSON

2025-05-06 Thread soumyaa
From: Soumya AR This patch adds functionality to dump AArch64 CPU tuning parameters to a JSON file. The new '-fdump-tuning-model=' flag allows users to export the current tuning model configuration to a JSON file. This patch was bootstrapped and regtested on aarch64-linux-gnu, no regression. Si

[RFC PATCH 3/5] json: Add get_map() method to JSON object class

2025-05-06 Thread soumyaa
From: Soumya AR This patch adds a get_map () method to the JSON object class to provide access to the underlying hash map that stores the JSON key-value pairs. It also reorganizes the private and public sections of the class to expose the map_t typedef, which is the return type of get_map(). Th

[RFC PATCH 0/5] aarch64: Support for user-defined aarch64 tuning parameters in JSON

2025-05-06 Thread soumyaa
From: Soumya AR Hi, This RFC and subsequent patch series introduces support for printing and parsing of aarch64 tuning parameters in the form of JSON. It is important to note that this mechanism is specifically intended for power users to experiment with tuning parameters. This proposal does no