[llvm-dev] [ConstantExpr] Adding folding tests

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri May 3 06:56:12 PDT 2019


Hi Cameron,

On Fri, 3 May 2019 at 14:46, Cameron McInally via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I'd like to add some new constant foldings to ConstantExpr -- in particular ConstantExpr::get(...) and friends. But, I'm having trouble finding the correct place for adding IR tests in the /test directory.

test/Analysis/ConstantFolding looks promising. You could also use
unittests/IR/ConstantsTest.cpp.

Cheers.

Tim.


More information about the llvm-dev mailing list