[inductor] Add constant_to_device for ir.Constant (#108087)
Fixes error with:
```
TORCHINDUCTOR_MAX_AUTOTUNE=1 TORCHINDUCTOR_MAX_AUTOTUNE_POINTWISE=1 TORCHINDUCTOR_MAX_AUTOTUNE_GEMM=1 ./benchmarks/dynamo/torchbench.py --inference --performance --no-skip --inductor --freezing --only pyhpc_turbulent_kinetic_energy
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108087
Approved by: https://github.com/eellison
ghstack dependencies: #108096