View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000098 | file | General | public | 2019-08-11 08:47 | 2019-09-11 16:59 |
Reporter | johannes | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | feedback | Resolution | open | ||
Product Version | 5.37 | ||||
Summary | 0000098: LLVM Assembly Language files (*.ll) are reported as C source | ||||
Description | Files containing the human-readable assembly language of the LLVM intermediate representation are mistakenly reported to be C source. Perhaps we can add some simple patterns to distuingish them. The mime type could be "text/x-llvm" or "text/x-llvm-ir". LLVM Language: https://llvm.org/docs/LangRef.html | ||||
Steps To Reproduce | $ cat > main.ll << EOF define i8 @main() { ret i8 123 } EOF $ file main.ll main.ll: C source, ASCII text | ||||
Additional Information | Here are some magic patterns I've been using which seem to work cat >> magic/Magdir/llvm <<EOF 0 search/8192 define LLVM Assembly Language text !:mime text/x-llvm >0 regex \^define 0 search/8192 declare LLVM Assembly Language text !:mime text/x-llvm >0 regex \^declare EOF | ||||
Tags | No tags attached. | ||||