[GlobalISel] Add Legalized MachineFunction property.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 2 Aug 2016 15:10:25 +0000 (15:10 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 2 Aug 2016 15:10:25 +0000 (15:10 +0000)
commit0d7b0cb865514a04cf18a220c80d6d0301f339ee
tree9f1eb37f80b5de039a74af1eeb806dc1b5650349
parentcb2bac6e98b23aa8e7fb6741ac08269f34f2475f
[GlobalISel] Add Legalized MachineFunction property.

Legalized: The MachineLegalizer ran; all pre-isel generic instructions
have been legalized, i.e., all instructions are now one of:
  - generic and always legal (e.g., COPY)
  - target-specific
  - legal pre-isel generic instructions.

This lets us enforce certain invariants across passes.
This property is GlobalISel-specific, but is always available.

llvm-svn: 277470
llvm/include/llvm/CodeGen/MIRYamlMapping.h
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/CodeGen/MachineFunction.cpp
llvm/test/CodeGen/MIR/Generic/global-isel-properties.mir [new file with mode: 0644]