The doubt in adding a new type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

The doubt in adding a new type

Adam Cieszkiel via cfe-dev

Dear Mr.:

   So far,I still have two questions.

     For the first question,I am adding the recognition to a new type , so I want to know about LLVM / CLANG running mechanism of identifying the type . For example, when recogning the type , CLANG is own analytical type or call LLVM to resolve the type.So now can you tell me about LLVM and CLANGoperation mechanism for the identification of the type Or give me some relevant information?

      For the second question, the new type I am adding is the base type Bit in the microcontroller. I now follow the step to add a new type in the LLVM official website[1] to modify the LLVM source code ,whats more,It is compiled successfully. So I wrote a test program in VS2015 to identify the new type I added, but still did not recognize it. I debug the test program, followed the program to run inside, did not go to the LLVM code I added. So I do not know where the problem is in.I also not clear that the code in CLANG is or not needs to be modified. Can you explain it to me? 

      Thanke you for your guidance.

 sincerely  zhangya


[1] http://llvm.org/docs/ExtendingLLVM.html#adding-a-fundamental-type


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The doubt in adding a new type

Adam Cieszkiel via cfe-dev
Can you please reply to the original thread you started two weeks ago, rather than post another new post, with eseentially the original question. I gave some, what I think is good, advice in that thread. If that's not what you were looking for, then there's a need for more detail as to what you are trying to do, what you have tried, and what the outcome of that was (what you expected, what you got, and how that's different).

--
Mats

On 13 July 2017 at 07:41, To be a better me via cfe-dev <[hidden email]> wrote:

Dear Mr.:

   So far,I still have two questions.

     For the first question,I am adding the recognition to a new type , so I want to know about LLVM / CLANG running mechanism of identifying the type . For example, when recogning the type , CLANG is own analytical type or call LLVM to resolve the type.So now can you tell me about LLVM and CLANGoperation mechanism for the identification of the type Or give me some relevant information?

      For the second question, the new type I am adding is the base type Bit in the microcontroller. I now follow the step to add a new type in the LLVM official website[1] to modify the LLVM source code ,whats more,It is compiled successfully. So I wrote a test program in VS2015 to identify the new type I added, but still did not recognize it. I debug the test program, followed the program to run inside, did not go to the LLVM code I added. So I do not know where the problem is in.I also not clear that the code in CLANG is or not needs to be modified. Can you explain it to me? 

      Thanke you for your guidance.

 sincerely  zhangya


[1] http://llvm.org/docs/ExtendingLLVM.html#adding-a-fundamental-type


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...