Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • Intermediate.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Clean up unary and aggregate math folding · f119a263
    Olli Etuaho authored Aug 19, 2016
    Prefer asserts instead of adding internal errors to the compiler log
    when types of arguments are not as expected or the folding function
    runs into an operation it can't handle. Neither of these cases should
    be possible, the checks for correct argument types are solid at this
    point.
    
    In the future, when new built-in functions are added, constant folding
    support for them should be added as well.
    
    foldUnaryWithDifferentReturnType and foldUnaryWithSameReturnType are
    renamed to foldUnaryNonComponentWise and foldUnaryComponentWise
    respectively. These names better reflect what these functions are
    doing.
    
    The info sink member is removed from TIntermediate, since TDiagnostics
    is now passed into the functions that may generate warnings instead.
    
    BUG=angleproject:1490
    TEST=angle_unittests
    
    Change-Id: I6a08abbe29cf23f3a318032fdc46dd3dbaf4410e
    Reviewed-on: https://chromium-review.googlesource.com/377959
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    f119a263
Intermediate.cpp 11.8 KB
EditWeb IDE
×

Replace Intermediate.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.