From 5be1ee173f3496b3a4209663f56580c61fd9742c Mon Sep 17 00:00:00 2001 From: qining Date: Fri, 5 Aug 2016 09:51:29 -0400 Subject: [PATCH] Add blurbs for freeze-spec-const pass --- source/opt/passes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/opt/passes.h b/source/opt/passes.h index 6fb31ff..23873a8 100644 --- a/source/opt/passes.h +++ b/source/opt/passes.h @@ -58,6 +58,14 @@ class StripDebugInfoPass : public Pass { bool Process(ir::Module* module) override; }; +// The transformation pass that specializes the value of spec constants to +// their default values. This pass only processes the spec constants that have +// Spec ID decorations (defined by OpSpecConstant, OpSpecConstantTrue and +// OpSpecConstantFalse instructions) and replaces them with their front-end +// version counterparts (OpConstant, OpConstantTrue and OpConstantFalse). The +// corresponding Spec ID annotation instructions will also be removed. This +// pass does not fold the newly added front-end constants and does not process +// other spec constants defined by OpSpecConstantComposite or OpSpecConstantOp. class FreezeSpecConstantValuePass : public Pass { public: const char* name() const override { return "freeze-spec-const"; } -- 2.7.4