Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Reactor
  • LLVMReactor.hpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Determine MSan instrumentation for Reactor at run-time · dc8cbfa4
    Nicolas Capens authored Jun 10, 2021
    Previously the REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION macro
    definition controlled whether we compiled the code for properly
    instrumenting Reactor routines with the MemorySanitizer LLVM pass, or
    compile the code to unpoison all memory writes.
    
    This change makes us compile the code for both options, and select
    between the two at run-time. Currently this has no net effect, but it
    will allow selectively enabling MSan instrumentation to be done even
    when REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION is not defined (or
    false). Thus the define now means enabling instrumentation to always be
    performed. This way we'll be able to gradually enable more use of
    MSan instrumentation, where not already enforced by the build define.
    
    The ReactorUnitTests.Uninitialized test was changed to only run on build
    that have REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION set, since it
    already assumed MSan builds to always have instrumentation enabled.
    
    Bug: b/188205704
    Change-Id: I54056ddc9b1d55fabbde6ae0f02d6c8cea3afad6
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54888
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Commit-Queue: Nicolas Capens <nicolascapens@google.com>
    dc8cbfa4
LLVMReactor.hpp 4.36 KB
EditWeb IDE
×

Replace LLVMReactor.hpp

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.