From ca3b09c836af6878ce3879ef91d7ba75f9898cb8 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 24 Aug 2022 08:23:36 +0200 Subject: dot operator llvm --- x | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 x (limited to 'x') diff --git a/x b/x new file mode 100644 index 0000000..d04c37d --- /dev/null +++ b/x @@ -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 +} -- cgit v1.2.3