llvm
Compile LLVM from source on linux
I\'ve downloaded LLVM source code and I\'m trying to compile it. I\'ve done the basic: ./configure --prefix=/some/path/[详细]
2023-03-05 01:06 分类:问答def-use chain for Instruction
I am a LLVM newer who want to obtain the use-def chain for all instruction of a sample code, for this purpose i use the following code.[详细]
2023-03-04 18:55 分类:问答Using Xcode 4 to create Universal binary
I\'ve used this hack to restore PPC support to Xcode 4. However, every time I tried to create a universal binary, it would just create an Intel binary. After a lot of experimentation with parameters,[详细]
2023-03-03 13:41 分类:问答Using libclang as a compiler
I\'m working on a tool that generates C code from a speci开发者_高级运维fication. Users thus need to compile themselves the generated code before using the compiled code with another tool. I would lik[详细]
2023-03-03 07:13 分类:问答using .pch files with libclang api's
I am trying to use .pch as illustrated in the following example at http://clang.llvm.or开发者_StackOverflowg/doxygen/group__CINDEX.html but it doesnot seem to work.[详细]
2023-03-02 18:52 分类:问答Is libclang slower than using clang driver based tool?
I am writing an autocompletion and syntax tool using libclang. I am pretty much using the same code as in c-index-test.c file. But the speed of results is very slow. There are few non libclangclang to[详细]
2023-03-02 13:36 分类:问答immediate number test in llvm
In LLVM, I\'d like to test whether the trip count obtained by LoopInfo pass is an immediate number. For example, the following loop[详细]
2023-03-01 14:29 分类:问答What happens if I don't use -g in linking time
Using gcc or clang, I used -g option for compilation and without it for linking. Does that mean that the final binary is equivalent in perf开发者_运维问答ormance to the one without -g option in the wh[详细]
2023-03-01 00:07 分类:问答The use of getSmallConstantTripCount method of Loop in LLVM
In my pass, I add LoopInfo as a required pass. Then I\'d like to print the constant loop trip count of each loop if it has one. However, every 开发者_高级运维time I called getSmallConstantTripCount, i[详细]
2023-02-28 23:00 分类:问答can I count on my compiler to optimize strlen on const char *?
In my SAX xml parsing callback (XCode 4, LLVM), I am doing a lot of calls to this type of code: static const char* kFoo = \"Bar\";[详细]
2023-02-28 22:15 分类:问答