Giter Site home page Giter Site logo

Comments (3)

bcardosolopes avatar bcardosolopes commented on July 20, 2024

@sitio-couto could this be due to recent changes in struct or just something we haven't implemented?

from clangir.

sitio-couto avatar sitio-couto commented on July 20, 2024

@bcardosolopes seems to be a corner that we still need to handle.

The issue warned is a type mismatch because the a[0] access does not dereferencing the type. In other words, the [0] access of a is not converting the !cir.array<!cir.int<s, 32> x 10> type to just !cir.int<s, 32>.

It seems that after the indices are applied on the GlobalViewAttr the result type was not updated:

return mlir::cir::GlobalViewAttr::get(
GV.getType(), GV.getSymbol(), getOffset(GV.getType()));

And there is a guard against zero offsets (which can't be ignored on CIR due to type checking):

if (!hasNonZeroOffset())
return C;

Seems like a simple patch. I'll try to fix it.

from clangir.

yugr avatar yugr commented on July 20, 2024

It seems that after the indices are applied on the GlobalViewAttr the result type was not updated:

My mistake, thanks for fixing.

from clangir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.