diff options
| author | 2022-08-24 08:23:36 +0200 | |
|---|---|---|
| committer | 2022-08-24 08:23:36 +0200 | |
| commit | ca3b09c836af6878ce3879ef91d7ba75f9898cb8 (patch) | |
| tree | 25697e64c4976df1ba80fd7695bec6eb646629d2 /x | |
| parent | fa541d48d80d99d78e2ff41b0bea66d8a92c9bd6 (diff) | |
dot operator llvm
Diffstat (limited to 'x')
| -rw-r--r-- | x | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +target triple = "x86_64-pc-linux-gnu" +%Vec2f.0 = type opaque +%Vec2f.0 = type { float, float } + +define internal float @x.1(%Vec2f.0 %v) { +%v.0 = alloca %Vec2f.0 store %Vec2f.0 %v, %Vec2f.0* %v.0 + %t1 = getelementptr %Vec2f.0, %Vec2f.0* %v.0, i32 0, i32 0 + %t0 = load float, float* %t1 + ret float %t0 + ret float undef +} +define internal float @y.2(%Vec2f.0* %v) { +%v.0 = alloca %Vec2f.0* store %Vec2f.0* %v, %Vec2f.0** %v.0 + %t1 = load %Vec2f.0*, %Vec2f.0** %v.0 + %t2 = getelementptr %Vec2f.0, %Vec2f.0* %t1, i32 0, i32 1 + %t0 = load float, float* %t2 + ret float %t0 + ret float undef +} |