add create AllocInst method