How llvm-mc assembler works

How could a custom armv8 instruction developed for a chipset for example:custom instruction created on apple M1 silicon, translated to binary

For fixed-length instructions, you can use the Inst field to specify the binary encoding when you’re defining the instruction with TableGen. You can checkout the F3 snippet here as an example.