move constant and promiseConstant to ir::Builder