summaryrefslogtreecommitdiff
path: root/arch/x86/code_generator/README.md
blob: 5c53ad1f6ca9aa0ceb61cb57e353c7363afb2e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
This README explains the process of generating the input and output type information for x86 intrinsics. 

It takes two major steps:

1. Tweak the xed build process and generate the information for each iform. 
    - Apply the `patch.diff` to `$XED_SOURCE/pysrc/generator.py`
    - Build xed and harvest the `iform-type-dump.txt`
    - Copy the `iform-type-dump.txt` to the current folder

2. run the `parse-iform-types.py` 
    - It will generate `../x86_intrinsic_input_type.cpp` and `../x86_intrinsic_output_type.cpp`.