HomePhabricator

Add new style meta-programming primatives.

Authored by EricWF on Jun 21 2019, 4:37 PM.

Description

Add new style meta-programming primatives.

Using class templates instead of alias templates causes a lot of
instantiations. As part of the move away from C++03, we want to
improve the efficiency of our meta-programming.

This patch lays the groundwork by introducing new _If, _EnableIf,
_And, _Or, and _IsValidExpansion (detect member). Future patches
will replace the existing implementations after verifying there
compile time differences.

llvm-svn: 364114

Details

Committed
EricWFJun 21 2019, 4:37 PM
Parents
rG892f022ec2b3: [lit] Deduplicate logic in toolchain.py
Branches
Unknown
Tags
Unknown