This is an archive of the discontinued LLVM Phabricator instance.

[ExecutionEngine] Add support for aggregate constants in the interpreter
Needs ReviewPublic

Authored by eush on Nov 10 2018, 4:11 PM.

Details

Summary

This adds support for constants of aggregate types, i.e. structs and arrays.

Previously the conversion from a constant aggregate Value to a GenericValue
was missing in ExecutionEngine::getConstantValue, and this patch implements
just that by writing all elements in sequence into the corresponding
GenericValue field.

Diff Detail

Event Timeline

eush created this revision.Nov 10 2018, 4:11 PM
eush updated this revision to Diff 174316.Nov 15 2018, 7:13 PM

Fixed compilation under -std=c++11.