In large bowl, toss tomatoes, olive oil, salt and pepper flakes. Arrange cut side up in one layer, tightly packed in rows, on pans. Transfer onions, without separating into rings, to pan. Press cut side of garlic into the oil, and place on pan. Scrape remaining oil mixture onto onions.