kparzysz-quic commented on pull request #9138:
URL: https://github.com/apache/tvm/pull/9138#issuecomment-930369662


   Since memory in LLVM is generally untyped, specific data types are provided 
at the time of accessing the memory, or computing addresses.  For example 
`getelementptr` needs to know the "starting type" (i.e. the type associated 
with the input pointer) in order to properly calculate the address 
corresponding to the index arguments.  In the past, this information was 
included in the pointer type, i.e. from `i32*`, you could easily infer that the 
pointee was a `i32`.  With this information removed from pointers, these 
instructions need that detailed type information passed in separately.
   
   The fallout comes from the fact that many functions in LLVM now need the 
extra type information passed to them.  This mostly applies to the IR builder 
functions, but any code using LLVM may be subject to changes, if it relied on 
getting pointee type information from the pointer type itself.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to