Closed hushanjushi closed 2 years ago
You should check your test.xml file. It should report a test input value for each one of the top function arguments naming them P0, P1, ... based on their position in the signature. The different naming with respect to the C example is due to LLVM renaming. An example test.xml which you may use for the above could be the following:
<?xml version="1.0"?>
<function>
<testbench P0="23" P1="10" />
</function>
The P0 value corresponds to crc argument, while P1 corresponds to onech. Finally, if you need to initialise pointers or array values the above still stands and you can use standard C syntax inside the attribute values. As an example, if the top function signature is int my_top(int* arr) you may write something like P0="{1,2,3,4}" in your test.xml.
<?xml version="1.0"?>
Ok, Thank you.
I want to input LLVM IR code into bambu, so I try to transfer the first C function of DATE tutorial into tutorial:
I use:
But I get:
Is something I should change rather than default LLVM IR, like a front MLIR? Where should I find them?