diff --git a/suite/auto-sync/RefactorGuide.md b/suite/auto-sync/RefactorGuide.md index 5538a92792..16272cc1c9 100644 --- a/suite/auto-sync/RefactorGuide.md +++ b/suite/auto-sync/RefactorGuide.md @@ -33,7 +33,10 @@ Note: - Clone and build `llvm-tblgen` (see docs) - Quickly check options of the updater `ASUpdater -h` - Add Arch name in `Target.py` - - In [llvm-capstone](https://github.com/capstone-engine/llvm-capstone) handle arch in `PrinterCapstone.cpp::decoderEmitterEmitFieldFromInstruction()` (add decoder function) + - In [llvm-capstone](https://github.com/capstone-engine/llvm-capstone) handle arch in `PrinterCapstone.cpp::decoderEmitterEmitDecodeInstruction()` (add decoder function) + [!NOTE] Architecture specific code generation. + There are several oddities of architectures which require slightly different generated code. + If you search through `PrinterCapstone.cpp` for architecture names like `AArch64`, `ARM`, or `Sparc` you can see how these are handled. - Generate: `ASUpdater -s IncGen -a ARCH` - Errors? Check if the error message tells you what to do. If no hint exists, ask us. - Check if `inc` files in `build` look good.