[LLVMdev] Could not find include file 'llvm/Intrinsics.td'

John Criswell criswell at cs.uiuc.edu
Thu Nov 30 15:22:59 PST 2006


Seung Jae Lee wrote:
> Hello.
> I am trying to run tblgen so I typed 
> $ tblgen ARM.td -print-enums -class=Register
> in "llvm/lib/Target/ARM"
>   
You need to add a -I option to your tblgen command line to tell it where
to find the llvm/Intrinsics.td file. I believe the file is in
llvm/include, so you would add -I <directory where you unpacked the llvm
source>/llvm/include.

Example: If I unpacked the LLVM source in /usr/home/criswell, then I
would do:

cd /usr/home/criswell/llvm/lib/Target/ARM
tblgen -I/usr/home/criswell/llvm/include ARM.td -print-enums -class=Register

-- John T.

> But I got an error as follows:
>
> Included from ARM.td:18:
> Parsing ../Target.td:16: Could not find include file 'llvm/Intrinsics.td'!
>
> As you know, the 16th line of Target.td includes "llvm/Intrinsics.td". But this cannot find Intrinsics.td, I think.
> Of course, I indeed checked out that everything is in their positions including Intrinsics.td. 
>
> Would you mind telling me reasons I might miss to run this successfully?
> Thank you very much.
>
> Seung Jae Lee
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>   




More information about the llvm-dev mailing list